version 1.6, 1996/08/23 11:37:41 |
version 1.7, 1996/10/22 14:01:19 |
|
|
# bsd.port.mk - 940820 Jordan K. Hubbard. |
# bsd.port.mk - 940820 Jordan K. Hubbard. |
# This file is in the public domain. |
# This file is in the public domain. |
# |
# |
# FreeBSD Id: bsd.port.mk,v 1.221 1996/08/18 10:53:16 asami Exp $ |
# FreeBSD Id: bsd.port.mk,v 1.226 1996/09/24 06:48:22 asami Exp $ |
# |
# |
# Please view me with 4 column tabs! |
# Please view me with 4 column tabs! |
|
|
|
|
# during a build. User can then decide to skip this port by |
# during a build. User can then decide to skip this port by |
# setting ${BATCH}, or compiling only the interactive ports |
# setting ${BATCH}, or compiling only the interactive ports |
# by setting ${INTERACTIVE}. |
# by setting ${INTERACTIVE}. |
# FETCH_DEPENDS - A list of "prog:dir" pairs of other ports this |
# FETCH_DEPENDS - A list of "path:dir" pairs of other ports this |
# package depends in the "fetch" stage. "prog" is the |
# package depends in the "fetch" stage. "path" is the |
# name of an executable. make will search your $PATH |
# name of a file if it starts with a slash (/), an |
# for it and go into "dir" to do a "make all install" |
# executable otherwise. make will test for the |
# if it's not found. |
# existence (if it is a full pathname) or search for |
# BUILD_DEPENDS - A list of "prog:dir" pairs of other ports this |
# it in your $PATH (if it is an executable) and go |
# package depends to build (between the "extract" |
# into "dir" to do a "make all install" if it's not |
# and "build" stages, inclusive). "prog" is the name |
# found. |
# of an executable. make will search your $PATH for |
# BUILD_DEPENDS - A list of "path:dir" pairs of other ports this |
# it and go into "dir" to do a "make all install" if |
# package depends to build (between the "extract" and |
# it's not found. |
# "build" stages, inclusive). The test done to |
# RUN_DEPENDS - A list of "prog:dir" pairs of other ports this package |
# determine the existence of the dependency is the |
# depends to run. "prog" is the name of an |
# same as FETCH_DEPENDS. |
# executable. make will search your $PATH for it and |
# RUN_DEPENDS - A list of "path:dir" pairs of other ports this |
# go into "dir" to do a "make all install" if it's not |
# package depends to run. The test done to determine |
# found. This will be build during the "install" stage |
# the existence of the dependency is the same as |
# and its name will be put into the package as well. |
# FETCH_DEPENDS. This will be checked during the |
|
# "install" stage and the name of the dependency will |
|
# be put into the package as well. |
# LIB_DEPENDS - A list of "lib:dir" pairs of other ports this package |
# LIB_DEPENDS - A list of "lib:dir" pairs of other ports this package |
# depends on. "lib" is the name of a shared library. |
# depends on. "lib" is the name of a shared library. |
# make will use "ldconfig -r" to search for the |
# make will use "ldconfig -r" to search for the |
|
|
MASTER_SITE_OVERRIDE= ftp://ftp.freebsd.org/pub/FreeBSD/distfiles/${DIST_SUBDIR}/ |
MASTER_SITE_OVERRIDE= ftp://ftp.freebsd.org/pub/FreeBSD/distfiles/${DIST_SUBDIR}/ |
.endif |
.endif |
|
|
|
# Empty declaration to avoid "variable MASTER_SITES recursive" error |
|
MASTER_SITES?= |
|
PATCH_SITES?= |
# I guess we're in the master distribution business! :) As we gain mirror |
# I guess we're in the master distribution business! :) As we gain mirror |
# sites for distfiles, add them to this list. |
# sites for distfiles, add them to this list. |
.if !defined(MASTER_SITE_OVERRIDE) |
.if !defined(MASTER_SITE_OVERRIDE) |
MASTER_SITES+= ftp://ftp.freebsd.org/pub/FreeBSD/distfiles/${DIST_SUBDIR}/ |
MASTER_SITES+= ftp://ftp.freebsd.org/pub/FreeBSD/distfiles/${DIST_SUBDIR}/ |
PATCH_SITES+= ftp://ftp.freebsd.org/pub/FreeBSD/distfiles/${DIST_SUBDIR}/ |
PATCH_SITES+= ftp://ftp.freebsd.org/pub/FreeBSD/distfiles/${DIST_SUBDIR}/ |
.else |
.else |
MASTER_SITES?= # to avoid "variable MASTER_SITES recursive" error |
|
MASTER_SITES:= ${MASTER_SITE_OVERRIDE} ${MASTER_SITES} |
MASTER_SITES:= ${MASTER_SITE_OVERRIDE} ${MASTER_SITES} |
PATCH_SITES:= ${MASTER_SITE_OVERRIDE} ${PATCH_SITES} |
PATCH_SITES:= ${MASTER_SITE_OVERRIDE} ${PATCH_SITES} |
.endif |
.endif |
|
|
|
# Search CDROM first if mounted, symlink instead of copy if |
|
# FETCH_SYMLINK_DISTFILES is set |
|
.if exists(/cdrom/ports/distfiles) |
|
MASTER_SITES:= file:/cdrom/ports/distfiles/${DIST_SUBDIR}/ ${MASTER_SITES} |
|
PATCH_SITES:= file:/cdrom/ports/distfiles/${DIST_SUBDIR}/ ${PATCH_SITES} |
|
.if defined(FETCH_SYMLINK_DISTFILES) |
|
FETCH_BEFORE_ARGS+= -l |
|
.endif |
|
.endif |
|
|
# Derived names so that they're easily overridable. |
# Derived names so that they're easily overridable. |
DISTFILES?= ${DISTNAME}${EXTRACT_SUFX} |
DISTFILES?= ${DISTNAME}${EXTRACT_SUFX} |
PKGNAME?= ${DISTNAME} |
PKGNAME?= ${DISTNAME} |
|
|
|
|
.if !target(do-configure) |
.if !target(do-configure) |
do-configure: |
do-configure: |
@if [ -f ${SCRIPTDIR}/${CONFIGURE_SCRIPT} ]; then \ |
@if [ -f ${SCRIPTDIR}/configure ]; then \ |
cd ${.CURDIR} && ${SETENV} CURDIR=${.CURDIR} DISTDIR=${DISTDIR}\ |
cd ${.CURDIR} && ${SETENV} CURDIR=${.CURDIR} DISTDIR=${DISTDIR}\ |
WRKDIR=${WRKDIR} WRKSRC=${WRKSRC} PATCHDIR=${PATCHDIR} \ |
WRKDIR=${WRKDIR} WRKSRC=${WRKSRC} PATCHDIR=${PATCHDIR} \ |
SCRIPTDIR=${SCRIPTDIR} FILESDIR=${FILESDIR} \ |
SCRIPTDIR=${SCRIPTDIR} FILESDIR=${FILESDIR} \ |
PORTSDIR=${PORTSDIR} PREFIX=${PREFIX} DEPENDS="${DEPENDS}" \ |
PORTSDIR=${PORTSDIR} PREFIX=${PREFIX} DEPENDS="${DEPENDS}" \ |
X11BASE=${X11BASE} /bin/sh ${SCRIPTDIR}/${CONFIGURE_SCRIPT}; \ |
X11BASE=${X11BASE} /bin/sh ${SCRIPTDIR}/configure; \ |
fi |
fi |
.if defined(HAS_CONFIGURE) |
.if defined(HAS_CONFIGURE) |
@(cd ${WRKSRC} && CC="${CC}" ac_cv_path_CC="${CC}" CFLAGS="${CFLAGS}" \ |
@(cd ${WRKSRC} && CC="${CC}" ac_cv_path_CC="${CC}" CFLAGS="${CFLAGS}" \ |
|
|
.if !target(depends-list) |
.if !target(depends-list) |
depends-list: |
depends-list: |
@for i in ${FETCH_DEPENDS} ${BUILD_DEPENDS} ${LIB_DEPENDS} ${DEPENDS}; do \ |
@for i in ${FETCH_DEPENDS} ${BUILD_DEPENDS} ${LIB_DEPENDS} ${DEPENDS}; do \ |
dir=`/bin/echo $$i | /usr/bin/sed -e 's/.*://'`; \ |
dir=`${ECHO} $$i | ${SED} -e 's/.*://'`; \ |
(cd $$dir ; ${MAKE} package-name depends-list); \ |
(cd $$dir ; ${MAKE} package-name depends-list); \ |
done |
done |
.endif |
.endif |