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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
|
# New ports collection makefile for: tokyocabinet
# Date created: 2007-12-22
# Whom: Gea-Suan Lin <gslin@gslin.org>
#
# $FreeBSD$
#
PORTNAME= tokyocabinet
PORTVERSION= 1.1.10
CATEGORIES= databases
MASTER_SITES= SF
MAINTAINER= gslin@gslin.org
COMMENT= A modern implementation of DBM
CONFIGURE_ARGS= --enable-off64
GNU_CONFIGURE= yes
USE_GMAKE= yes
USE_LDCONFIG= yes
DOCSDIR?= ${PREFIX}/share/doc/${PORTNAME}
EXAMPLESDIR?= ${PREFIX}/share/examples/${PORTNAME}
MAN1= tcamgr.1 tcatest.1 tcbmgr.1 tcbmttest.1 tcbtest.1 \
tchmgr.1 tchmttest.1 tchtest.1 tcucodec.1 tcumttest.1 \
tcutest.1
MAN3= tcadb.3 tcbdb.3 tchdb.3 tcutil.3 tokyocabinet.3
DOCS= COPYING ChangeLog README THANKS
BINS= tcamgr tcatest tcbmgr tcbmttest tcbtest tchmgr tchmttest \
tchtest tcucodec tcumttest tcutest
LIBS= libtokyocabinet.a libtokyocabinet.so libtokyocabinet.so.1 \
libtokyocabinet.so.1.29.0
INCLUDES= tcbdb.h tchdb.h tcutil.h
OPTIONS= DEBUG "Debugging support" off \
DEVEL "Development build" off \
PROFILE "Profiling build" off \
OFF64 "Use to compile on 64-bit system" off \
FASTEST "Fastest run" off \
SWAB "Swapping byte-orders build" off \
UYIELD "Detecting race conditions" off \
ZLIB "Disable ZLIB compression" off \
PTHREAD "Disable POSIX thread support" off \
SHARED "Avoid to build shared libraries" off
.include <bsd.port.pre.mk>
.if defined(WITH_DEBUG)
CONFIGURE_ARGS+= --enable-debug
.endif
.if defined(WITH_DEVEL)
CONFIGURE_ARGS+= --enable-devel
.endif
.if defined(WITH_PROFILE)
CONFIGURE_ARGS+= --enable-profile
.endif
.if defined(WITH_OFF64)
CONFIGURE_ARGS+= --enable-off64
.endif
.if defined(WITH_FASTEST)
CONFIGURE_ARGS+= --enable-fastest
.endif
.if defined(WITH_SWAB)
CONFIGURE_ARGS+= --enable-swab
.endif
.if defined(WITH_UYIELD)
CONFIGURE_ARGS+= --enable-uyield
.endif
.if defined(WITH_ZLIB)
CONFIGURE_ARGS+= --disable-zlib
.endif
.if defined(WITH_PTHREAD)
CONFIGURE_ARGS+= --disable-pthread
.endif
.if defined(WITH_SHARED)
CONFIGURE_ARGS+= --disable-shared
.endif
# Because gnomehack use "(libdir)" and it doesn't work, we need to patch
# it manually.
post-patch:
${REINPLACE_CMD} -e 's|@libdir@/pkgconfig|@prefix@/libdata/pkgconfig|' \
${WRKSRC}/Makefile.in
do-install:
@${INSTALL_PROGRAM} ${BINS:S,^,${WRKSRC}/,} ${PREFIX}/bin/
@${INSTALL_MAN} ${MAN1:S,^,${WRKSRC}/man/,} ${MAN1PREFIX}/man/man1
@${INSTALL_MAN} ${MAN3:S,^,${WRKSRC}/man/,} ${MAN3PREFIX}/man/man3
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
@${INSTALL_DATA} ${DOCS:S,^,${WRKSRC}/,} ${DOCSDIR}/
@${MKDIR} ${EXAMPLESDIR}
@(cd ${WRKSRC} && ${COPYTREE_SHARE} doc ${EXAMPLESDIR}/)
.endif
.for i in ${LIBS}
@${CP} ${WRKSRC}/${i} ${PREFIX}/lib/
.endfor
.for j in ${INCLUDES}
@${CP} ${WRKSRC}/${j} ${PREFIX}/include/
.endfor
@${CP} ${WRKSRC}/tokyocabinet.pc ${PREFIX}/libdata/pkgconfig/
.include <bsd.port.post.mk>
|