diff options
author | Alexander Leidinger <netchild@FreeBSD.org> | 2004-12-31 18:24:10 +0000 |
---|---|---|
committer | Alexander Leidinger <netchild@FreeBSD.org> | 2004-12-31 18:24:10 +0000 |
commit | 64cf27c85d89298041b8c8dc2fd090181e6d10d8 (patch) | |
tree | 11668b893f94453b0262a155d53e6eac8dd4a6f5 /Mk | |
parent | 440d8863c8d496b982754e2a71867892213a902b (diff) | |
download | ports-64cf27c85d89298041b8c8dc2fd090181e6d10d8.tar.gz ports-64cf27c85d89298041b8c8dc2fd090181e6d10d8.zip |
Notes
Diffstat (limited to 'Mk')
-rw-r--r-- | Mk/bsd.port.mk | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/Mk/bsd.port.mk b/Mk/bsd.port.mk index e3fa92c6765f..e86a4b629769 100644 --- a/Mk/bsd.port.mk +++ b/Mk/bsd.port.mk @@ -341,7 +341,9 @@ FreeBSD_MAINTAINER= portmgr@FreeBSD.org # USE_QT_VER - Set to 3 to use the QT libraries. # Implies inclusion of bsd.kde.mk. ## -# USE_LINUX - Set to yes to say the port needs emulators/linux_base. +# USE_LINUX - Set to yes to say the port needs emulators/linux_base-8. +# Set to value <X>, if the port needs emulators/linux_base-<X>. +# If set to "7", a dependency is registered to emulators/linux_base. # USE_LINUX_PREFIX # - controls the action of PREFIX (see above). ## @@ -1134,9 +1136,6 @@ USE_X_PREFIX= yes .if defined(USE_X_PREFIX) USE_XLIB= yes .endif -.if defined(USE_LINUX_PREFIX) -USE_LINUX= yes -.endif .if defined(USE_X_PREFIX) PREFIX?= ${X11BASE} .elif defined(USE_LINUX_PREFIX) @@ -1479,7 +1478,15 @@ LIB_DEPENDS+= intl.${USE_GETTEXT}:${PORTSDIR}/devel/gettext .endif .if defined(USE_LINUX) -RUN_DEPENDS+= ${LINUXBASE}/etc/redhat-release:${PORTSDIR}/emulators/linux_base +. if exists(${PORTSDIR}/emulators/linux_base-${USE_LINUX}) +RUN_DEPENDS+= ${LINUXBASE}/bin/sh:${PORTSDIR}/emulators/linux_base-${USE_LINUX} +. else +. if ${USE_LINUX} == "7" +RUN_DEPENDS+= ${LINUXBASE}/etc/redhat-release:${PORTSDIR}/emulators/linux_base +. else +RUN_DEPENDS+= ${LINUXBASE}/etc/redhat-release:${PORTSDIR}/emulators/linux_base-8 +. endif +. endif .endif .if defined(USE_MOTIF) |