aboutsummaryrefslogtreecommitdiff
path: root/archivers/librtfcomp
diff options
context:
space:
mode:
authorSunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>2014-03-18 16:16:49 +0000
committerSunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>2014-03-18 16:16:49 +0000
commitd0e4e95b5ff07b665944602f466bbe2f9bb7cfa7 (patch)
tree9bc2eb94c0cd8a5855ecdde515a1c185f95f7ff6 /archivers/librtfcomp
parentc1483697ef07c3634007bd848dda1864222a4fcb (diff)
downloadports-d0e4e95b5ff07b665944602f466bbe2f9bb7cfa7.tar.gz
ports-d0e4e95b5ff07b665944602f466bbe2f9bb7cfa7.zip
- Use USES=libtool
- Strip shared library in post-install: phase - Bump PORTREVISION for package change
Notes
Notes: svn path=/head/; revision=348576
Diffstat (limited to 'archivers/librtfcomp')
-rw-r--r--archivers/librtfcomp/Makefile12
-rw-r--r--archivers/librtfcomp/pkg-plist1
2 files changed, 7 insertions, 6 deletions
diff --git a/archivers/librtfcomp/Makefile b/archivers/librtfcomp/Makefile
index 87361d732a14..9c07b2cb4117 100644
--- a/archivers/librtfcomp/Makefile
+++ b/archivers/librtfcomp/Makefile
@@ -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>
diff --git a/archivers/librtfcomp/pkg-plist b/archivers/librtfcomp/pkg-plist
index d90f6da7e0eb..356878234646 100644
--- a/archivers/librtfcomp/pkg-plist
+++ b/archivers/librtfcomp/pkg-plist
@@ -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