aboutsummaryrefslogtreecommitdiffstats
path: root/databases/kyotocabinet/Makefile
blob: 49d7d0d1bb8b5316b81349d97468526a3c46b3a9 (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
# Created by: Akinori MUSHA aka knu <knu@idaemons.org>
# $FreeBSD$

PORTNAME=   kyotocabinet
PORTVERSION=    1.2.76
PORTREVISION=   1
CATEGORIES= databases
MASTER_SITES=   http://fallabs.com/${PORTNAME}/pkg/ \
        LOCAL/sunpoet

MAINTAINER= sunpoet@FreeBSD.org
COMMENT=    Straightforward implementation of DBM

LICENSE=    GPLv3

BROKEN_mips=        fails to link: hidden symbol '__sync_lock_test_and_set_8' in /usr/lib/libgcc.a(stdatomic.o) is referenced by DSO
BROKEN_mips64=      fails to link: hidden symbol '__sync_lock_test_and_set_8' in /usr/lib/libgcc.a(stdatomic.o) is referenced by DSO
BROKEN_powerpc=     fails to link

OPTIONS_DEFINE= DOCS

CPPFLAGS+=  -fPIC
GNU_CONFIGURE=  yes
INSTALL_TARGET= install-strip
MAKE_ARGS=  PCDIR=${PREFIX}/libdata/pkgconfig
REINPLACE_ARGS= -i ''
TEST_TARGET=    check
USES=       gmake
USE_LDCONFIG=   yes

post-patch:
    @${REINPLACE_CMD} -e 's|-lstdc++ ||g' ${WRKSRC}/configure ${WRKSRC}/doc/spex.html ${WRKSRC}/example/Makefile ${WRKSRC}/lab/kcdict/Makefile

post-install:
    ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libkyotocabinet.so.16.13.0
    ${FIND} ${STAGEDIR}${DOCSDIR}/ -type d -exec ${CHMOD} ${BINMODE} {} \;
    ${FIND} ${STAGEDIR}${DOCSDIR}/ -type f -exec ${CHMOD} ${DOCMODE} {} \;

.include <bsd.port.mk>