version 1.13, 1997/09/09 15:11:28 |
version 1.14, 1997/09/21 10:58:41 |
|
|
# MAINTAINER - The e-mail address of the contact person for this port |
# MAINTAINER - The e-mail address of the contact person for this port |
# (default: ports@FreeBSD.ORG). |
# (default: ports@FreeBSD.ORG). |
# CATEGORIES - A list of descriptive categories into which this port falls. |
# CATEGORIES - A list of descriptive categories into which this port falls. |
|
# WRKOBJDIR - A top level directory where, if defined, the separate working |
|
# directories will get created, and symbolically linked to from |
|
# ${WRKDIR} (see below). This is useful for building ports on |
|
# several architectures, then ${PORTSDIR} can be NFS-mounted |
|
# while ${WRKOBJDIR} is local to every arch. |
|
|
# |
# |
# Variables that typically apply to an individual port. Non-Boolean |
# Variables that typically apply to an individual port. Non-Boolean |
# variables without defaults are *mandatory*. |
# variables without defaults are *mandatory*. |
|
|
|
|
.if (${OPSYS} == "OpenBSD") |
.if (${OPSYS} == "OpenBSD") |
NOMANCOMPRESS?= yes |
NOMANCOMPRESS?= yes |
|
DEF_UMASK?= 022 |
|
.else |
|
DEF_UMASK?= 0022 |
.endif |
.endif |
|
|
.if exists(${.CURDIR}/Makefile.${ARCH}-${OPSYS}) |
.if exists(${.CURDIR}/Makefile.${ARCH}-${OPSYS}) |
|
|
WRKSRC?= ${WRKDIR}/${DISTNAME} |
WRKSRC?= ${WRKDIR}/${DISTNAME} |
.endif |
.endif |
|
|
|
.if defined(WRKOBJDIR) |
|
# XXX Is pwd -P available in FreeBSD's /bin/sh? |
|
__canonical_PORTSDIR!= cd ${PORTSDIR}; pwd -P |
|
__canonical_CURDIR!= cd ${.CURDIR}; pwd -P |
|
PORTSUBDIR= ${__canonical_CURDIR:S,${__canonical_PORTSDIR}/,,} |
|
.endif |
|
|
.if exists(${.CURDIR}/patches.${ARCH}-${OPSYS}) |
.if exists(${.CURDIR}/patches.${ARCH}-${OPSYS}) |
PATCHDIR?= ${.CURDIR}/patches.${ARCH}-${OPSYS} |
PATCHDIR?= ${.CURDIR}/patches.${ARCH}-${OPSYS} |
.elif exists(${.CURDIR}/patches.${OPSYS}) |
.elif exists(${.CURDIR}/patches.${OPSYS}) |
|
|
GZIP?= -9 |
GZIP?= -9 |
GZIP_CMD?= /usr/bin/gzip -nf ${GZIP} |
GZIP_CMD?= /usr/bin/gzip -nf ${GZIP} |
LDCONFIG?= /sbin/ldconfig |
LDCONFIG?= /sbin/ldconfig |
|
LN?= /bin/ln |
MKDIR?= /bin/mkdir -p |
MKDIR?= /bin/mkdir -p |
MV?= /bin/mv |
MV?= /bin/mv |
RM?= /bin/rm |
RM?= /bin/rm |
|
|
.if !target(do-extract) |
.if !target(do-extract) |
do-extract: |
do-extract: |
.if !defined(NO_WRKDIR) |
.if !defined(NO_WRKDIR) |
|
.if defined(WRKOBJDIR) |
|
@${RM} -rf ${WRKOBJDIR}/${PORTSUBDIR} |
|
@${MKDIR} -p ${WRKOBJDIR}/${PORTSUBDIR} |
|
@echo "${WRKDIR} -> ${WRKOBJDIR}/${PORTSUBDIR}" |
|
@# XXX whatif a build is going on right now? Is this wise? |
|
@${LN} -sf ${WRKOBJDIR}/${PORTSUBDIR} ${WRKDIR} |
|
.else |
@${RM} -rf ${WRKDIR} |
@${RM} -rf ${WRKDIR} |
@${MKDIR} ${WRKDIR} |
@${MKDIR} ${WRKDIR} |
.endif |
.endif |
|
.endif |
@for file in ${EXTRACT_ONLY}; do \ |
@for file in ${EXTRACT_ONLY}; do \ |
if ! (cd ${WRKDIR} && ${EXTRACT_CMD} ${EXTRACT_BEFORE_ARGS} ${_DISTDIR}/$$file ${EXTRACT_AFTER_ARGS});\ |
if ! (cd ${WRKDIR} && ${EXTRACT_CMD} ${EXTRACT_BEFORE_ARGS} ${_DISTDIR}/$$file ${EXTRACT_AFTER_ARGS});\ |
then \ |
then \ |
|
|
exit 1; \ |
exit 1; \ |
fi |
fi |
.endif |
.endif |
@if [ `${SH} -c umask` != 0022 ]; then \ |
@if [ `${SH} -c umask` != ${DEF_UMASK} ]; then \ |
${ECHO_MSG} "===> Warning: your umask is \"`${SH} -c umask`"\".; \ |
${ECHO_MSG} "===> Warning: your umask is \"`${SH} -c umask`"\".; \ |
${ECHO_MSG} " If this is not desired, set it to an appropriate value"; \ |
${ECHO_MSG} " If this is not desired, set it to an appropriate value"; \ |
${ECHO_MSG} " and install this port again by \`\`make reinstall''."; \ |
${ECHO_MSG} " and install this port again by \`\`make reinstall''."; \ |