blob: d7afba40be0bd75953cb3e28e82536e740d67115 (
plain) (
blame)
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
|
# New ports collection makefile for: gcin
# Date created: Feb 18 2004
# Whom: Shen Chuan-Hsing
#
# $FreeBSD$
#
PORTNAME= gcin
PORTVERSION= 0.9.9
CATEGORIES= chinese
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
MAINTAINER= statue@freebsd.netlab.cse.yzu.edu.tw
COMMENT= A traditional chinese input utility in X
USE_X_PREFIX= YES
USE_BZIP2= YES
GNU_CONFIGURE= YES
USE_GNOME= gtk20
USE_GMAKE= YES
PLIST_SUB+= BOSHIAMY="@comment "
MAN1= gcin.1 gcin2tab.1
.include <bsd.port.pre.mk>
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} ''
.if ${OSVERSION} <= 500034
USE_GCC= 3.4
.endif
.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 \
${FILESDIR}/extra-patch-data-noseeing.cin
PLIST_SUB+= BOSHIAMY=""
.endif
post-install:
.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
@${CAT} ${PKGMESSAGE}
@${ECHO} To display this message again, type \`pkg_info -D ${PKGNAME}\'
.include <bsd.port.post.mk>
|