Lines 6-43
Link Here
|
6 |
# |
6 |
# |
7 |
|
7 |
|
8 |
PORTNAME= libtabe |
8 |
PORTNAME= libtabe |
9 |
PORTVERSION= 0.2.2 |
9 |
PORTVERSION= 0.2.5 |
10 |
CATEGORIES= chinese |
10 |
CATEGORIES= chinese |
11 |
MASTER_SITES= ftp://xcin.linux.org.tw/pub/xcin/libtabe/devel/ |
11 |
MASTER_SITES= ftp://xcin.linux.org.tw/pub/xcin/libtabe/devel/ |
12 |
|
12 |
|
13 |
MAINTAINER= keith@FreeBSD.org |
13 |
MAINTAINER= kcwu@ck.tp.edu.tw |
14 |
|
14 |
|
|
|
15 |
LIB_DEPENDS= db3.2:${PORTSDIR}/databases/db3 |
16 |
.if defined(USE_DB2) |
15 |
LIB_DEPENDS= db2.0:${PORTSDIR}/databases/db |
17 |
LIB_DEPENDS= db2.0:${PORTSDIR}/databases/db |
|
|
18 |
.endif |
16 |
|
19 |
|
17 |
WRKSRC= ${WRKDIR}/libtabe |
20 |
WRKSRC= ${WRKDIR}/libtabe |
18 |
USE_XLIB= yes |
|
|
19 |
INSTALLS_SHLIB= yes |
21 |
INSTALLS_SHLIB= yes |
20 |
HAS_CONFIGURE= yes |
22 |
HAS_CONFIGURE= yes |
21 |
USE_GMAKE= yes |
23 |
USE_GMAKE= yes |
22 |
CONFIGURE_ARGS= --prefix=${PREFIX} \ |
24 |
CONFIGURE_ARGS= --prefix=${PREFIX} \ |
23 |
--includedir=${PREFIX}/include/tabe \ |
25 |
--includedir=${PREFIX}/include/tabe \ |
24 |
--with-dbinc=${PREFIX}/include/db2 \ |
26 |
--with-db-lib=${LOCALBASE}/lib \ |
25 |
--with-dblib=${PREFIX}/lib \ |
27 |
--with-db-bin=${LOCALBASE}/bin \ |
26 |
--enable-shared |
28 |
--enable-shared |
27 |
|
29 |
|
|
|
30 |
.if !defined(USE_DB2) |
31 |
CONFIGURE_ARGS+= --with-db-inc=${LOCALBASE}/include/db3 |
32 |
.else |
33 |
CONFIGURE_ARGS+= --with-db-inc=${LOCALBASE}/include/db2 |
34 |
.endif |
35 |
|
28 |
.include <bsd.port.pre.mk> |
36 |
.include <bsd.port.pre.mk> |
29 |
|
37 |
|
|
|
38 |
pre-fetch: |
39 |
.if !defined(USE_DB2) |
40 |
@${ECHO} -- |
41 |
@${ECHO} "Type \"make -DUSE_DB2\" if you want use DB2." |
42 |
@${ECHO} "Otherwise, xcin2.5 will use DB3." |
43 |
@${ECHO} -- |
44 |
.endif |
45 |
|
30 |
post-install: |
46 |
post-install: |
31 |
.if !defined(NOPORTDOCS) |
47 |
.if !defined(NOPORTDOCS) |
32 |
${MKDIR} ${PREFIX}/share/doc/tabe |
48 |
${MKDIR} ${PREFIX}/share/doc/tabe |
33 |
${INSTALL_DATA} ${WRKSRC}/src/tsi-src/README ${PREFIX}/share/doc/tabe/README.tsi |
49 |
${INSTALL_DATA} ${WRKSRC}/tsi-src/README ${PREFIX}/share/doc/tabe/README.tsi |
34 |
${INSTALL_DATA} ${WRKSRC}/src/supports/bims/README ${PREFIX}/share/doc/tabe/README.bims |
50 |
${INSTALL_DATA} ${WRKSRC}/src/supports/bims/README ${PREFIX}/share/doc/tabe/README.bims |
35 |
.for DOC in BoPoMoFo.shtml Changes Changes.pre-0.1 TODO ZuYinCode.txt \ |
51 |
.for DOC in BoPoMoFo.shtml Changes Changes.pre-0.1 TODO ZuYinCode.txt \ |
36 |
et26.txt libtabe.sgml |
52 |
et26.txt libtabe.sgml |
37 |
${INSTALL_DATA} ${WRKSRC}/doc/${DOC} ${PREFIX}/share/doc/tabe |
53 |
${INSTALL_DATA} ${WRKSRC}/doc/${DOC} ${PREFIX}/share/doc/tabe |
38 |
.endfor |
54 |
.endfor |
39 |
.endif |
55 |
.endif |
40 |
${TOUCH} ${PREFIX}/share/tabe/libtabe-0.2.2 |
56 |
${MKDIR} ${PREFIX}/share/tabe |
41 |
${RM} -f ${PREFIX}/lib/libtabe.la ${PREFIX}/lib/libbims.la |
57 |
${TOUCH} ${PREFIX}/share/tabe/libtabe-0.2.5 |
42 |
|
58 |
|
43 |
.include <bsd.port.post.mk> |
59 |
.include <bsd.port.post.mk> |