1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-21 00:25:50 +00:00

Use options helpers for PLIST_FILES and PLIST_DIRS that avoid including options.mk before

bsd.gnome-references.mk which would lead in PKGCATEGORY not being set and thus break PKGORIGIN
This commit is contained in:
Baptiste Daroussin 2014-07-06 13:43:10 +00:00
parent be4c0abfa0
commit 6bd66cd9c4
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=360901

View File

@ -12,13 +12,9 @@ MAKE_ARGS= DOC_MODULE=libxml2 EXAMPLES_DIR=${EXAMPLESDIR}
OPTIONS_DEFINE= EXAMPLES
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MEXAMPLES}
EXAMPLES= testHTML.c testSAX.c testXPath.c xmllint.c
PLIST_FILES= ${EXAMPLES:S|^|%%EXAMPLESDIR%%/|}
PLIST_DIRS= %%EXAMPLESDIR%%
.endif
EXAMPLES_PLIST_FILES= ${EXAMPLES:S|^|%%EXAMPLESDIR%%/|}
EXAMPLES_PLIST_DIRS= %%EXAMPLESDIR%%
do-install:
.for d in . doc doc/examples