aboutsummaryrefslogtreecommitdiffstats
path: root/Mk/bsd.port.mk
diff options
context:
space:
mode:
authorasami <asami@FreeBSD.org>2001-01-16 17:25:16 +0800
committerasami <asami@FreeBSD.org>2001-01-16 17:25:16 +0800
commitacfd6f01a795cb0f6ed594bb83446223beb3348f (patch)
treec1333ac833cd6005e2938d3e63d9ac2362a39ec3 /Mk/bsd.port.mk
parente582bc3490177d1844fbf9d1d447c51947ee367a (diff)
downloadfreebsd-ports-gnome-acfd6f01a795cb0f6ed594bb83446223beb3348f.tar.gz
freebsd-ports-gnome-acfd6f01a795cb0f6ed594bb83446223beb3348f.tar.zst
freebsd-ports-gnome-acfd6f01a795cb0f6ed594bb83446223beb3348f.zip
(1) Add PKGORIGIN support. Bump BSDPORTMKVERSION to reflect it.
Submitted by: sobomax (2) Add new variable NO_OPENMOTIF that will disable dependency to open-motif (when USE_MOTIF is defined, of course). Use this if you want to make sure your commercial Motif won't get wiped out. Submitted by: obrien (3) Add NOPORTDOCS support to PLIST_SUB. When NOPORTDOCS is defined, PORTDOCS="@comment " will be added to PLIST_SUB. Prodded by: steve
Diffstat (limited to 'Mk/bsd.port.mk')
-rw-r--r--Mk/bsd.port.mk22
1 files changed, 21 insertions, 1 deletions
diff --git a/Mk/bsd.port.mk b/Mk/bsd.port.mk
index f632b6ba1e70..9dafe6c72f5f 100644
--- a/Mk/bsd.port.mk
+++ b/Mk/bsd.port.mk
@@ -739,6 +739,12 @@ INSTALL_WRKSRC?=${WRKSRC}
PLIST_SUB+= OSREL=${OSREL} PREFIX=%D LOCALBASE=${LOCALBASE} X11BASE=${X11BASE}
+.if defined(NOPORTDOCS)
+PLIST_SUB+= PORTDOCS="@comment "
+.else
+PLIST_SUB+= PORTDOCS=""
+.endif
+
CONFIGURE_ENV+= PORTOBJFORMAT=${PORTOBJFORMAT}
SCRIPTS_ENV+= PORTOBJFORMAT=${PORTOBJFORMAT}
MAKE_ENV+= PORTOBJFORMAT=${PORTOBJFORMAT}
@@ -810,8 +816,10 @@ RUN_DEPENDS+= ${LINUXBASE}/etc/redhat-release:${PORTSDIR}/emulators/linux_base
.if defined(USE_MOTIF)
USE_XPM= yes
+.if !defined(NO_OPENMOTIF)
LIB_DEPENDS+= Xm.2:${PORTSDIR}/x11-toolkits/open-motif
.endif
+.endif
.if defined(USE_FREETYPE)
LIB_DEPENDS+= ttf.4:${PORTSDIR}/print/freetype
@@ -1046,6 +1054,15 @@ PKGMESSAGE?= ${PKGDIR}/pkg-message
TMPPLIST?= ${WRKDIR}/.PLIST.mktmp
+.if ${OSVERSION} >= 400000
+.for _CATEGORY in ${CATEGORIES}
+PKGCATEGORY?= ${_CATEGORY}
+.endfor
+_PORTDIRNAME!= ${BASENAME} ${.CURDIR}
+PORTDIRNAME?= ${_PORTDIRNAME}
+PKGORIGIN?= ${PKGCATEGORY}/${PORTDIRNAME}
+.endif
+
PKG_CMD?= /usr/sbin/pkg_create
PKG_DELETE?= /usr/sbin/pkg_delete
PKG_INFO?= /usr/sbin/pkg_info
@@ -1066,6 +1083,9 @@ PKG_ARGS+= -D ${PKGMESSAGE}
.if !defined(NO_MTREE)
PKG_ARGS+= -m ${MTREE_FILE}
.endif
+.if defined(PKGORIGIN)
+PKG_ARGS+= -o ${PKGORIGIN}
+.endif
.endif
.if defined(PKG_NOCOMPRESS)
PKG_SUFX?= .tar
@@ -1382,7 +1402,7 @@ LDCONFIG_RUNLIST!= ${ECHO} ${LDCONFIG_PLIST} | ${SED} -e "s!%D!${PREFIX}!"
.if ${OSVERSION} >= 300000
# You need an upgrade kit or make world newer than this
-BSDPORTMKVERSION= 20000201
+BSDPORTMKVERSION= 20001103
.if exists(/var/db/port.mkversion)
VERSIONFILE= /var/db/port.mkversion
.else