Lines 19-64
Link Here
|
19 |
COMMENT= Chinese input method server under X |
19 |
COMMENT= Chinese input method server under X |
20 |
|
20 |
|
21 |
LIB_DEPENDS= tabe.2:${PORTSDIR}/chinese/libtabe |
21 |
LIB_DEPENDS= tabe.2:${PORTSDIR}/chinese/libtabe |
22 |
|
22 |
RUN_DEPENDS= ${X11BASE}/lib/X11/fonts/local/kc15f.pcf.gz:${PORTSDIR}/chinese/kcfonts |
23 |
.if !defined(USE_DB2) |
|
|
24 |
LIB_DEPENDS+= db3.3:${PORTSDIR}/databases/db3 |
25 |
.else |
26 |
LIB_DEPENDS+= db2.0:${PORTSDIR}/databases/db2 |
27 |
.endif |
28 |
RUN_DEPENDS= ${X11BASE}/lib/X11/fonts/local/kc15f.pcf.gz:${PORTSDIR}/chinese/kcfonts \ |
29 |
${LOCALBASE}/share/tabe/libtabe-0.2.5:${PORTSDIR}/chinese/libtabe |
30 |
|
23 |
|
31 |
WRKSRC= ${WRKDIR}/xcin |
24 |
WRKSRC= ${WRKDIR}/xcin |
|
|
25 |
USE_BDB= yes |
26 |
OBSOLETE_BDB_VAR= USE_DB2 |
32 |
USE_GETTEXT= yes |
27 |
USE_GETTEXT= yes |
33 |
USE_ICONV= yes |
28 |
USE_ICONV= yes |
34 |
USE_X_PREFIX= yes |
29 |
USE_X_PREFIX= yes |
35 |
GNU_CONFIGURE= yes |
30 |
GNU_CONFIGURE= yes |
36 |
INSTALLS_SHLIB= yes |
31 |
INSTALLS_SHLIB= yes |
37 |
USE_REINPLACE= yes |
|
|
38 |
CONFIGURE_ARGS= --prefix=${PREFIX} \ |
32 |
CONFIGURE_ARGS= --prefix=${PREFIX} \ |
39 |
--x-libraries=${X11BASE}/lib \ |
33 |
--x-libraries=${X11BASE}/lib \ |
40 |
--with-xcin-dir=${PREFIX}/lib/X11/xcin25 \ |
34 |
--with-xcin-dir=${PREFIX}/lib/X11/xcin25 \ |
41 |
--with-db-lib=${LOCALBASE}/lib \ |
35 |
--with-db-name=${BDB_LIB_NAME} \ |
|
|
36 |
--with-db-inc=${BDB_INCLUDE_DIR} \ |
37 |
--with-db-lib=${BDB_LIB_DIR} \ |
42 |
--with-tabe-inc=${LOCALBASE}/include/tabe \ |
38 |
--with-tabe-inc=${LOCALBASE}/include/tabe \ |
43 |
--with-tabe-lib=${LOCALBASE}/lib \ |
39 |
--with-tabe-lib=${LOCALBASE}/lib \ |
44 |
--with-intl-inc=${LOCALBASE}/include \ |
40 |
--with-intl-inc=${LOCALBASE}/include \ |
45 |
--with-intl-lib=${LOCALBASE}/lib \ |
41 |
--with-intl-lib=${LOCALBASE}/lib \ |
46 |
--with-iconv-inc=${LOCALBASE}/include \ |
42 |
--with-iconv-inc=${LOCALBASE}/include \ |
47 |
--with-iconv-lib=${LOCALBASE}/lib |
43 |
--with-iconv-lib=${LOCALBASE}/lib |
48 |
.if !defined(USE_DB2) |
|
|
49 |
CONFIGURE_ARGS+= --with-db-inc=${LOCALBASE}/include/db3 |
50 |
.else |
51 |
CONFIGURE_ARGS+= --with-db-inc=${LOCALBASE}/include/db2 |
52 |
.endif |
53 |
|
44 |
|
54 |
MAN1= xcin.1 |
45 |
MAN1= xcin.1 |
55 |
|
46 |
|
56 |
pre-fetch: |
47 |
.include <bsd.port.pre.mk> |
57 |
.if !defined(USE_DB2) |
48 |
|
58 |
@${ECHO} -- |
49 |
pre-everything:: |
59 |
@${ECHO} "Type \"make -DUSE_DB2\" if you want use DB2." |
50 |
.if defined(WITH_BDB_VER) |
60 |
@${ECHO} "Otherwise, xcin2.5 will use DB3." |
51 |
@${ECHO} "" |
61 |
@${ECHO} -- |
52 |
@${ECHO} "WARNING:" |
|
|
53 |
@${ECHO} " You have defined WITH_BDB_VER. Make sure you use the same" |
54 |
@${ECHO} " db version that libtabe uses. Otherwise, this port may" |
55 |
@${ECHO} " not work correctly." |
56 |
@${ECHO} "" |
62 |
.endif |
57 |
.endif |
63 |
|
58 |
|
64 |
post-extract: |
59 |
post-extract: |
Lines 102-105
Link Here
|
102 |
.endfor |
97 |
.endfor |
103 |
.endif |
98 |
.endif |
104 |
|
99 |
|
105 |
.include <bsd.port.mk> |
100 |
.include <bsd.port.post.mk> |