mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 17:59:20 -04:00
- Use USES=libtool
- Strip shared library in post-install: phase - Bump PORTREVISION for package change
This commit is contained in:
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
|
@ -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>
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue