diff options
author | ahze <ahze@df743ca5-7f9a-e211-a948-0013205c9059> | 2005-01-01 06:03:54 +0800 |
---|---|---|
committer | ahze <ahze@df743ca5-7f9a-e211-a948-0013205c9059> | 2005-01-01 06:03:54 +0800 |
commit | 60636b71c51ad517148e7d8b49813fea645c6402 (patch) | |
tree | 3bc097a95f3a0d1c5e3565a827082eda18e24400 /Mk/bsd.port.mk | |
parent | 80963b05dd36fe6ad999fa0b94c19fd2c622a3b6 (diff) | |
download | marcuscom-ports-60636b71c51ad517148e7d8b49813fea645c6402.tar marcuscom-ports-60636b71c51ad517148e7d8b49813fea645c6402.tar.gz marcuscom-ports-60636b71c51ad517148e7d8b49813fea645c6402.tar.bz2 marcuscom-ports-60636b71c51ad517148e7d8b49813fea645c6402.tar.lz marcuscom-ports-60636b71c51ad517148e7d8b49813fea645c6402.tar.xz marcuscom-ports-60636b71c51ad517148e7d8b49813fea645c6402.tar.zst marcuscom-ports-60636b71c51ad517148e7d8b49813fea645c6402.zip |
Sync with ports.
git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@3347 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'Mk/bsd.port.mk')
-rw-r--r-- | Mk/bsd.port.mk | 27 |
1 files changed, 16 insertions, 11 deletions
diff --git a/Mk/bsd.port.mk b/Mk/bsd.port.mk index 969787fa7..dbf19386d 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) @@ -1483,7 +1482,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) @@ -1892,20 +1899,18 @@ EXTRACT_CMD?= ${GZIP_CMD} # Figure out where the local mtree file is .if !defined(MTREE_FILE) && !defined(NO_MTREE) -.if ${PREFIX} == ${X11BASE} +.if ${PREFIX} == ${X11BASE} || defined(USE_X_PREFIX) +# User may have specified non-standard PREFIX for installing a port that +# uses X .if ${X_WINDOW_SYSTEM:L} == xfree86-3 MTREE_FILE= /etc/mtree/BSD.x11.dist .else MTREE_FILE= /etc/mtree/BSD.x11-4.dist .endif -.else -.if ${PREFIX} == ${LOCALBASE} -MTREE_FILE= /etc/mtree/BSD.local.dist .elif ${PREFIX} == /usr MTREE_FILE= /etc/mtree/BSD.usr.dist .else -NO_MTREE= yes # Can't figure out prefix, assume nonstandard -.endif +MTREE_FILE= /etc/mtree/BSD.local.dist .endif .endif MTREE_CMD?= /usr/sbin/mtree |