2004-08-01 19:41:50 +02:00
|
|
|
# New ports collection makefile for: gcin
|
|
|
|
# Date created: Feb 18 2004
|
|
|
|
# Whom: Shen Chuan-Hsing
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= gcin
|
2005-06-14 03:40:06 +02:00
|
|
|
PORTVERSION= 0.9.7
|
2004-08-01 19:41:50 +02:00
|
|
|
CATEGORIES= chinese
|
2005-05-19 09:59:51 +02:00
|
|
|
MASTER_SITES= http://www.csie.nctu.edu.tw/~cp76/gcin/download/ \
|
|
|
|
http://edt1023.sayya.org/misc/
|
|
|
|
.if defined(WITH_BOSHIAMY)
|
|
|
|
DISTFILES= ${GCINFILE} ${BOSHIAMYFILE}
|
|
|
|
EXTRACT_ONLY= ${GCINFILE}
|
|
|
|
.endif
|
2004-08-01 19:41:50 +02:00
|
|
|
|
2005-01-08 16:50:05 +01:00
|
|
|
MAINTAINER= statue@freebsd.netlab.cse.yzu.edu.tw
|
2005-05-05 18:40:20 +02:00
|
|
|
COMMENT= A traditional chinese input utility in X
|
2004-08-01 19:41:50 +02:00
|
|
|
|
2005-03-01 20:02:27 +01:00
|
|
|
USE_X_PREFIX= YES
|
2004-08-01 19:41:50 +02:00
|
|
|
USE_BZIP2= YES
|
2004-11-14 16:58:39 +01:00
|
|
|
GNU_CONFIGURE= YES
|
2004-08-01 19:41:50 +02:00
|
|
|
USE_GNOME= gtk20
|
|
|
|
USE_GMAKE= YES
|
2005-05-19 09:59:51 +02:00
|
|
|
PLIST_SUB+= BOSHIAMY="@comment "
|
2004-08-01 19:41:50 +02:00
|
|
|
|
2005-06-14 03:40:06 +02:00
|
|
|
MAN1= gcin.1 gcin2tab.1
|
|
|
|
|
2004-08-01 19:41:50 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2005-05-19 09:59:51 +02:00
|
|
|
pre-everything::
|
|
|
|
@${ECHO_MSG} ''
|
|
|
|
@${ECHO_MSG} 'gcin has the following tunable option:'
|
|
|
|
@${ECHO_MSG} ' WITH_BOSHIAMY - enable Boshiamy support'
|
|
|
|
@${ECHO_MSG} ''
|
|
|
|
@${ECHO_MSG} 'Example: "make WITH_BOSHIAMY=yes install clean" '
|
|
|
|
@${ECHO_MSG} ''
|
|
|
|
|
2004-11-14 16:58:39 +01:00
|
|
|
.if ${OSVERSION} <= 500034
|
2004-09-30 07:32:00 +02:00
|
|
|
USE_GCC= 3.4
|
2004-08-01 19:41:50 +02:00
|
|
|
.endif
|
|
|
|
|
2005-05-19 09:59:51 +02:00
|
|
|
.if defined(WITH_BOSHIAMY)
|
|
|
|
GCINFILE= ${PORTNAME}-${PORTVERSION}${EXTRACT_SUFX}
|
|
|
|
BOSHIAMYFILE= noseeing-${BOSHIAMYVER}.tar.gz
|
|
|
|
BOSHIAMYVER= 3
|
|
|
|
post-extract:
|
|
|
|
@cd ${WRKSRC}/data/ \
|
|
|
|
&& ${TAR} -zxf ${DISTDIR}/${BOSHIAMYFILE}
|
|
|
|
post-patch:
|
|
|
|
EXTRA_PATCHES+= ${FILESDIR}/extra-patch-data-Makefile
|
|
|
|
PLIST_SUB+= BOSHIAMY=""
|
|
|
|
.endif
|
|
|
|
|
2005-05-05 15:52:08 +02:00
|
|
|
post-install:
|
2005-05-12 08:51:20 +02:00
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
@${MKDIR} ${DOCSDIR}
|
|
|
|
.for file in Changelog README
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
|
|
|
|
.endfor
|
|
|
|
.endif
|
|
|
|
@gtk-query-immodules-2.0 > ${PREFIX}/etc/gtk-2.0/gtk.immodules
|
2005-05-05 15:52:08 +02:00
|
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
@${ECHO} To display this message again, type \`pkg_info -D ${PKGNAME}\'
|
|
|
|
|
2004-08-01 19:41:50 +02:00
|
|
|
.include <bsd.port.post.mk>
|