diff options
author | Mark Linimon <linimon@FreeBSD.org> | 2009-03-22 02:14:27 +0000 |
---|---|---|
committer | Mark Linimon <linimon@FreeBSD.org> | 2009-03-22 02:14:27 +0000 |
commit | f4aaa80caf9f049e4238c51993e5d885dad9315f (patch) | |
tree | c360ba8e7c4b545fdcf56421e7da6e349114b715 | |
parent | Add p5-MouseX-AttributeHelpers 0.03, perl extension to extend your (diff) |
Catch up with master 1.613.
Notes
Notes:
svn path=/head/; revision=230627
-rw-r--r-- | ports-mgmt/portmk/Mk/bsd.port.mk | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/ports-mgmt/portmk/Mk/bsd.port.mk b/ports-mgmt/portmk/Mk/bsd.port.mk index cc7f44fd13ec..e1be90805460 100644 --- a/ports-mgmt/portmk/Mk/bsd.port.mk +++ b/ports-mgmt/portmk/Mk/bsd.port.mk @@ -489,6 +489,10 @@ FreeBSD_MAINTAINER= portmgr@FreeBSD.org # RPM ports. # Implies inclusion of bsd.linux-rpm.mk. # +# LINUX_OSRELEASE - Contains the value of compat.linux.osrelease sysctl. +# Will be used to distinguish which linux +# infrastructure ports should be used. +# Valid values: 2.4.2, 2.6.16. # AUTOMATIC_PLIST # - Set to yes to enable automatic packing list generation. # Currently has no effect unless USE_LINUX_RPM is set. @@ -1350,6 +1354,14 @@ ETCDIR?= ${PREFIX}/etc/${PORTNAME} .endif .endif +.if defined(USE_LINUX_APPS) +.if exists(${DEVELPORTSDIR}/Mk/bsd.linux-apps.mk) +.include "${DEVELPORTSDIR}/Mk/bsd.linux-apps.mk" +.else +.include "${PORTSDIR}/Mk/bsd.linux-apps.mk" +.endif +.endif + .if defined(X_WINDOW_SYSTEM) && ${X_WINDOW_SYSTEM:L} != "xorg" IGNORE= cannot be installed: bad X_WINDOW_SYSTEM setting; valid value is 'xorg' .endif @@ -1910,6 +1922,10 @@ USE_LINUX?= yes .if defined(USE_LINUX) +. if !defined(LINUX_OSRELEASE) +LINUX_OSRELEASE!= ${ECHO_CMD} `${SYSCTL} -n compat.linux.osrelease 2>/dev/null` +. endif + # install(1) also does a brandelf on strip, so don't strip with FreeBSD tools. STRIP= . if exists(${LINUXBASE}/usr/bin/strip) @@ -2105,6 +2121,14 @@ PLIST_SUB+= PERL_VERSION=${PERL_VERSION} \ .endif .endif +.if defined(USE_LINUX_APPS) +.if exists(${DEVELPORTSDIR}/Mk/bsd.linux-apps.mk) +.include "${DEVELPORTSDIR}/Mk/bsd.linux-apps.mk" +.else +.include "${PORTSDIR}/Mk/bsd.linux-apps.mk" +.endif +.endif + .if defined (USE_QT_VER) && ${USE_QT_VER:L} == 4 .if exists(${DEVELPORTSDIR}/Mk/bsd.qt.mk) .include "${DEVELPORTSDIR}/Mk/bsd.qt.mk" |