- Use USES=libtool

- Strip shared library in post-install: phase
- Bump PORTREVISION for package change
This commit is contained in:
Sunpoet Po-Chuan Hsieh 2014-03-18 16:16:49 +00:00
parent c1483697ef
commit d0e4e95b5f
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=348576
2 changed files with 7 additions and 6 deletions

View file

@ -3,6 +3,7 @@
PORTNAME= librtfcomp
PORTVERSION= 1.3
PORTREVISION= 1
CATEGORIES= archivers
MASTER_SITES= SF/synce/SynCE/${PORTNAME}
@ -12,8 +13,8 @@ COMMENT?= Library for handling compressed RTF documents
LICENSE= LGPL21
GNU_CONFIGURE= yes
USE_AUTOTOOLS= libtool
USE_LDCONFIG= yes
USES= libtool
SLAVEDIRS= archivers/py-librtfcomp
@ -28,16 +29,15 @@ post-patch:
@${REINPLACE_CMD} -e '/VISIBILITY=/ s| -fvisibility=hidden||' ${WRKSRC}/configure
@${REINPLACE_CMD} -e 's|$$(top_builddir)/src/librtfcomp.la|${LOCALBASE}/lib/librtfcomp.la|g' ${WRKSRC}/python/Makefile.in
post-build:
.if !defined(SLAVEPORT)
@${STRIP_CMD} ${WRKSRC}/src/.libs/librtfcomp.so.0
.endif
post-install:
.if !defined(SLAVEPORT)
${INSTALL_SCRIPT} ${WRKSRC}/tests/fromrtf ${STAGEDIR}${PREFIX}/bin/fromrtf
${INSTALL_SCRIPT} ${WRKSRC}/tests/test ${STAGEDIR}${PREFIX}/bin/testrtf
${INSTALL_SCRIPT} ${WRKSRC}/tests/tortf ${STAGEDIR}${PREFIX}/bin/tortf
${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/librtfcomp.so.0.0.0
.endif
.if defined(SLAVEPORT) && ${SLAVEPORT} == "py"
${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/pyrtfcomp.so
.endif
.include <bsd.port.mk>

View file

@ -7,4 +7,5 @@ lib/librtfcomp.a
lib/librtfcomp.la
lib/librtfcomp.so
lib/librtfcomp.so.0
lib/librtfcomp.so.0.0.0
@dirrm include/rtfcomp