- Simplify installation

- Switch to options helpers
This commit is contained in:
Dmitry Marakasov 2017-11-10 09:04:40 +00:00
parent 4044371c4d
commit e3ab1b4d3b
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=453890

View file

@ -23,21 +23,16 @@ NO_BUILD= yes
USES= tar:bzip2
INSTDIR= ${PREFIX}/share/xsl/${PORTNAME}
OPTIONS_DEFINE= DOCS
INSTDIR= share/xsl/${PORTNAME}
PINSTDIR= ${PREFIX}/${INSTDIR}
COPYDIRS= browser graphics schema xsl
do-install:
@${MKDIR} ${STAGEDIR}${PINSTDIR}
.for i in VERSION catalog
(cd ${WRKSRC} && ${INSTALL_DATA} ${i} ${STAGEDIR}${PINSTDIR})
.endfor
.for i in ${COPYDIRS}
@(cd ${WRKSRC} && ${COPYTREE_SHARE} ${i} ${STAGEDIR}${PINSTDIR})
.endfor
@${MKDIR} ${STAGEDIR}${INSTDIR}
${INSTALL_DATA} ${WRKSRC}/VERSION ${WRKSRC}/catalog ${STAGEDIR}${INSTDIR}
@(cd ${WRKSRC} && ${COPYTREE_SHARE} "browser graphics schema xsl" ${STAGEDIR}${INSTDIR})
do-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
@(cd ${WRKSRC}/doc && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR})