diff options
author | kris <kris@FreeBSD.org> | 2003-08-04 09:17:39 +0800 |
---|---|---|
committer | kris <kris@FreeBSD.org> | 2003-08-04 09:17:39 +0800 |
commit | 9fd98bc1e23ed5d818293aea368a3444fc9b0bf0 (patch) | |
tree | 089b287dc70a07011ffc3079eea2b95bf3bc5b3b /Mk/bsd.port.mk | |
parent | c5714f069a1133becca0041dbc4ea62be1b12d08 (diff) | |
download | freebsd-ports-gnome-9fd98bc1e23ed5d818293aea368a3444fc9b0bf0.tar.gz freebsd-ports-gnome-9fd98bc1e23ed5d818293aea368a3444fc9b0bf0.tar.zst freebsd-ports-gnome-9fd98bc1e23ed5d818293aea368a3444fc9b0bf0.zip |
* Remove some obsolete options: BROKEN_ELF, USE_DGS, NO_WRKDIR,
NO_EXTRACT, NO_CONFIGURE, NO_PATCH. [1]
* Remove support for USE_KDE{BASE,LIBS}_VER=2, since KDE 2.x is no
longer in the ports collection [2]
* Add support for semi-automatic processing of GNU info files; they
should be listed in the INFO variable (without the trailing .info),
and appropriate installation/deinstallation code will be automatically
added to the temporary pkg-plist before package registration. [3]
Submitted by: arved [1][2], gerald [3]
PR: ports/54782 [1][2], ports/54883 [3]
Diffstat (limited to 'Mk/bsd.port.mk')
-rw-r--r-- | Mk/bsd.port.mk | 43 |
1 files changed, 21 insertions, 22 deletions
diff --git a/Mk/bsd.port.mk b/Mk/bsd.port.mk index 06dd008ace08..40da1021b90b 100644 --- a/Mk/bsd.port.mk +++ b/Mk/bsd.port.mk @@ -143,7 +143,6 @@ FreeBSD_MAINTAINER= portmgr@FreeBSD.org # because it cannot be manually fetched, etc). Error # logs will not appear on bento, so this should be # used sparingly. -# BROKEN_ELF - Port doesn't build on ELF machines. # BROKEN - Port is believed to be broken. Package builds will # still be attempted on the bento package cluster to # test this assumption. @@ -336,7 +335,6 @@ FreeBSD_MAINTAINER= portmgr@FreeBSD.org # USE_X_PREFIX - Says that the port installs in ${X11BASE}. Implies USE_XLIB. # USE_XLIB - Says that the port uses the X libraries. # -# USE_DGS - Says that the port uses the dgs X11 libraries. # USE_FREETYPE - Says that the port uses the freetype print libraries. # USE_MESA - Says that the port uses the Mesa libraries. # USE_MOTIF - Says that the port uses the Motif toolkit. Implies USE_XPM. @@ -367,11 +365,11 @@ FreeBSD_MAINTAINER= portmgr@FreeBSD.org # for more details. # Default: not set. # -# USE_KDEBASE_VER - Set to either 2 or 3 to use the KDE windowing system. -# (Only 3 is currently supported). Implies inclusion +# USE_KDEBASE_VER - Set to 3 to use the KDE windowing system. +# Implies inclusion # of bsd.kde.mk. Default: not set. -# USE_KDELIBS_VER - Set to either 2 or 3 to use the KDE libraries. -# (Only 3 is currently supported). Implies inclusion +# USE_KDELIBS_VER - Set to 3 to use the KDE libraries. +# Implies inclusion # of bsd.kde.mk. Default: not set. # USE_QT_VER - Set to either 2 or 3 to use the QT libraries. # (Only 3 is currently supported). Implies inclusion @@ -527,6 +525,11 @@ FreeBSD_MAINTAINER= portmgr@FreeBSD.org # is set and NO_INSTALL_MANPAGES is not set, and # "no" otherwise. # +# Set the following to specify all .info files your port installs. +# +# INFO - A list of .info files (omitting the trailing ".info"); +# only one entry per document! +# # Default targets and their behaviors: # # fetch - Retrieves ${DISTFILES} (and ${PATCHFILES} if defined) @@ -1383,9 +1386,6 @@ BUILD_DEPENDS+= imake:${PORTSDIR}/devel/imake .if defined(USE_XPM) LIB_DEPENDS+= Xpm.4:${PORTSDIR}/graphics/xpm .endif -.if defined(USE_DGS) -LIB_DEPENDS+= dps.0:${PORTSDIR}/x11/dgs -.endif .if defined(USE_MESA) LIB_DEPENDS+= GL.14:${PORTSDIR}/graphics/Mesa3 .endif @@ -1396,7 +1396,7 @@ PKG_IGNORE_DEPENDS?= '^XFree86-3\.' BUILD_DEPENDS+= ${X11BASE}/lib/X11/config/date.def:${PORTSDIR}/devel/imake-4 RUN_DEPENDS+= mkhtmlindex:${PORTSDIR}/devel/imake-4 .endif -.if defined(USE_XPM) || defined(USE_DGS) +.if defined(USE_XPM) USE_XLIB= yes .endif .if defined(USE_MESA) @@ -2430,17 +2430,6 @@ IGNORE= "is not an interactive port" IGNORE= "may not be placed on a CDROM: ${NO_CDROM}" .elif (defined(RESTRICTED) && defined(NO_RESTRICTED)) IGNORE= "is restricted: ${RESTRICTED}" -.elif defined(NO_WRKDIR) -IGNORE= "defines NO_WRKDIR, which is obsoleted. If you are defining NO_WRKDIR and NO_EXTRACT, try changing it to NO_WRKSUBDIR=yes and EXTRACT_ONLY= \(the right side intentionally left empty\)" -.elif defined(NO_EXTRACT) -IGNORE= "defines NO_EXTRACT, which is obsoleted. Try changing it to EXTRACT_ONLY= \(the right side intentionally left empty\)" -.elif defined(NO_CONFIGURE) -IGNORE= "defines NO_CONFIGURE, which is obsoleted" -.elif defined(NO_PATCH) -IGNORE= "defines NO_PATCH, which is obsoleted" -.elif defined(BROKEN_ELF) && (${PORTOBJFORMAT} == "elf") && \ - !defined(PARALLEL_PACKAGE_BUILD) -IGNORE= "is broken for ELF: ${BROKEN_ELF}" .elif defined(BROKEN) .if defined(PARALLEL_PACKAGE_BUILD) # try building even if marked BROKEN @@ -3227,7 +3216,7 @@ _INSTALL_SEQ= install-message check-categories check-conflicts \ run-depends lib-depends pre-install pre-install-script \ generate-plist check-already-installed _INSTALL_SUSEQ= check-umask install-mtree pre-su-install \ - pre-su-install-script do-install post-install \ + pre-su-install-script do-install add-plist-info post-install \ post-install-script compress-man run-ldconfig fake-pkg \ security-check _PACKAGE_DEP= install @@ -4277,6 +4266,16 @@ generate-plist: ${TMPPLIST}: @cd ${.CURDIR} && ${MAKE} ${__softMAKEFLAGS} generate-plist +add-plist-info: +# Process GNU INFO files at package install/deinstall time +.for i in ${INFO} + @${ECHO_CMD} "@unexec install-info --delete %D/info/$i.info %D/info/dir" \ + >> ${TMPPLIST} + @${LS} ${PREFIX}/info/$i.info* | ${SED} -e s:${PREFIX}/::g >> ${TMPPLIST} + @${ECHO_CMD} "@exec install-info %D/info/$i.info %D/info/dir" \ + >> ${TMPPLIST} +.endfor + # Compress (or uncompress) and symlink manpages. .if !target(compress-man) compress-man: |