(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
This commit is contained in:
parent
0c29cb8687
commit
cb60d32d8c
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=37242
1 changed files with 21 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue