diff options
author | eik <eik@FreeBSD.org> | 2004-07-24 16:58:50 +0800 |
---|---|---|
committer | eik <eik@FreeBSD.org> | 2004-07-24 16:58:50 +0800 |
commit | dd97300e4f0755a693813bb48c8d38a461d7298a (patch) | |
tree | 779dd90f97a0d7a616a672bcbbb2df9defc4a31c /ports-mgmt/portmk | |
parent | d12f9a253efa9b0e9d6b8965120f6bf6b3dfda13 (diff) | |
download | freebsd-ports-gnome-dd97300e4f0755a693813bb48c8d38a461d7298a.tar.gz freebsd-ports-gnome-dd97300e4f0755a693813bb48c8d38a461d7298a.tar.zst freebsd-ports-gnome-dd97300e4f0755a693813bb48c8d38a461d7298a.zip |
sync with latest b.p.m
Diffstat (limited to 'ports-mgmt/portmk')
-rw-r--r-- | ports-mgmt/portmk/Mk/bsd.port.post.mk | 98 | ||||
-rw-r--r-- | ports-mgmt/portmk/Mk/bsd.port.pre.mk | 10 | ||||
-rw-r--r-- | ports-mgmt/portmk/Mk/bsd.port.subdir.mk | 5 |
3 files changed, 82 insertions, 31 deletions
diff --git a/ports-mgmt/portmk/Mk/bsd.port.post.mk b/ports-mgmt/portmk/Mk/bsd.port.post.mk index 22dc564b3e7f..73b04965c429 100644 --- a/ports-mgmt/portmk/Mk/bsd.port.post.mk +++ b/ports-mgmt/portmk/Mk/bsd.port.post.mk @@ -241,30 +241,92 @@ LIB_DEPENDS+= Xm.3:${PORTSDIR}/x11-toolkits/open-motif LIB_DEPENDS+= ttf.4:${PORTSDIR}/print/freetype .endif -.if ${XFREE86_VERSION} == 3 +.if defined(X_WINDOW_SYSTEM) && ${X_WINDOW_SYSTEM:L} == xorg +X_IMAKE_PORT= ${PORTSDIR}/devel/imake-6 +X_LIBRARIES_PORT= ${PORTSDIR}/x11/xorg-libraries +X_CLIENTS_PORT= ${PORTSDIR}/x11/xorg-clients +X_SERVER_PORT= ${PORTSDIR}/x11-servers/xorg-server +X_FONTSERVER_PORT= ${PORTSDIR}/x11-servers/xorg-fontserver +X_PRINTSERVER_PORT= ${PORTSDIR}/x11-servers/xorg-printserver +X_VFBSERVER_PORT= ${PORTSDIR}/x11-servers/xorg-vfbserver +X_NESTSERVER_PORT= ${PORTSDIR}/x11-servers/xorg-nestserver +X_FONTS_ENCODINGS_PORT= ${PORTSDIR}/x11-fonts/xorg-fonts-encodings +X_FONTS_MISC_PORT= ${PORTSDIR}/x11-fonts/xorg-fonts-miscbitmaps +X_FONTS_100DPI_PORT= ${PORTSDIR}/x11-fonts/xorg-fonts-100dpi +X_FONTS_75DPI_PORT= ${PORTSDIR}/x11-fonts/xorg-fonts-75dpi +X_FONTS_CYRILLIC_PORT= ${PORTSDIR}/x11-fonts/xorg-fonts-cyrillic +X_FONTS_TTF_PORT= ${PORTSDIR}/x11-fonts/xorg-fonts-truetype +X_FONTS_TYPE1_PORT= ${PORTSDIR}/x11-fonts/xorg-fonts-type1 +X_MANUALS_PORT= ${PORTSDIR}/x11/xorg-manpages +.elif defined(X_WINDOW_SYSTEM) && ${X_WINDOW_SYSTEM:L} == xfree86-4 +X_IMAKE_PORT= ${PORTSDIR}/devel/imake-4 +X_LIBRARIES_PORT= ${PORTSDIR}/x11/XFree86-4-libraries +X_CLIENTS_PORT= ${PORTSDIR}/x11/XFree86-4-clients +X_SERVER_PORT= ${PORTSDIR}/x11-servers/XFree86-4-Server +X_FONTSERVER_PORT= ${PORTSDIR}/x11-servers/XFree86-4-FontServer +X_PRINTSERVER_PORT= ${PORTSDIR}/x11-servers/XFree86-4-PrintServer +X_VFBSERVER_PORT= ${PORTSDIR}/x11-servers/XFree86-4-VirtualFramebufferServer +X_NESTSERVER_PORT= ${PORTSDIR}/x11-servers/XFree86-4-NestServer +X_FONTS_ENCODINGS_PORT= ${PORTSDIR}/x11-fonts/XFree86-4-fontEncodings +X_FONTS_MISC_PORT= ${PORTSDIR}/x11-fonts/XFree86-4-fontDefaultBitmaps +X_FONTS_100DPI_PORT= ${PORTSDIR}/x11-fonts/XFree86-4-font100dpi +X_FONTS_75DPI_PORT= ${PORTSDIR}/x11-fonts/XFree86-4-font75dpi +X_FONTS_CYRILLIC_PORT= ${PORTSDIR}/x11-fonts/XFree86-4-fontCyrillic +X_FONTS_TTF_PORT= ${PORTSDIR}/x11-fonts/XFree86-4-fontScalable +X_FONTS_TYPE1_PORT= ${PORTSDIR}/x11-fonts/XFree86-4-fontScalable +X_MANUALS_PORT= ${PORTSDIR}/x11/XFree86-4-manuals +.elif defined(X_WINDOW_SYSTEM) && ${X_WINDOW_SYSTEM:L} == xfree86-3 +X_IMAKE_PORT= ${PORTSDIR}/x11/XFree86 +X_LIBRARIES_PORT= ${PORTSDIR}/x11/XFree86 +X_CLIENTS_PORT= ${PORTSDIR}/x11/XFree86 +X_SERVER_PORT= ${PORTSDIR}/x11/XFree86 +X_FONTSERVER_PORT= ${PORTSDIR}/x11/XFree86 +X_PRINTSERVER_PORT= ${PORTSDIR}/x11/XFree86 +X_VFBSERVER_PORT= ${PORTSDIR}/x11/XFree86 +X_NESTSERVER_PORT= ${PORTSDIR}/x11/XFree86 +X_FONTS_ENCODINGS_PORT= ${PORTSDIR}/x11/XFree86 +X_FONTS_MISC_PORT= ${PORTSDIR}/x11/XFree86 +X_FONTS_100DPI_PORT= ${PORTSDIR}/x11/XFree86 +X_FONTS_75DPI_PORT= ${PORTSDIR}/x11/XFree86 +X_FONTS_CYRILLIC_PORT= ${PORTSDIR}/x11/XFree86 +X_FONTS_TTF_PORT= ${PORTSDIR}/x11/XFree86 +X_FONTS_TYPE1_PORT= ${PORTSDIR}/x11/XFree86 +X_MANUALS_PORT= ${PORTSDIR}/x11/XFree86 +.else +.error Bad X_WINDOW_SYSTEM setting +.endif + .if defined(USE_IMAKE) -BUILD_DEPENDS+= imake:${PORTSDIR}/x11/XFree86 +BUILD_DEPENDS+= imake:${X_IMAKE_PORT} .endif + +.if ${X_WINDOW_SYSTEM:L} == xfree86-3 + .if defined(USE_XPM) LIB_DEPENDS+= Xpm.4:${PORTSDIR}/graphics/xpm .endif .if defined(USE_GL) LIB_DEPENDS+= GL.14:${PORTSDIR}/graphics/mesagl .endif -XAWVER= 6 -PKG_IGNORE_DEPENDS?= '^XFree86-3\.' + +XAWVER= 6 +PKG_IGNORE_DEPENDS?= '^XFree86-3\.' + .else + .if defined(USE_IMAKE) -BUILD_DEPENDS+= ${X11BASE}/lib/X11/config/date.def:${PORTSDIR}/devel/imake-4 -RUN_DEPENDS+= mkhtmlindex:${PORTSDIR}/devel/imake-4 +RUN_DEPENDS+= mkhtmlindex:${X_IMAKE_PORT} .endif .if defined(USE_XPM) || defined(USE_GL) -USE_XLIB= yes +USE_XLIB= yes .endif -XAWVER= 7 -PKG_IGNORE_DEPENDS?= 'this_port_does_not_exist' + +XAWVER= 7 +PKG_IGNORE_DEPENDS?= 'this_port_does_not_exist' + .endif -PLIST_SUB+= XAWVER=${XAWVER} + +PLIST_SUB+= XAWVER=${XAWVER} .if defined(USE_MESA) LIB_DEPENDS+= glut.3:${PORTSDIR}/graphics/libglut @@ -338,7 +400,7 @@ MYSQL_VER= ${DEFAULT_MYSQL_VER} .if defined(BROKEN_WITH_MYSQL) . for VER in ${BROKEN_WITH_MYSQL} . if (${MYSQL_VER} == "${VER}") -IGNORE= "Doesn't work with MySQL version : ${MYSQL_VER} (Doesn't support MySQL ${BROKEN_WITH_MYSQL})" +IGNORE= Doesn't work with MySQL version : ${MYSQL_VER} (Doesn't support MySQL ${BROKEN_WITH_MYSQL}) . endif . endfor .endif # BROKEN_WITH_MYSQL @@ -349,15 +411,7 @@ BROKEN= "unknown MySQL version: ${MYSQL_VER}" .endif # USE_MYSQL .if defined(USE_XLIB) -.if ${XFREE86_VERSION} == 3 -# Don't try to build XFree86-3 even if ALWAYS_BUILD_DEPENDS is defined -- -# it's just too big.... -.if !defined(ALWAYS_BUILD_DEPENDS) -LIB_DEPENDS+= X11.6:${PORTSDIR}/x11/XFree86 -.endif -.else -LIB_DEPENDS+= X11.6:${PORTSDIR}/x11/XFree86-4-libraries -.endif +LIB_DEPENDS+= X11.6:${X_LIBRARIES_PORT} # Add explicit X options to avoid problems with false positives in configure .if defined(GNU_CONFIGURE) CONFIGURE_ARGS+=--x-libraries=${X11BASE}/lib --x-includes=${X11BASE}/include @@ -536,7 +590,7 @@ EXTRACT_CMD?= ${GZIP_CMD} # Figure out where the local mtree file is .if !defined(MTREE_FILE) && !defined(NO_MTREE) .if defined(USE_X_PREFIX) -.if ${XFREE86_VERSION} == 3 +.if ${X_WINDOW_SYSTEM:L} == xfree86-3 MTREE_FILE= /etc/mtree/BSD.x11.dist .else MTREE_FILE= /etc/mtree/BSD.x11-4.dist @@ -958,7 +1012,7 @@ INFO_PATH?= share/info INFO_PATH?= info .endif -.if ${XFREE86_VERSION} == 3 +.if ${X_WINDOW_SYSTEM:L} == xfree86-3 XFREE86_HTML_MAN= no .else .if defined(USE_IMAKE) diff --git a/ports-mgmt/portmk/Mk/bsd.port.pre.mk b/ports-mgmt/portmk/Mk/bsd.port.pre.mk index 8dada2f59e80..9b0853ed59db 100644 --- a/ports-mgmt/portmk/Mk/bsd.port.pre.mk +++ b/ports-mgmt/portmk/Mk/bsd.port.pre.mk @@ -393,11 +393,13 @@ PERL= ${LOCALBASE}/bin/perl .include "${PORTSDIR}/Mk/bsd.sdl.mk" .endif -# defaults to 4.x for 5.0-CURRENT and 4.5-STABLE; and 3.3.6 for all other branches -.if ${OSVERSION} > 500025 || ( ${OSVERSION} >= 450005 && ${OSVERSION} < 500000 ) -XFREE86_VERSION?= 4 +.if ${OSVERSION} >= 502123 +X_WINDOW_SYSTEM ?= xorg +.elif (${OSVERSION} >= 450005 && !defined(XFREE86_VERSION)) || \ + (defined(XFREE86_VERSION) && ${XFREE86_VERSION} == 4) +X_WINDOW_SYSTEM ?= xfree86-4 .else -XFREE86_VERSION?= 3 +X_WINDOW_SYSTEM ?= xfree86-3 .endif # Location of mounted CDROM(s) to search for files diff --git a/ports-mgmt/portmk/Mk/bsd.port.subdir.mk b/ports-mgmt/portmk/Mk/bsd.port.subdir.mk index 677b7c9672c0..48f50e13453f 100644 --- a/ports-mgmt/portmk/Mk/bsd.port.subdir.mk +++ b/ports-mgmt/portmk/Mk/bsd.port.subdir.mk @@ -1,8 +1,3 @@ # $FreeBSD$ -# local customization of the ports tree -.if exists(${.CURDIR}/Makefile.local) -.include "${.CURDIR}/Makefile.local" -.endif - .include "${PORTSDIR}/Mk/bsd.port.subdir.mk" |