summaryrefslogtreecommitdiff
path: root/Mk/bsd.port.mk
diff options
context:
space:
mode:
authorKris Kennaway <kris@FreeBSD.org>2003-08-04 01:17:39 +0000
committerKris Kennaway <kris@FreeBSD.org>2003-08-04 01:17:39 +0000
commit943ac185d572dc4899569fb5837c221accb7ec5a (patch)
tree5e865b803fac8db2e01912041585d0ac299b4ee6 /Mk/bsd.port.mk
parentadd WWW and remove MANPREFIX as it was already set by bsd.port.mk (diff)
* 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]
Notes
Notes: svn path=/head/; revision=86250
Diffstat (limited to 'Mk/bsd.port.mk')
-rw-r--r--Mk/bsd.port.mk43
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: