bsd.port.mk (ade0fb0da934787637a68905b200a1da295ff113) | bsd.port.mk (17abb434aa57a9504643ea5db60e54f11628abdd) |
---|---|
1#-*- mode: Fundamental; tab-width: 4; -*- 2# ex:ts=4 3# 4# $FreeBSD$ 5# $NetBSD: $ 6# 7# bsd.port.mk - 940820 Jordan K. Hubbard. 8# This file is in the public domain. --- 251 unchanged lines hidden (view full) --- 260.include "${.CURDIR}/../Makefile.inc" 261.endif 262 263 264# These need to be absolute since we don't know how deep in the ports 265# tree we are and thus can't go relative. They can, of course, be overridden 266# by individual Makefiles or local system make configuration. 267.if (${OPSYS} == "NetBSD") | 1#-*- mode: Fundamental; tab-width: 4; -*- 2# ex:ts=4 3# 4# $FreeBSD$ 5# $NetBSD: $ 6# 7# bsd.port.mk - 940820 Jordan K. Hubbard. 8# This file is in the public domain. --- 251 unchanged lines hidden (view full) --- 260.include "${.CURDIR}/../Makefile.inc" 261.endif 262 263 264# These need to be absolute since we don't know how deep in the ports 265# tree we are and thus can't go relative. They can, of course, be overridden 266# by individual Makefiles or local system make configuration. 267.if (${OPSYS} == "NetBSD") |
268PORTSDIR?= ${DESTDIR}/usr/opt | 268PORTSDIR?= /usr/opt |
269.else | 269.else |
270PORTSDIR?= ${DESTDIR}/usr/ports | 270PORTSDIR?= /usr/ports |
271.endif | 271.endif |
272LOCALBASE?= /usr/local 273X11BASE?= /usr/X11R6 | 272LOCALBASE?= ${DESTDIR}/usr/local 273X11BASE?= ${DESTDIR}/usr/X11R6 |
274DISTDIR?= ${PORTSDIR}/distfiles 275_DISTDIR?= ${DISTDIR}/${DIST_SUBDIR} 276PACKAGES?= ${PORTSDIR}/packages 277TEMPLATES?= ${PORTSDIR}/templates 278.if !defined(NO_WRKDIR) 279WRKDIR?= ${.CURDIR}/work 280.else 281WRKDIR?= ${.CURDIR} --- 368 unchanged lines hidden (view full) --- 650# Ignore ports that can't be resold if building for a CDROM. 651# 652# Don't build a port if it's restricted and we don't want to get 653# into that. 654# 655# Don't build a port if it's broken. 656################################################################ 657 | 274DISTDIR?= ${PORTSDIR}/distfiles 275_DISTDIR?= ${DISTDIR}/${DIST_SUBDIR} 276PACKAGES?= ${PORTSDIR}/packages 277TEMPLATES?= ${PORTSDIR}/templates 278.if !defined(NO_WRKDIR) 279WRKDIR?= ${.CURDIR}/work 280.else 281WRKDIR?= ${.CURDIR} --- 368 unchanged lines hidden (view full) --- 650# Ignore ports that can't be resold if building for a CDROM. 651# 652# Don't build a port if it's restricted and we don't want to get 653# into that. 654# 655# Don't build a port if it's broken. 656################################################################ 657 |
658.if !defined(NO_IGNORE) |
|
658.if (defined(IS_INTERACTIVE) && defined(BATCH)) 659IGNORE= "is an interactive port" 660.elif (!defined(IS_INTERACTIVE) && defined(INTERACTIVE)) 661IGNORE= "is not an interactive port" 662.elif (defined(REQUIRES_MOTIF) && !defined(HAVE_MOTIF)) 663IGNORE= "requires Motif" 664.elif (defined(MOTIF_ONLY) && !defined(REQUIRES_MOTIF)) 665IGNORE= "does not require Motif" --- 25 unchanged lines hidden (view full) --- 691 @${IGNORECMD} 692build: 693 @${IGNORECMD} 694install: 695 @${IGNORECMD} 696package: 697 @${IGNORECMD} 698.endif | 659.if (defined(IS_INTERACTIVE) && defined(BATCH)) 660IGNORE= "is an interactive port" 661.elif (!defined(IS_INTERACTIVE) && defined(INTERACTIVE)) 662IGNORE= "is not an interactive port" 663.elif (defined(REQUIRES_MOTIF) && !defined(HAVE_MOTIF)) 664IGNORE= "requires Motif" 665.elif (defined(MOTIF_ONLY) && !defined(REQUIRES_MOTIF)) 666IGNORE= "does not require Motif" --- 25 unchanged lines hidden (view full) --- 692 @${IGNORECMD} 693build: 694 @${IGNORECMD} 695install: 696 @${IGNORECMD} 697package: 698 @${IGNORECMD} 699.endif |
700.endif |
|
699 700.if defined(ALL_HOOK) 701all: 702 @cd ${.CURDIR} && ${SETENV} CURDIR=${.CURDIR} DISTNAME=${DISTNAME} \ 703 DISTDIR=${DISTDIR} WRKDIR=${WRKDIR} WRKSRC=${WRKSRC} \ 704 PATCHDIR=${PATCHDIR} SCRIPTDIR=${SCRIPTDIR} \ 705 FILESDIR=${FILESDIR} PORTSDIR=${PORTSDIR} PREFIX=${PREFIX} \ 706 DEPENDS="${DEPENDS}" BUILD_DEPENDS="${BUILD_DEPENDS}" \ --- 761 unchanged lines hidden (view full) --- 1468.endif 1469 1470.endif 1471 1472.if !target(clean-depends) 1473clean-depends: 1474.if defined(FETCH_DEPENDS) || defined(BUILD_DEPENDS) || defined(LIB_DEPENDS) \ 1475 || defined(RUN_DEPENDS) | 701 702.if defined(ALL_HOOK) 703all: 704 @cd ${.CURDIR} && ${SETENV} CURDIR=${.CURDIR} DISTNAME=${DISTNAME} \ 705 DISTDIR=${DISTDIR} WRKDIR=${WRKDIR} WRKSRC=${WRKSRC} \ 706 PATCHDIR=${PATCHDIR} SCRIPTDIR=${SCRIPTDIR} \ 707 FILESDIR=${FILESDIR} PORTSDIR=${PORTSDIR} PREFIX=${PREFIX} \ 708 DEPENDS="${DEPENDS}" BUILD_DEPENDS="${BUILD_DEPENDS}" \ --- 761 unchanged lines hidden (view full) --- 1470.endif 1471 1472.endif 1473 1474.if !target(clean-depends) 1475clean-depends: 1476.if defined(FETCH_DEPENDS) || defined(BUILD_DEPENDS) || defined(LIB_DEPENDS) \ 1477 || defined(RUN_DEPENDS) |
1476 @for dir in `${ECHO} ${FETCH_DEPENDS} ${BUILD_DEPENDS} ${LIB_DEPENDS} ${RUN_DEPENDS} | ${TR} '\040' '\012' | ${SED} -e 's/.*://' | sort | uniq`; do \ | 1478 @for dir in `${ECHO} ${FETCH_DEPENDS} ${BUILD_DEPENDS} ${LIB_DEPENDS} ${RUN_DEPENDS} | ${TR} '\040' '\012' | ${SED} -e 's/.*://' | sort -u`; do \ |
1477 if [ -d $$dir ] ; then \ 1478 (cd $$dir; ${MAKE} NOCLEANDEPENDS=yes clean clean-depends); \ 1479 fi \ 1480 done 1481.endif 1482.if defined(DEPENDS) 1483 @for dir in ${DEPENDS}; do \ 1484 if [ -d $$dir ] ; then \ --- 107 unchanged lines hidden (view full) --- 1592 ${CP} ${PKGDIR}/INSTALL ${PKG_DBDIR}/${PKGNAME}/+INSTALL; \ 1593 fi; \ 1594 if [ -f ${PKGDIR}/DEINSTALL ]; then \ 1595 ${CP} ${PKGDIR}/DEINSTALL ${PKG_DBDIR}/${PKGNAME}/+DEINSTALL; \ 1596 fi; \ 1597 if [ -f ${PKGDIR}/REQ ]; then \ 1598 ${CP} ${PKGDIR}/REQ ${PKG_DBDIR}/${PKGNAME}/+REQ; \ 1599 fi; \ | 1479 if [ -d $$dir ] ; then \ 1480 (cd $$dir; ${MAKE} NOCLEANDEPENDS=yes clean clean-depends); \ 1481 fi \ 1482 done 1483.endif 1484.if defined(DEPENDS) 1485 @for dir in ${DEPENDS}; do \ 1486 if [ -d $$dir ] ; then \ --- 107 unchanged lines hidden (view full) --- 1594 ${CP} ${PKGDIR}/INSTALL ${PKG_DBDIR}/${PKGNAME}/+INSTALL; \ 1595 fi; \ 1596 if [ -f ${PKGDIR}/DEINSTALL ]; then \ 1597 ${CP} ${PKGDIR}/DEINSTALL ${PKG_DBDIR}/${PKGNAME}/+DEINSTALL; \ 1598 fi; \ 1599 if [ -f ${PKGDIR}/REQ ]; then \ 1600 ${CP} ${PKGDIR}/REQ ${PKG_DBDIR}/${PKGNAME}/+REQ; \ 1601 fi; \ |
1602 for dep in `make package-depends | sort -u`; do \ 1603 if [ -d ${PKG_DBDIR}/$$dep ]; then \ 1604 if ! ${GREP} ^${PKGNAME}$$ ${PKG_DBDIR}/$$dep/+REQUIRED_BY \ 1605 >/dev/null 2>&1; then \ 1606 ${ECHO} ${PKGNAME} >> ${PKG_DBDIR}/$$dep/+REQUIRED_BY; \ 1607 fi; \ 1608 fi; \ 1609 done; \ |
|
1600 else \ 1601 ${ECHO_MSG} "===> ${PKGNAME} is already installed - perhaps an older version?"; \ 1602 ${ECHO_MSG} " If so, you may wish to \`\`pkg_delete ${PKGNAME}'' and install"; \ 1603 ${ECHO_MSG} " this port again by \`\`make reinstall'' to upgrade it properly."; \ 1604 fi 1605.endif 1606 1607# Depend is generally meaningless for arbitrary ports, but if someone wants 1608# one they can override this. This is just to catch people who've gotten into 1609# the habit of typing `make depend all install' as a matter of course. 1610# 1611.if !target(depend) 1612depend: 1613.endif 1614 1615# Same goes for tags 1616.if !target(tags) 1617tags: 1618.endif | 1610 else \ 1611 ${ECHO_MSG} "===> ${PKGNAME} is already installed - perhaps an older version?"; \ 1612 ${ECHO_MSG} " If so, you may wish to \`\`pkg_delete ${PKGNAME}'' and install"; \ 1613 ${ECHO_MSG} " this port again by \`\`make reinstall'' to upgrade it properly."; \ 1614 fi 1615.endif 1616 1617# Depend is generally meaningless for arbitrary ports, but if someone wants 1618# one they can override this. This is just to catch people who've gotten into 1619# the habit of typing `make depend all install' as a matter of course. 1620# 1621.if !target(depend) 1622depend: 1623.endif 1624 1625# Same goes for tags 1626.if !target(tags) 1627tags: 1628.endif |