version 1.49, 1998/11/17 07:14:16 |
version 1.50, 1998/11/19 04:20:09 |
|
|
# contact information on the person(s) to contact if you have questions/ |
# contact information on the person(s) to contact if you have questions/ |
# suggestions about that specific port. By default (if no MAINTAINER |
# suggestions about that specific port. By default (if no MAINTAINER |
# is listed), a port is maintained by the subscribers of the ports@freebsd.org |
# is listed), a port is maintained by the subscribers of the ports@freebsd.org |
# mailing list (OpenBSD: ports@openbsd.org), and any correspondece |
# mailing list (OpenBSD: ports@openbsd.org), and any correspondence |
# should be directed there. |
# should be directed there. |
# |
# |
FreeBSD_MAINTAINER= asami@FreeBSD.ORG |
FreeBSD_MAINTAINER= asami@FreeBSD.ORG |
|
|
# EXTRACT_ONLY - If defined, a subset of ${DISTFILES} you want to |
# EXTRACT_ONLY - If defined, a subset of ${DISTFILES} you want to |
# actually extract. |
# actually extract. |
# PATCHDIR - A directory containing any additional patches you made |
# PATCHDIR - A directory containing any additional patches you made |
# to port this software to FreeBSD (default: |
# to port this software to OpenBSD (default: |
# ${.CURDIR}/patches) |
# ${.CURDIR}/patches) |
|
# PATCH_LIST - list of patches to apply, can include wildcards (default: |
|
# patch-*) |
# SCRIPTDIR - A directory containing any auxiliary scripts |
# SCRIPTDIR - A directory containing any auxiliary scripts |
# (default: ${.CURDIR}/scripts) |
# (default: ${.CURDIR}/scripts) |
# FILESDIR - A directory containing any miscellaneous additional files. |
# FILESDIR - A directory containing any miscellaneous additional files. |
|
|
# the same file. |
# the same file. |
# checksum - Use files/md5 to ensure that your distfiles are valid. |
# checksum - Use files/md5 to ensure that your distfiles are valid. |
# makesum - Generate files/md5 (only do this for your own ports!). |
# makesum - Generate files/md5 (only do this for your own ports!). |
|
# addsum - update files/md5 in a non-destructive way (own ports only!) |
# readme - Create a README.html file describing the category or package |
# readme - Create a README.html file describing the category or package |
# mirror-distfiles - Mirror the distfile(s) if they are freely redistributable |
# mirror-distfiles - Mirror the distfile(s) if they are freely redistributable |
# Setting MIRROR_DISTFILE to "no" in the package Makefile |
# Setting MIRROR_DISTFILE to "no" in the package Makefile |
|
|
PATCHDIR?= ${.CURDIR}/patches |
PATCHDIR?= ${.CURDIR}/patches |
.endif |
.endif |
|
|
|
PATCH_LIST?= patch-* |
|
|
.if exists(${.CURDIR}/scripts.${ARCH}-${OPSYS}) |
.if exists(${.CURDIR}/scripts.${ARCH}-${OPSYS}) |
SCRIPTDIR?= ${.CURDIR}/scripts.${ARCH}-${OPSYS} |
SCRIPTDIR?= ${.CURDIR}/scripts.${ARCH}-${OPSYS} |
.elif exists(${.CURDIR}/scripts.${OPSYS}) |
.elif exists(${.CURDIR}/scripts.${OPSYS}) |
|
|
GZIP_CMD?= /usr/bin/gzip -nf ${GZIP} |
GZIP_CMD?= /usr/bin/gzip -nf ${GZIP} |
LDCONFIG?= [ ! -x /sbin/ldconfig ] || /sbin/ldconfig |
LDCONFIG?= [ ! -x /sbin/ldconfig ] || /sbin/ldconfig |
LN?= /bin/ln |
LN?= /bin/ln |
|
M4?= /usr/bin/m4 |
MKDIR?= /bin/mkdir -p |
MKDIR?= /bin/mkdir -p |
MV?= /bin/mv |
MV?= /bin/mv |
READLINK?= /usr/bin/readlink |
READLINK?= /usr/bin/readlink |
|
|
@${DO_NADA} |
@${DO_NADA} |
makesum: |
makesum: |
@${DO_NADA} |
@${DO_NADA} |
|
addsum: |
|
@${DO_NADA} |
.endif |
.endif |
|
|
# Disable patch |
# Disable patch |
|
|
done) |
done) |
.endif |
.endif |
@if [ -d ${PATCHDIR} ]; then \ |
@if [ -d ${PATCHDIR} ]; then \ |
if [ "`echo ${PATCHDIR}/patch-*`" = "${PATCHDIR}/patch-*" ]; then \ |
for i in ${PATCHDIR}/${PATCH_LIST}; do \ |
${ECHO_MSG} "===> Ignoring empty patch directory"; \ |
case $$i in \ |
if [ -d ${PATCHDIR}/CVS ]; then \ |
*.orig|*.rej|*~) \ |
${ECHO_MSG} "===> Perhaps you forgot the -P flag to cvs co or update?"; \ |
${ECHO_MSG} "===> Ignoring patchfile $$i" ; \ |
fi; \ |
;; \ |
else \ |
*) \ |
${ECHO_MSG} "===> Applying ${OPSYS} patches for ${PKGNAME}" ; \ |
if [ -e $$i ]; then \ |
for i in ${PATCHDIR}/patch-*; do \ |
|
case $$i in \ |
|
*.orig|*.rej|*~) \ |
|
${ECHO_MSG} "===> Ignoring patchfile $$i" ; \ |
|
;; \ |
|
*) \ |
|
if [ ${PATCH_DEBUG_TMP} = yes ]; then \ |
if [ ${PATCH_DEBUG_TMP} = yes ]; then \ |
${ECHO_MSG} "===> Applying ${OPSYS} patch $$i" ; \ |
${ECHO_MSG} "===> Applying ${OPSYS} patch $$i" ; \ |
fi; \ |
fi; \ |
${PATCH} ${PATCH_ARGS} < $$i; \ |
${PATCH} ${PATCH_ARGS} < $$i; \ |
;; \ |
else \ |
esac; \ |
${ECHO_MSG} "===> Can't find patch matching $$i"; \ |
done; \ |
if [ -d ${PATCHDIR}/CVS -a "$$i" = \ |
fi; \ |
"${PATCHDIR}/patch-*" ]; then \ |
|
${ECHO_MSG} "===> Perhaps you forgot the -P flag to cvs co or update?"; \ |
|
fi; \ |
|
fi; \ |
|
;; \ |
|
esac; \ |
|
done; \ |
fi |
fi |
.endif |
.endif |
|
|
|
|
@for file in ${_IGNOREFILES}; do \ |
@for file in ${_IGNOREFILES}; do \ |
${ECHO} "MD5 ($$file) = IGNORE" >> ${MD5_FILE}; \ |
${ECHO} "MD5 ($$file) = IGNORE" >> ${MD5_FILE}; \ |
done |
done |
|
.endif |
|
|
|
.if !target(addsum) |
|
addsum: fetch |
|
@${MKDIR} ${FILESDIR} |
|
@touch ${MD5_FILE} |
|
@(cd ${DISTDIR}; \ |
|
for file in ${_CKSUMFILES}; do \ |
|
${MD5} $$file >> ${MD5_FILE}; \ |
|
done) |
|
@for file in ${_IGNOREFILES}; do \ |
|
${ECHO} "MD5 ($$file) = IGNORE" >> ${MD5_FILE}; \ |
|
done |
|
@sort -u ${MD5_FILE} >${MD5_FILE}.new |
|
@${MV} -f ${MD5_FILE}.new ${MD5_FILE} |
|
@if [ `${SED} -e 's/\=.*$$//' ${MD5_FILE} | uniq -d | wc -l` -ne 0 ]; then \ |
|
${ECHO} "Inconsistent checksum in ${MD5_FILE}"; \ |
|
else \ |
|
${ECHO} "${MD5_FILE} updated okay, don't forget to remove cruft"; \ |
|
fi |
.endif |
.endif |
|
|
.if !target(checksum) |
.if !target(checksum) |