1999-08-31 20:27:19 +02:00
|
|
|
# New ports collection makefile for: libtabe
|
1999-11-06 10:25:46 +01:00
|
|
|
# Date created: 2 Nov 1999
|
2000-11-06 19:15:21 +01:00
|
|
|
# Whom: Jing-Tang Keith Jang <keith@FreeBSD.org>
|
1999-08-31 20:27:19 +02:00
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
2000-04-13 10:28:23 +02:00
|
|
|
PORTNAME= libtabe
|
2002-04-17 13:51:53 +02:00
|
|
|
PORTVERSION= 0.2.5
|
2002-08-22 21:13:46 +02:00
|
|
|
PORTREVISION= 1
|
1999-08-31 20:27:19 +02:00
|
|
|
CATEGORIES= chinese
|
2001-06-22 11:04:56 +02:00
|
|
|
MASTER_SITES= ftp://xcin.linux.org.tw/pub/xcin/libtabe/devel/
|
1999-08-31 20:27:19 +02:00
|
|
|
|
2002-04-17 13:51:53 +02:00
|
|
|
MAINTAINER= kcwu@ck.tp.edu.tw
|
1999-08-31 20:27:19 +02:00
|
|
|
|
2002-05-05 06:23:04 +02:00
|
|
|
.if !defined(USE_DB2)
|
2002-08-22 21:13:46 +02:00
|
|
|
LIB_DEPENDS= db3.3:${PORTSDIR}/databases/db3
|
2002-05-05 06:23:04 +02:00
|
|
|
.else
|
2000-07-16 10:49:48 +02:00
|
|
|
LIB_DEPENDS= db2.0:${PORTSDIR}/databases/db
|
2002-04-17 13:51:53 +02:00
|
|
|
.endif
|
1999-08-31 20:27:19 +02:00
|
|
|
|
|
|
|
WRKSRC= ${WRKDIR}/libtabe
|
2001-06-01 22:04:25 +02:00
|
|
|
INSTALLS_SHLIB= yes
|
1999-08-31 20:27:19 +02:00
|
|
|
HAS_CONFIGURE= yes
|
1999-09-04 18:34:32 +02:00
|
|
|
USE_GMAKE= yes
|
2002-05-05 06:23:04 +02:00
|
|
|
USE_XLIB= yes
|
1999-08-31 20:27:19 +02:00
|
|
|
CONFIGURE_ARGS= --prefix=${PREFIX} \
|
|
|
|
--includedir=${PREFIX}/include/tabe \
|
2002-04-17 13:51:53 +02:00
|
|
|
--with-db-lib=${LOCALBASE}/lib \
|
|
|
|
--with-db-bin=${LOCALBASE}/bin \
|
1999-09-04 18:34:32 +02:00
|
|
|
--enable-shared
|
|
|
|
|
2002-04-17 13:51:53 +02:00
|
|
|
.if !defined(USE_DB2)
|
|
|
|
CONFIGURE_ARGS+= --with-db-inc=${LOCALBASE}/include/db3
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --with-db-inc=${LOCALBASE}/include/db2
|
|
|
|
.endif
|
|
|
|
|
1999-09-04 18:34:32 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
1999-08-31 20:27:19 +02:00
|
|
|
|
2002-04-17 13:51:53 +02:00
|
|
|
pre-fetch:
|
|
|
|
.if !defined(USE_DB2)
|
|
|
|
@${ECHO} --
|
|
|
|
@${ECHO} "Type \"make -DUSE_DB2\" if you want use DB2."
|
|
|
|
@${ECHO} "Otherwise, xcin2.5 will use DB3."
|
|
|
|
@${ECHO} --
|
|
|
|
.endif
|
|
|
|
|
1999-08-31 20:27:19 +02:00
|
|
|
post-install:
|
|
|
|
.if !defined(NOPORTDOCS)
|
2000-03-06 04:18:33 +01:00
|
|
|
${MKDIR} ${PREFIX}/share/doc/tabe
|
2002-04-17 13:51:53 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/tsi-src/README ${PREFIX}/share/doc/tabe/README.tsi
|
2000-04-24 08:26:40 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/src/supports/bims/README ${PREFIX}/share/doc/tabe/README.bims
|
2000-02-27 12:50:39 +01:00
|
|
|
.for DOC in BoPoMoFo.shtml Changes Changes.pre-0.1 TODO ZuYinCode.txt \
|
|
|
|
et26.txt libtabe.sgml
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/${DOC} ${PREFIX}/share/doc/tabe
|
|
|
|
.endfor
|
1999-08-31 20:27:19 +02:00
|
|
|
.endif
|
2002-04-17 13:51:53 +02:00
|
|
|
${MKDIR} ${PREFIX}/share/tabe
|
|
|
|
${TOUCH} ${PREFIX}/share/tabe/libtabe-0.2.5
|
1999-08-31 20:27:19 +02:00
|
|
|
|
1999-09-04 18:34:32 +02:00
|
|
|
.include <bsd.port.post.mk>
|