mirror of
https://git.FreeBSD.org/ports.git
synced 2024-10-18 19:49:40 +00:00
x11-toolkits/qwt5 and qwt6:
- Convert to new options helpers - Remove now needless manual stripping
This commit is contained in:
parent
e2554c1853
commit
3503010e03
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=395229
@ -18,17 +18,12 @@ PORTDOCS= *
|
||||
PLIST_SUB= SHLIB_VER=${PORTVERSION} \
|
||||
SHLIB_SHVER=${PORTVERSION:R}
|
||||
|
||||
STRIP_FILES= lib/libqwt.so.${PORTVERSION}
|
||||
|
||||
OPTIONS_DEFINE= DOCS
|
||||
|
||||
.include <bsd.port.options.mk>
|
||||
|
||||
post-install:
|
||||
${INSTALL_MAN} ${WRKSRC}/doc/man/man3/Qwt* ${STAGEDIR}${PREFIX}/man/man3
|
||||
${STRIP_CMD} ${STRIP_FILES:S,^,${STAGEDIR}${PREFIX}/,}
|
||||
.if ${PORT_OPTIONS:MDOCS}
|
||||
|
||||
post-install-DOCS-on:
|
||||
(cd ${WRKSRC}/doc/html/ && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR})
|
||||
.endif
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
@ -21,23 +21,15 @@ PLIST_SUB= INCLUDEDIR=include/qwt6 \
|
||||
SHLIB_SHVER=${PORTVERSION:R} \
|
||||
QT_MKSPECDIR=share/qt4/mkspecs
|
||||
|
||||
STRIP_FILES= lib/libqwt6.so.${PORTVERSION} \
|
||||
lib/libqwtmathml.so.${PORTVERSION}
|
||||
|
||||
OPTIONS_DEFINE= DOCS
|
||||
|
||||
.include <bsd.port.options.mk>
|
||||
|
||||
post-patch:
|
||||
cd ${WRKSRC} && \
|
||||
${REINPLACE_CMD} -e 's,qwtAddLibrary(qwt),qwtAddLibrary(qwt6),g' \
|
||||
qwt.prf textengines/textengines.pri && \
|
||||
${REINPLACE_CMD} -e '/INSTALLS.*doc/d' doc/doc.pro
|
||||
|
||||
post-install:
|
||||
${STRIP_CMD} ${STRIP_FILES:S,^,${STAGEDIR}${PREFIX}/,}
|
||||
.if ${PORT_OPTIONS:MDOCS}
|
||||
post-install-DOCS-on:
|
||||
(cd ${WRKSRC}/doc/html/ && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR})
|
||||
.endif
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
Loading…
Reference in New Issue
Block a user