diff options
author | linimon <linimon@FreeBSD.org> | 2006-06-27 20:07:57 +0000 |
---|---|---|
committer | linimon <linimon@FreeBSD.org> | 2006-06-27 20:07:57 +0000 |
commit | 45982b9958f87b6cb23ab42b8359c8e383938090 (patch) | |
tree | 1431bb196f78274b821f8d40631ab52c88975af3 /ports-mgmt/portmk | |
parent | 6f2401d605bc1fad002d057f1bde4be660e6d448 (diff) | |
download | FreeBSD-ports-45982b9958f87b6cb23ab42b8359c8e383938090.zip FreeBSD-ports-45982b9958f87b6cb23ab42b8359c8e383938090.tar.gz |
Update this to the next patchset about to be tested.
Diffstat (limited to 'ports-mgmt/portmk')
-rw-r--r-- | ports-mgmt/portmk/Mk/bsd.port.mk | 107 |
1 files changed, 82 insertions, 25 deletions
diff --git a/ports-mgmt/portmk/Mk/bsd.port.mk b/ports-mgmt/portmk/Mk/bsd.port.mk index fcfb8df..044dda0 100644 --- a/ports-mgmt/portmk/Mk/bsd.port.mk +++ b/ports-mgmt/portmk/Mk/bsd.port.mk @@ -291,7 +291,7 @@ FreeBSD_MAINTAINER= portmgr@FreeBSD.org # compression. # USE_ZIP - If set, this port distfile uses zip, not tar w/[bg]zip # for compression. -# USE_DOS2UNIX - If set to "YES", remove the ^M from all files +# USE_DOS2UNIX - If set to "YES", remove the ^M from all files # under ${WRKSRC}. If set to a string, remove in all # files under ${WRKSRC} with one of these names the ^Ms. # USE_GCC - If set, this port requires this version of gcc, either in @@ -393,13 +393,16 @@ FreeBSD_MAINTAINER= portmgr@FreeBSD.org # USE_FAM - If set, this port uses the File Alteration Monitor. # # WANT_FAM_SYSTEM -# - Legal values are: gamin (default),fam -# If set to an unknown value, the port is marked BROKEN. +# - Legal values are: gamin (default),fam +# If set to an unknown value, the port is marked IGNORE. ## # USE_AUTOTOOLS - If set, this port uses various GNU autotools # (libtool, autoconf, autoheader, automake et al.) # See bsd.autotools.mk for more details. ## +# USE_SCONS - If set, this port uses the Python-based SCons build system +# See bsd.scons.mk for more details. +## # USE_JAVA - If set, this port relies on the Java language. # Implies inclusion of bsd.java.mk. (Also see # that file for more information on USE_JAVA_*). @@ -462,15 +465,15 @@ FreeBSD_MAINTAINER= portmgr@FreeBSD.org # usable in *_DEPENDS (e.g. BUILD_DEPENDS=${LINUX_BASE_PORT}). # It honors USE_LINUX=foo and OVERRIDE_LINUX_BASE_PORT. # USE_RC_SUBR - If set, the ports startup/shutdown script uses the common -# routines found in etc/rc.subr and may need to -# depend on the sysutils/rc_subr port. -# If this is set to a list of files, these files will be -# automatically added to ${SUB_FILES}, some %%VAR%%'s will -# automatically be expanded, they will be installed in -# ${PREFIX}/etc/rc.d and added to the packing list. +# routines found in etc/rc.subr and may need to +# depend on the sysutils/rc_subr port. +# If this is set to a list of files, these files will be +# automatically added to ${SUB_FILES}, some %%VAR%%'s will +# automatically be expanded, they will be installed in +# ${PREFIX}/etc/rc.d and added to the packing list. # USE_RCORDER - List of rc.d startup scripts to be called early in the boot -# process. This acts exactly like USE_RC_SUBR except that -# scripts are installed in /etc/rc.d. +# process. This acts exactly like USE_RC_SUBR except that +# scripts are installed in /etc/rc.d. # RC_SUBR - Set to path of rc.subr. # Default: ${LOCALBASE}/etc/rc.subr. ## @@ -952,7 +955,7 @@ FreeBSD_MAINTAINER= portmgr@FreeBSD.org # - Different checksum algorithms to check for verifying the # integrity of the distfiles. The absence of the algorithm # in distinfo doesn't make it fail. -# Default: md5 +# Default: md5 sha256 # NO_CHECKSUM - Don't verify the checksum. Typically used when # when you noticed the distfile you just fetched has # a different checksum and you intend to verify if @@ -1150,6 +1153,9 @@ USE_SUBMAKE= yes # where 'make config' records user configuration options PORT_DBDIR?= /var/db/ports +LDCONFIG_DIR= libdata/ldconfig +LDCONFIG32_DIR= libdata/ldconfig32 + .if defined(LATEST_LINK) UNIQUENAME?= ${LATEST_LINK} .else @@ -1204,7 +1210,7 @@ check-makefile:: .if defined(PORTVERSION) .if ${PORTVERSION:M*[-_,]*}x != x -BROKEN= PORTVERSION ${PORTVERSION} may not contain '-' '_' or ',' +IGNORE= PORTVERSION ${PORTVERSION} may not contain '-' '_' or ',' .endif DISTVERSION?= ${PORTVERSION:S/:/::/g} .elif defined(DISTVERSION) @@ -1461,6 +1467,14 @@ PERL= ${LOCALBASE}/bin/perl .endif .endif +.if defined(USE_QMAIL) || defined(USE_QMAIL_RUN) || defined(USE_QMAIL_BUILD) || defined(WANT_QMAIL) +.if exists(${DEVELPORTSDIR}/Mk/bsd.mail.mk) +.include "${DEVELPORTSDIR}/Mk/bsd.mail.mk" +.else +.include "${PORTSDIR}/Mk/bsd.mail.mk" +.endif +.endif + .if defined(USE_SDL) || defined(WANT_SDL) .if exists(${DEVELPORTSDIR}/Mk/bsd.sdl.mk) .include "${DEVELPORTSDIR}/Mk/bsd.sdl.mk" @@ -1469,8 +1483,12 @@ PERL= ${LOCALBASE}/bin/perl .endif .endif -.if defined(USE_QMAIL) || defined(USE_QMAIL_RUN) || defined(USE_QMAIL_BUILD) || defined(WANT_QMAIL) -.include "${PORTSDIR}/Mk/bsd.mail.mk" +.if defined(WANT_WX) || defined(USE_WX) || defined(USE_WX_NOT) +.if exists(${DEVELPORTSDIR}/Mk/bsd.wx.mk) +.include "${DEVELPORTSDIR}/Mk/bsd.wx.mk" +.else +.include "${PORTSDIR}/Mk/bsd.wx.mk" +.endif .endif .if ${OSVERSION} >= 502123 @@ -1604,7 +1622,7 @@ LIB_DEPENDS+= ldap-2.3.2:${PORTSDIR}/net/openldap23${_OPENLDAP_FLAVOUR}-client .elif ${WANT_OPENLDAP_VER} == 24 LIB_DEPENDS+= ldap-2.4.1:${PORTSDIR}/net/openldap24${_OPENLDAP_FLAVOUR}-client .else -BROKEN= unknown OpenLDAP version: ${WANT_OPENLDAP_VER} +IGNORE= unknown OpenLDAP version: ${WANT_OPENLDAP_VER} .endif .endif @@ -1622,7 +1640,7 @@ _HAVE_FAM_SYSTEM= fam .if defined(WANT_FAM_SYSTEM) .if defined(WITH_FAM_SYSTEM) && ${WITH_FAM_SYSTEM}!=${WANT_FAM_SYSTEM} -BROKEN= The port wants to use ${WANT_FAM_SYSTEM} as its FAM system and you wish to use ${WITH_FAM_SYSTEM} +IGNORE= The port wants to use ${WANT_FAM_SYSTEM} as its FAM system and you wish to use ${WITH_FAM_SYSTEM} .endif FAM_SYSTEM= ${WANT_FAM_SYSTEM} .elif defined(WITH_FAM_SYSTEM) @@ -1644,7 +1662,7 @@ BROKEN= FAM system mismatch: ${_HAVE_FAM_SYSTEM} is installed and desired FAM sy .if defined(FAM_SYSTEM_${FAM_SYSTEM:U}) LIB_DEPENDS+= ${FAM_SYSTEM_${FAM_SYSTEM:U}} .else -BROKEN= unknown FAM system: ${FAM_SYSTEM} +IGNORE= unknown FAM system: ${FAM_SYSTEM} .endif .endif # USE_FAM @@ -1673,14 +1691,12 @@ SUB_FILES+= ${USE_RCORDER} .endif .endif -LDCONFIG_DIR= libdata/ldconfig -LDCONFIG32_DIR= libdata/ldconfig32 - .if defined(USE_LDCONFIG) || defined(USE_LDCONFIG32) .if ${OSVERSION} < 504105 || \ - (${OSVERSION} >= 700000 && ${OSVERSION} < 700012) || \ - (${OSVERSION} >= 600000 && ${OSVERSION} < 600104) + ( ${ OSVERSION} >= 700000 && ${OSVERSION} < 700012 ) || \ + ( ${ OSVERSION} >= 600000 && ${OSVERSION} < 600104 ) RUN_DEPENDS+= ${LOCALBASE}/${LDCONFIG_DIR}:${PORTSDIR}/misc/ldconfig_compat +NO_LDCONFIG_MTREE= yes .endif .if defined(USE_LDCONFIG) && ${USE_LDCONFIG:L} == "yes" USE_LDCONFIG= ${PREFIX}/lib @@ -1726,6 +1742,9 @@ USE_LINUX= ${OVERRIDE_LINUX_BASE_PORT} . endif . endif +# NOTE: when you update the default linux_base version (case "yes"), +# don't forget to update the Handbook! + . if exists(${PORTSDIR}/emulators/linux_base-${USE_LINUX}) LINUX_BASE_PORT= ${LINUXBASE}/bin/sh:${PORTSDIR}/emulators/linux_base-${USE_LINUX} . else @@ -1935,6 +1954,14 @@ RUN_DEPENDS+= ${PERL5}:${PORTSDIR}/lang/${PERL_PORT} .endif .endif +.if defined(USE_SCONS) +.if exists(${DEVELPORTSDIR}/Mk/bsd.scons.mk) +.include "${DEVELPORTSDIR}/Mk/bsd.scons.mk" +.else +.include "${PORTSDIR}/Mk/bsd.scons.mk" +.endif +.endif + .if defined(USE_SDL) || defined(WANT_SDL) .if exists(${DEVELPORTSDIR}/Mk/bsd.sdl.mk) .include "${DEVELPORTSDIR}/Mk/bsd.sdl.mk" @@ -1959,6 +1986,14 @@ RUN_DEPENDS+= ${PERL5}:${PORTSDIR}/lang/${PERL_PORT} .endif .endif +.if defined(USE_WX) || defined(USE_WX_NOT) +.if exists(${DEVELPORTSDIR}/Mk/bsd.wx.mk) +.include "${DEVELPORTSDIR}/Mk/bsd.wx.mk" +.else +.include "${PORTSDIR}/Mk/bsd.wx.mk" +.endif +.endif + .if defined(USE_APACHE) || defined(APACHE_COMPAT) .if exists(${DEVELPORTSDIR}/Mk/bsd.apache.mk) .include "${DEVELPORTSDIR}/Mk/bsd.apache.mk" @@ -3781,9 +3816,15 @@ install-ldconfig-file: .endif .if ${USE_LDCONFIG:L} != "${PREFIX}/lib" @${ECHO_MSG} "===> Installing ldconfig configuration file" +.if defined(NO_LDCONFIG_MTREE) + @${MKDIR} ${LDCONFIG_DIR} +.endif @${ECHO_CMD} ${USE_LDCONFIG} | ${TR} ' ' '\n' \ > ${PREFIX}/${LDCONFIG_DIR}/${UNIQUENAME} @${ECHO_CMD} ${LDCONFIG_DIR}/${UNIQUENAME} >> ${TMPPLIST} +.if defined(NO_LDCONFIG_MTREE) + @${ECHO_CMD} "@unexec rmdir ${LDCONFIG_DIR} >/dev/null 2>&1" >> ${TMPPLIST} +.endif .endif .endif .if defined(USE_LDCONFIG32) @@ -3795,9 +3836,15 @@ install-ldconfig-file: -${LDCONFIG} -32 -m ${USE_LDCONFIG32} .endif @${ECHO_MSG} "===> Installing 32-bit ldconfig configuration file" +.if defined(NO_LDCONFIG_MTREE) + @${MKDIR} ${LDCONFIG_32DIR} +.endif @${ECHO_CMD} ${USE_LDCONFIG32} | ${TR} ' ' '\n' \ > ${PREFIX}/${LDCONFIG32_DIR}/${UNIQUENAME} @${ECHO_CMD} ${LDCONFIG32_DIR}/${UNIQUENAME} >> ${TMPPLIST} +.if defined(NO_LDCONFIG_MTREE) + @${ECHO_CMD} "@unexec rmdir ${LDCONFIG32_DIR} >/dev/null 2>&1" >> ${TMPPLIST} +.endif .endif # This can be removed once, all ports have been converted to USE_LDCONFIG. .if defined(INSTALLS_SHLIB) @@ -4976,6 +5023,16 @@ package-recursive: package (cd $$dir; ${MAKE} package-noinstall); \ done +# Show missing dependiencies +missing: + @for dir in $$(${ALL-DEPENDS-LIST}); do \ + THISORIGIN=$$(${ECHO_CMD} $$dir | ${SED} 's,${PORTSDIR}/,,'); \ + installed=$$(${PKG_INFO} -qO $${THISORIGIN}); \ + if [ -z $$installed ]; then \ + ${ECHO_CMD} $$THISORIGIN; \ + fi \ + done + ################################################################ # Everything after here are internal targets and really # shouldn't be touched by anybody but the release engineers. @@ -5672,7 +5729,7 @@ VALID_DESKTOP_CATEGORIES+= Application Core Development Building Debugger IDE \ check-desktop-entries: .if defined(DESKTOP_ENTRIES) @set ${DESKTOP_ENTRIES} XXX; \ - if [ $$((($$# - 1) % 6)) -ne 0 ]; then \ + if [ `${EXPR} \( $$# - 1 \) % 6` -ne 0 ]; then \ ${ECHO_CMD} "${PKGNAME}: Makefile error: the DESKTOP_ENTRIES list must contain one or more groups of 6 elements"; \ exit 1; \ fi; \ @@ -5718,7 +5775,7 @@ check-desktop-entries: exit 1; \ fi; \ shift 6; \ - num=$$((num + 1)); \ + num=`${EXPR} $$num + 1`; \ done .else @${DO_NADA} |