aboutsummaryrefslogtreecommitdiffstats
path: root/archivers/librtfcomp/Makefile
blob: 82bb901f34e015956d8ba89bea3784c3f8db91e1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# Created by: Alexander Logvinov <ports@logvinov.com>
# $FreeBSD$

PORTNAME=   librtfcomp
PORTVERSION=    1.3
PORTREVISION=   3
CATEGORIES= archivers
MASTER_SITES=   SF/synce/SynCE/${PORTNAME}

MAINTAINER= sunpoet@FreeBSD.org
COMMENT?=   Library for handling compressed RTF documents

LICENSE=    LGPL21

GNU_CONFIGURE=  yes
USE_LDCONFIG=   yes
USES=       libtool

SLAVEDIRS=  archivers/py-librtfcomp

.if defined(SLAVEPORT) && ${SLAVEPORT} == "py"
CATEGORIES+=    python
CONFIGURE_ARGS+=--enable-python-bindings
.else
CONFIGURE_ARGS+=--disable-python-bindings
.endif

post-patch:
    @${REINPLACE_CMD} -e '/VISIBILITY=/ s| -fvisibility=hidden||' ${WRKSRC}/configure
    @${REINPLACE_CMD} -e 's|[^ ]*/src/librtfcomp\.la||' ${WRKSRC}/python/Makefile.in

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>