make now can lowercase/uppercase variables.
Use it. NOTE: YOU MUST HAVE A CURRENT MAKE FOR THIS FILE TO WORK !!!
This commit is contained in:
parent
24c12b656f
commit
1bd0c1ce72
@ -1,6 +1,6 @@
|
|||||||
#-*- mode: Fundamental; tab-width: 4; -*-
|
#-*- mode: Fundamental; tab-width: 4; -*-
|
||||||
# ex:ts=4
|
# ex:ts=4
|
||||||
FULL_REVISION=$$OpenBSD: bsd.port.mk,v 1.118 1999/09/26 10:45:35 espie Exp $$
|
FULL_REVISION=$$OpenBSD: bsd.port.mk,v 1.119 1999/09/26 10:47:30 espie Exp $$
|
||||||
# $FreeBSD: bsd.port.mk,v 1.264 1996/12/25 02:27:44 imp Exp $
|
# $FreeBSD: bsd.port.mk,v 1.264 1996/12/25 02:27:44 imp Exp $
|
||||||
# $NetBSD: bsd.port.mk,v 1.62 1998/04/09 12:47:02 hubertf Exp $
|
# $NetBSD: bsd.port.mk,v 1.62 1998/04/09 12:47:02 hubertf Exp $
|
||||||
#
|
#
|
||||||
@ -134,7 +134,7 @@ _REVISION_NEEDED=${NEED_VERSION:C/.*\.//}
|
|||||||
# installations that override fetch and/or extract.
|
# installations that override fetch and/or extract.
|
||||||
# ALLFILES - All of ${DISTFILES} and ${PATCHFILES}.
|
# ALLFILES - All of ${DISTFILES} and ${PATCHFILES}.
|
||||||
# MIRROR_DISTFILE - Whether the distfile is redistributable without restrictions.
|
# MIRROR_DISTFILE - Whether the distfile is redistributable without restrictions.
|
||||||
# Defaults to "yes", set this to "no" if restrictions exist.
|
# Defaults to "Yes", set this to "No" if restrictions exist.
|
||||||
# IGNOREFILES - If some of the ${ALLFILES} are not checksum-able, set
|
# IGNOREFILES - If some of the ${ALLFILES} are not checksum-able, set
|
||||||
# this variable to their names.
|
# this variable to their names.
|
||||||
# PKGNAME - Name of the package file to create if the DISTNAME
|
# PKGNAME - Name of the package file to create if the DISTNAME
|
||||||
@ -267,11 +267,11 @@ _REVISION_NEEDED=${NEED_VERSION:C/.*\.//}
|
|||||||
# Arguments to ${FETCH_CMD} before filename (default: none).
|
# Arguments to ${FETCH_CMD} before filename (default: none).
|
||||||
# FETCH_AFTER_ARGS -
|
# FETCH_AFTER_ARGS -
|
||||||
# Arguments to ${FETCH_CMD} following filename (default: none).
|
# Arguments to ${FETCH_CMD} following filename (default: none).
|
||||||
# NO_IGNORE - Set this to YES (most probably in a "make fetch" in
|
# NO_IGNORE - Set this to Yes (most probably in a "make fetch" in
|
||||||
# ${PORTSDIR}) if you want to fetch all distfiles,
|
# ${PORTSDIR}) if you want to fetch all distfiles,
|
||||||
# even for packages not built due to limitation by
|
# even for packages not built due to limitation by
|
||||||
# absent X or Motif or ONLY_FOR_ARCHS...
|
# absent X or Motif or ONLY_FOR_ARCHS...
|
||||||
# NO_WARNINGS - Set this to YES to disable warnings regarding variables
|
# NO_WARNINGS - Set this to Yes to disable warnings regarding variables
|
||||||
# to define to control the build. Automatically set
|
# to define to control the build. Automatically set
|
||||||
# from the "mirror-distfiles" target.
|
# from the "mirror-distfiles" target.
|
||||||
# ALL_TARGET - The target to pass to make in the package when building.
|
# ALL_TARGET - The target to pass to make in the package when building.
|
||||||
@ -335,7 +335,7 @@ _REVISION_NEEDED=${NEED_VERSION:C/.*\.//}
|
|||||||
#
|
#
|
||||||
# Other variables:
|
# Other variables:
|
||||||
#
|
#
|
||||||
# NO_SHARED_LIBS - defined as "yes" for those machine architectures that do
|
# NO_SHARED_LIBS - defined as "Yes" for those machine architectures that do
|
||||||
# not support shared libraries. WARNING: This value is
|
# not support shared libraries. WARNING: This value is
|
||||||
# NOT defined until AFTER ".include bsd.port.mk". Thus
|
# NOT defined until AFTER ".include bsd.port.mk". Thus
|
||||||
# you can NOT use something like ".if defined(NO_SHARED_LIBS)"
|
# you can NOT use something like ".if defined(NO_SHARED_LIBS)"
|
||||||
@ -369,8 +369,8 @@ _REVISION_NEEDED=${NEED_VERSION:C/.*\.//}
|
|||||||
# (your own ports only!)
|
# (your 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
|
||||||
# will override the default "yes", and the distfile will
|
# will override the default "Yes", and the distfile will
|
||||||
# not be fetched.
|
# not be fetched.
|
||||||
# list-distfiles- list the distribution and patch files used by a port.
|
# list-distfiles- list the distribution and patch files used by a port.
|
||||||
# Typical use is (from the top level of the ports tree)
|
# Typical use is (from the top level of the ports tree)
|
||||||
@ -403,20 +403,20 @@ OPSYS_VER!= uname -r
|
|||||||
#
|
#
|
||||||
.if (${MACHINE_ARCH} == "alpha") || (${MACHINE_ARCH} == "powerpc") || \
|
.if (${MACHINE_ARCH} == "alpha") || (${MACHINE_ARCH} == "powerpc") || \
|
||||||
(${MACHINE_ARCH} == "vax") || (${MACHINE_ARCH} == "hppa")
|
(${MACHINE_ARCH} == "vax") || (${MACHINE_ARCH} == "hppa")
|
||||||
NO_SHARED_LIBS= yes
|
NO_SHARED_LIBS= Yes
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
# Compatibility kludge for old scripts
|
# Compatibility kludge for old scripts
|
||||||
.if defined(NOCLEANDEPENDS)
|
.if defined(NOCLEANDEPENDS)
|
||||||
.if ${NOCLEANDEPENDS}=="no"
|
.if ${NOCLEANDEPENDS:L}=="no"
|
||||||
CLEANDEPENDS?=yes
|
CLEANDEPENDS?=Yes
|
||||||
.else
|
.else
|
||||||
CLEANDEPENDS?=no
|
CLEANDEPENDS?=No
|
||||||
.endif
|
.endif
|
||||||
.else
|
.else
|
||||||
CLEANDEPENDS?=yes
|
CLEANDEPENDS?=Yes
|
||||||
.endif
|
.endif
|
||||||
NOMANCOMPRESS?= yes
|
NOMANCOMPRESS?= Yes
|
||||||
DEF_UMASK?= 022
|
DEF_UMASK?= 022
|
||||||
|
|
||||||
.if exists(${.CURDIR}/Makefile.${ARCH}-${OPSYS})
|
.if exists(${.CURDIR}/Makefile.${ARCH}-${OPSYS})
|
||||||
@ -495,7 +495,7 @@ MAKE_PROGRAM= ${GMAKE}
|
|||||||
MAKE_PROGRAM= ${MAKE}
|
MAKE_PROGRAM= ${MAKE}
|
||||||
.endif
|
.endif
|
||||||
.if defined(USE_AUTOCONF)
|
.if defined(USE_AUTOCONF)
|
||||||
GNU_CONFIGURE= yes
|
GNU_CONFIGURE= Yes
|
||||||
BUILD_DEPENDS+= ${AUTOCONF}:${PORTSDIR}/devel/autoconf
|
BUILD_DEPENDS+= ${AUTOCONF}:${PORTSDIR}/devel/autoconf
|
||||||
AUTOCONF_DIR?=${WRKSRC}
|
AUTOCONF_DIR?=${WRKSRC}
|
||||||
# missing ?= not an oversight
|
# missing ?= not an oversight
|
||||||
@ -611,7 +611,7 @@ FETCH_CMD?= /usr/bin/ftp
|
|||||||
.endif
|
.endif
|
||||||
|
|
||||||
# By default, distfiles have no restrictions placed on them
|
# By default, distfiles have no restrictions placed on them
|
||||||
MIRROR_DISTFILE?= yes
|
MIRROR_DISTFILE?= Yes
|
||||||
|
|
||||||
TOUCH?= /usr/bin/touch
|
TOUCH?= /usr/bin/touch
|
||||||
TOUCH_FLAGS?= -f
|
TOUCH_FLAGS?= -f
|
||||||
@ -620,11 +620,11 @@ PATCH?= /usr/bin/patch
|
|||||||
PATCH_STRIP?= -p0
|
PATCH_STRIP?= -p0
|
||||||
PATCH_DIST_STRIP?= -p0
|
PATCH_DIST_STRIP?= -p0
|
||||||
.if defined(PATCH_DEBUG)
|
.if defined(PATCH_DEBUG)
|
||||||
PATCH_DEBUG_TMP= yes
|
PATCH_DEBUG_TMP= Yes
|
||||||
PATCH_ARGS?= -d ${WRKSRC} -E ${PATCH_STRIP}
|
PATCH_ARGS?= -d ${WRKSRC} -E ${PATCH_STRIP}
|
||||||
PATCH_DIST_ARGS?= -d ${WRKSRC} -E ${PATCH_DIST_STRIP}
|
PATCH_DIST_ARGS?= -d ${WRKSRC} -E ${PATCH_DIST_STRIP}
|
||||||
.else
|
.else
|
||||||
PATCH_DEBUG_TMP= no
|
PATCH_DEBUG_TMP= No
|
||||||
PATCH_ARGS?= -d ${WRKSRC} --forward --quiet -E ${PATCH_STRIP}
|
PATCH_ARGS?= -d ${WRKSRC} --forward --quiet -E ${PATCH_STRIP}
|
||||||
PATCH_DIST_ARGS?= -d ${WRKSRC} --forward --quiet -E ${PATCH_DIST_STRIP}
|
PATCH_DIST_ARGS?= -d ${WRKSRC} --forward --quiet -E ${PATCH_DIST_STRIP}
|
||||||
.endif
|
.endif
|
||||||
@ -1062,7 +1062,7 @@ CONFIGURE_ENV+= PATH=${PORTPATH}
|
|||||||
.if defined(GNU_CONFIGURE)
|
.if defined(GNU_CONFIGURE)
|
||||||
CONFIGURE_ARGS+= --prefix=${PREFIX}
|
CONFIGURE_ARGS+= --prefix=${PREFIX}
|
||||||
CONFIGURE_ARGS+= --sysconfdir=${SYSCONFDIR}
|
CONFIGURE_ARGS+= --sysconfdir=${SYSCONFDIR}
|
||||||
HAS_CONFIGURE= yes
|
HAS_CONFIGURE= Yes
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
.if defined(NO_SHARED_LIBS)
|
.if defined(NO_SHARED_LIBS)
|
||||||
@ -1384,8 +1384,8 @@ do-fetch:
|
|||||||
# fetch - only fetch the distfile if it is allowed to be
|
# fetch - only fetch the distfile if it is allowed to be
|
||||||
# re-distributed freely
|
# re-distributed freely
|
||||||
mirror-distfiles:
|
mirror-distfiles:
|
||||||
.if (${MIRROR_DISTFILE} == "yes")
|
.if (${MIRROR_DISTFILE:L} == "yes")
|
||||||
@make fetch-all __ARCH_OK=yes NO_IGNORE=yes NO_WARNINGS=yes
|
@make fetch-all __ARCH_OK=Yes NO_IGNORE=Yes NO_WARNINGS=Yes
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
# list the distribution and patch files used by a port. Typical
|
# list the distribution and patch files used by a port. Typical
|
||||||
@ -1463,7 +1463,7 @@ do-patch:
|
|||||||
@${ECHO_MSG} "===> Applying distribution patches for ${PKGNAME}"
|
@${ECHO_MSG} "===> Applying distribution patches for ${PKGNAME}"
|
||||||
@cd ${FULLDISTDIR}; \
|
@cd ${FULLDISTDIR}; \
|
||||||
for i in ${PATCHFILES}; do \
|
for i in ${PATCHFILES}; do \
|
||||||
case ${PATCH_DEBUG_TMP} in \
|
case ${PATCH_DEBUG_TMP:L} in \
|
||||||
yes) ${ECHO_MSG} "===> Applying distribution patch $$i" ;; \
|
yes) ${ECHO_MSG} "===> Applying distribution patch $$i" ;; \
|
||||||
esac; \
|
esac; \
|
||||||
case $$i in \
|
case $$i in \
|
||||||
@ -1485,7 +1485,7 @@ do-patch:
|
|||||||
;; \
|
;; \
|
||||||
*) \
|
*) \
|
||||||
if [ -e $$i ]; then \
|
if [ -e $$i ]; then \
|
||||||
case ${PATCH_DEBUG_TMP} in \
|
case ${PATCH_DEBUG_TMP:L} in \
|
||||||
yes) ${ECHO_MSG} "===> Applying ${OPSYS} patch $$i" ;; \
|
yes) ${ECHO_MSG} "===> Applying ${OPSYS} patch $$i" ;; \
|
||||||
esac; \
|
esac; \
|
||||||
${PATCH} ${PATCH_ARGS} < $$i || \
|
${PATCH} ${PATCH_ARGS} < $$i || \
|
||||||
@ -1720,7 +1720,7 @@ fetch:
|
|||||||
.endif
|
.endif
|
||||||
.if !target(fetch-all)
|
.if !target(fetch-all)
|
||||||
fetch-all:
|
fetch-all:
|
||||||
@cd ${.CURDIR} && ${MAKE} ${.MAKEFLAGS} __FETCH_ALL=yes real-fetch
|
@cd ${.CURDIR} && ${MAKE} ${.MAKEFLAGS} __FETCH_ALL=Yes real-fetch
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
|
|
||||||
@ -1799,7 +1799,7 @@ post-${name}:
|
|||||||
|
|
||||||
.if !target(checkpatch)
|
.if !target(checkpatch)
|
||||||
checkpatch:
|
checkpatch:
|
||||||
@cd ${.CURDIR} && ${MAKE} PATCH_CHECK_ONLY=yes ${.MAKEFLAGS} patch
|
@cd ${.CURDIR} && ${MAKE} PATCH_CHECK_ONLY=Yes ${.MAKEFLAGS} patch
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
# Reinstall
|
# Reinstall
|
||||||
@ -1837,7 +1837,7 @@ pre-clean:
|
|||||||
|
|
||||||
.if !target(clean)
|
.if !target(clean)
|
||||||
clean: pre-clean
|
clean: pre-clean
|
||||||
.if ${CLEANDEPENDS}=="yes"
|
.if ${CLEANDEPENDS:L}=="yes"
|
||||||
@${MAKE} clean-depends
|
@${MAKE} clean-depends
|
||||||
.endif
|
.endif
|
||||||
@${ECHO_MSG} "===> Cleaning for ${PKGNAME}"
|
@${ECHO_MSG} "===> Cleaning for ${PKGNAME}"
|
||||||
@ -1879,9 +1879,9 @@ distclean: pre-distclean clean
|
|||||||
|
|
||||||
# are we called from bsd.port.subdir.mk (i.e. do we scan all dirs anyways)? XXX
|
# are we called from bsd.port.subdir.mk (i.e. do we scan all dirs anyways)? XXX
|
||||||
.ifdef(DIRPRFX)
|
.ifdef(DIRPRFX)
|
||||||
RECURSIVE_FETCH_LIST?= NO
|
RECURSIVE_FETCH_LIST?= No
|
||||||
.else
|
.else
|
||||||
RECURSIVE_FETCH_LIST?= YES
|
RECURSIVE_FETCH_LIST?= Yes
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
.if !target(fetch-list)
|
.if !target(fetch-list)
|
||||||
@ -2015,7 +2015,7 @@ checksum: fetch
|
|||||||
if [ "$$OK" != "true" ]; then \
|
if [ "$$OK" != "true" ]; then \
|
||||||
${ECHO_MSG} "Make sure the Makefile and checksum file (${CHECKSUM_FILE})"; \
|
${ECHO_MSG} "Make sure the Makefile and checksum file (${CHECKSUM_FILE})"; \
|
||||||
${ECHO_MSG} "are up to date. If you want to override this check, type"; \
|
${ECHO_MSG} "are up to date. If you want to override this check, type"; \
|
||||||
${ECHO_MSG} "\"make NO_CHECKSUM=yes [other args]\"."; \
|
${ECHO_MSG} "\"make NO_CHECKSUM=Yes [other args]\"."; \
|
||||||
exit 1; \
|
exit 1; \
|
||||||
fi) ; \
|
fi) ; \
|
||||||
fi
|
fi
|
||||||
@ -2043,7 +2043,7 @@ plist: install
|
|||||||
# The README.html target needs full information (this is passed via
|
# The README.html target needs full information (this is passed via
|
||||||
# depends-list and package-depends)
|
# depends-list and package-depends)
|
||||||
.ifndef FULL_PACKAGE_NAME
|
.ifndef FULL_PACKAGE_NAME
|
||||||
FULL_PACKAGE_NAME=NO
|
FULL_PACKAGE_NAME=No
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
# Make variables to pass along on recursive depends computations
|
# Make variables to pass along on recursive depends computations
|
||||||
@ -2054,7 +2054,7 @@ _DEPEND_THRU=FULL_PACKAGE_NAME=${FULL_PACKAGE_NAME}
|
|||||||
# XXX
|
# XXX
|
||||||
.if !target(package-name)
|
.if !target(package-name)
|
||||||
package-name:
|
package-name:
|
||||||
.if (${FULL_PACKAGE_NAME} == "YES")
|
.if (${FULL_PACKAGE_NAME:L} == "yes")
|
||||||
@${_DEPEND_ECHO} `${MAKE} package-path`/${PKGNAME}
|
@${_DEPEND_ECHO} `${MAKE} package-path`/${PKGNAME}
|
||||||
.else
|
.else
|
||||||
@${_DEPEND_ECHO} '${PKGNAME}'
|
@${_DEPEND_ECHO} '${PKGNAME}'
|
||||||
@ -2100,7 +2100,7 @@ pre-repackage:
|
|||||||
|
|
||||||
.if !target(package-noinstall)
|
.if !target(package-noinstall)
|
||||||
package-noinstall:
|
package-noinstall:
|
||||||
@cd ${.CURDIR} && ${MAKE} ${.MAKEFLAGS} PACKAGE_NOINSTALL=yes real-package
|
@cd ${.CURDIR} && ${MAKE} ${.MAKEFLAGS} PACKAGE_NOINSTALL=Yes real-package
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
################################################################
|
################################################################
|
||||||
@ -2267,7 +2267,7 @@ clean-depends:
|
|||||||
`${ECHO} ${FETCH_DEPENDS} ${BUILD_DEPENDS} ${LIB_DEPENDS} ${RUN_DEPENDS} | ${TR} '\040' '\012' | ${SED} -e 's/^[^:]*://' -e 's/:.*//' | sort -u` \
|
`${ECHO} ${FETCH_DEPENDS} ${BUILD_DEPENDS} ${LIB_DEPENDS} ${RUN_DEPENDS} | ${TR} '\040' '\012' | ${SED} -e 's/^[^:]*://' -e 's/:.*//' | sort -u` \
|
||||||
`${ECHO} ${DEPENDS} | ${TR} '\040' '\012' | ${SED} -e 's/:.*//' | sort -u`; do \
|
`${ECHO} ${DEPENDS} | ${TR} '\040' '\012' | ${SED} -e 's/:.*//' | sort -u`; do \
|
||||||
if cd $$dir 2>/dev/null ; then \
|
if cd $$dir 2>/dev/null ; then \
|
||||||
${MAKE} CLEANDEPENDS=no clean clean-depends; \
|
${MAKE} CLEANDEPENDS=No clean clean-depends; \
|
||||||
fi \
|
fi \
|
||||||
done
|
done
|
||||||
.endif
|
.endif
|
||||||
@ -2357,8 +2357,8 @@ PKGDEPTH!=${MAKE} package-path|${SED} -e 's|[^./][^/]*|..|g'
|
|||||||
README.html:
|
README.html:
|
||||||
@${ECHO_MSG} "===> Creating README.html for ${PKGNAME}"
|
@${ECHO_MSG} "===> Creating README.html for ${PKGNAME}"
|
||||||
@${ECHO} ${PKGNAME} | ${HTMLIFY} > $@.tmp3
|
@${ECHO} ${PKGNAME} | ${HTMLIFY} > $@.tmp3
|
||||||
@${MAKE} depends-list FULL_PACKAGE_NAME=YES | ${SORT_DEPENDS}>$@.tmp1
|
@${MAKE} depends-list FULL_PACKAGE_NAME=Yes | ${SORT_DEPENDS}>$@.tmp1
|
||||||
@${MAKE} package-depends FULL_PACKAGE_NAME=YES | ${SORT_DEPENDS} >$@.tmp2
|
@${MAKE} package-depends FULL_PACKAGE_NAME=Yes | ${SORT_DEPENDS} >$@.tmp2
|
||||||
.for I in 1 2
|
.for I in 1 2
|
||||||
@if [ -s $@.tmp$I ]; then \
|
@if [ -s $@.tmp$I ]; then \
|
||||||
(${CAT} $@.tmp$I | while read n; do \
|
(${CAT} $@.tmp$I | while read n; do \
|
||||||
@ -2405,7 +2405,7 @@ print-package-depends:
|
|||||||
|
|
||||||
.if !target(print-depends)
|
.if !target(print-depends)
|
||||||
print-depends:
|
print-depends:
|
||||||
@${MAKE} FULL_PACKAGE_NAME=YES print-depends-list print-package-depends
|
@${MAKE} FULL_PACKAGE_NAME=Yes print-depends-list print-package-depends
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
# Fake installation of package so that user can pkg_delete it later.
|
# Fake installation of package so that user can pkg_delete it later.
|
||||||
|
Loading…
Reference in New Issue
Block a user