Lines 2-17
Link Here
|
2 |
# Date created: Feb 18 2004 |
2 |
# Date created: Feb 18 2004 |
3 |
# Whom: Shen Chuan-Hsing |
3 |
# Whom: Shen Chuan-Hsing |
4 |
# |
4 |
# |
5 |
# $FreeBSD: ports/chinese/gcin/Makefile,v 1.68 2006/10/31 06:02:23 chinsan Exp $ |
5 |
# $FreeBSD: ports/chinese/gcin/Makefile,v 1.69 2006/11/29 04:24:57 rafan Exp $ |
6 |
# |
6 |
# |
7 |
|
7 |
|
8 |
PORTNAME= gcin |
8 |
PORTNAME= gcin |
9 |
PORTVERSION= 1.2.8 |
9 |
PORTVERSION= 1.3.1 |
10 |
PORTREVISION= 3 |
|
|
11 |
CATEGORIES= chinese textproc gnome |
10 |
CATEGORIES= chinese textproc gnome |
12 |
MASTER_SITES= http://www.csie.nctu.edu.tw/~cp76/gcin/download/:main \ |
11 |
MASTER_SITES= http://cle.linux.org.tw/gcin/download/:main \ |
13 |
LOCAL/chinsan:main \ |
12 |
http://yilan.twbbs.org/chinsan/gcin/:main \ |
14 |
http://yilan.twbbs.org/chinsan/gcin/:main |
13 |
LOCAL/chinsan:main |
15 |
DISTFILES= ${PORTNAME}-${PORTVERSION}${EXTRACT_SUFX}:main |
14 |
DISTFILES= ${PORTNAME}-${PORTVERSION}${EXTRACT_SUFX}:main |
16 |
EXTRACT_ONLY= gcin-${PORTVERSION}.tar.bz2 |
15 |
EXTRACT_ONLY= gcin-${PORTVERSION}.tar.bz2 |
17 |
|
16 |
|
Lines 44-65
Link Here
|
44 |
.endif |
43 |
.endif |
45 |
|
44 |
|
46 |
pre-patch: |
45 |
pre-patch: |
47 |
@${REINPLACE_CMD} -e 's/&//; s/bash/sh/; \ |
46 |
@${REINPLACE_CMD} -e 's,&,,; 1 s,bash,sh,; \ |
48 |
s/QT_IM_DIR=\/usr/QT_IM_DIR=$$prefix/; \ |
47 |
s,QT_IM_DIR=/usr,QT_IM_DIR=$$prefix,; \ |
49 |
s/mandir=$$datadir/mandir=$$prefix/; \ |
48 |
s,mandir=$$datadir,mandir=$$prefix,; \ |
50 |
s/\/usr\/share/$$prefix\/share/; 151 s,/gcin,,; \ |
49 |
s,/usr/share,$$prefix/share,; 161 s,/gcin,,; \ |
51 |
123,124 s/control-center-2\.0/gnome\/control-center-2\.0/g; \ |
50 |
133,134 s,control-center-2\.0,gnome\/control-center-2\.0,g; \ |
52 |
s/gcc/$$CC/; s/gcin-$$GCIN_VERSION/gcin/' ${WRKSRC}/configure |
51 |
s,gcc,$$CC,; s,gcin-$$GCIN_VERSION,gcin,' ${WRKSRC}/configure |
53 |
@${REINPLACE_CMD} -e 's,\/usr\/share,$$(prefix)\/share,' ${WRKSRC}/Makefile |
52 |
@${REINPLACE_CMD} -e 's,\/usr\/share,$$(prefix)\/share,' ${WRKSRC}/Makefile |
54 |
@${REINPLACE_CMD} -e 's,qsort,mergesort,' ${WRKSRC}/gcin2tab.c |
53 |
@${REINPLACE_CMD} -e 's,/usr/local,/usr,g' \ |
55 |
@${REINPLACE_CMD} -e 's|/usr/local|/usr|g' \ |
|
|
56 |
${WRKSRC}/gtk-im/Makefile ${WRKSRC}/menu/Makefile |
54 |
${WRKSRC}/gtk-im/Makefile ${WRKSRC}/menu/Makefile |
57 |
@${REINPLACE_CMD} -e 's/modify-XIM //; 8,10 d' ${WRKSRC}/scripts/Makefile |
55 |
@${REINPLACE_CMD} -e 's,/usr/lib,${LOCALBASE}/lib,g; \ |
58 |
@${REINPLACE_CMD} -e 's/bash/sh/; s/&//; s/opt\/gnome/usr\/X11R6/;' \ |
56 |
s,/usr/include,${X11BASE}/include,g; s,Xft2/X11/Xft,X11/Xft,' \ |
|
|
57 |
${WRKSRC}/qt-im/Makefile |
58 |
@${REINPLACE_CMD} -e 's,modify-XIM ,,; 8,10 d' ${WRKSRC}/scripts/Makefile |
59 |
@${REINPLACE_CMD} -e 's,bash,sh,; s/&//; s,/opt/gnome,${X11BASE},;' \ |
59 |
${WRKSRC}/scripts/utf8-edit ${WRKSRC}/scripts/gcin-user-setup |
60 |
${WRKSRC}/scripts/utf8-edit ${WRKSRC}/scripts/gcin-user-setup |
60 |
@${REINPLACE_CMD} -e 's,wget,fetch,' ${WRKSRC}/scripts/noseeing-inst |
61 |
@${REINPLACE_CMD} -e 's,wget,fetch,' ${WRKSRC}/scripts/noseeing-inst |
61 |
@${REINPLACE_CMD} -e 's,gcin-im-client.h,im-client/gcin-im-client.h,' \ |
62 |
@${REINPLACE_CMD} -e 's,gcin-im-client.h,im-client/gcin-im-client.h,' \ |
62 |
${WRKSRC}/gtk-im/gtkimcontextgcin.c |
63 |
${WRKSRC}/gtk-im/gtkimcontextgcin.c |
|
|
64 |
@${REINPLACE_CMD} -e 's,/usr/X11R6,${X11BASE},' \ |
65 |
${WRKSRC}/IMdkit/lib/Makefile \ |
66 |
${WRKSRC}/IMdkit/Xi18n_sample/Makefile ${WRKSRC}/Makefile \ |
67 |
${WRKSRC}/qt-im/Makefile ${WRKSRC}/scripts/modify-XIM \ |
68 |
${WRKSRC}/scripts/utf8-edit |
63 |
|
69 |
|
64 |
.if defined(WITH_BOSHIAMY) |
70 |
.if defined(WITH_BOSHIAMY) |
65 |
post-patch: |
71 |
post-patch: |