Index: head/chinese/Makefile =================================================================== --- head/chinese/Makefile (revision 450445) +++ head/chinese/Makefile (revision 450446) @@ -1,114 +1,115 @@ # $FreeBSD$ # COMMENT = Chinese support SUBDIR += CJKUnifonts SUBDIR += CNS11643-font SUBDIR += FreeWnn-lib SUBDIR += FreeWnn-server SUBDIR += arphicttf SUBDIR += aterm SUBDIR += auto-cn-l10n SUBDIR += auto-tw-l10n SUBDIR += autoconvert SUBDIR += bg5pdf SUBDIR += big5width SUBDIR += bitchx SUBDIR += brise SUBDIR += bsdconv-opencc SUBDIR += bug5 SUBDIR += c2t SUBDIR += cconv SUBDIR += celvis SUBDIR += chiconv SUBDIR += cless SUBDIR += cnprint SUBDIR += dictd-database SUBDIR += docproj SUBDIR += enscript SUBDIR += eric6 SUBDIR += eterm SUBDIR += fandol SUBDIR += fcitx SUBDIR += fcitx-chewing SUBDIR += fcitx-cloudpinyin SUBDIR += fcitx-configtool SUBDIR += fcitx-libpinyin SUBDIR += fcitx-rime SUBDIR += fcitx-sunpinyin SUBDIR += fcitx-table-extra SUBDIR += fcitx-ui-light SUBDIR += fireflyttf SUBDIR += font-std SUBDIR += fortunetw SUBDIR += gb2jis SUBDIR += gb2ps SUBDIR += gcin + SUBDIR += gcin-gtk3 SUBDIR += gimp-help-zh_CN SUBDIR += gydict SUBDIR += hc SUBDIR += ibus-chewing SUBDIR += ibus-libpinyin SUBDIR += ibus-pinyin SUBDIR += jis2gb SUBDIR += kcfonts SUBDIR += kde4-l10n-zh_CN SUBDIR += kde4-l10n-zh_TW SUBDIR += libchewing SUBDIR += libpinyin SUBDIR += libreoffice-zh_CN SUBDIR += libreoffice-zh_TW SUBDIR += librime SUBDIR += libtabe SUBDIR += lunar SUBDIR += moettf SUBDIR += muni SUBDIR += oicq SUBDIR += opencc SUBDIR += opendesktop-fonts SUBDIR += oto SUBDIR += p5-Date-Chinese SUBDIR += p5-Encode-CNMap SUBDIR += p5-Encode-HanConvert SUBDIR += p5-Encode-HanExtra SUBDIR += p5-Lingua-Han-PinYin SUBDIR += p5-Lingua-Han-Utils SUBDIR += p5-Lingua-ZH-HanDetect SUBDIR += p5-Lingua-ZH-Keywords SUBDIR += p5-Lingua-ZH-Numbers SUBDIR += p5-Lingua-ZH-Segment SUBDIR += p5-Lingua-ZH-Summarize SUBDIR += p5-Lingua-ZH-TaBE SUBDIR += p5-Lingua-ZH-Toke SUBDIR += p5-Lingua-ZH-WordSegmenter SUBDIR += p5-Lingua-ZH-Wrap SUBDIR += p5-Text-Greeking-zh_TW SUBDIR += pcmanx SUBDIR += php-opencc SUBDIR += phpbb-tw SUBDIR += phpbb3-tw SUBDIR += pyzy SUBDIR += qe SUBDIR += qt4-codecs-cn SUBDIR += qt4-codecs-tw SUBDIR += qterm SUBDIR += reciteword SUBDIR += scim-array SUBDIR += scim-fcitx SUBDIR += scim-pinyin SUBDIR += scim-tables SUBDIR += sunpinyin SUBDIR += telnet SUBDIR += tin SUBDIR += tintin++ SUBDIR += ttf2pt1 SUBDIR += ttfm SUBDIR += unrar SUBDIR += ve SUBDIR += wenju SUBDIR += wordpress-zh_CN SUBDIR += wordpress-zh_TW SUBDIR += xpdf .include Index: head/chinese/gcin-gtk3/Makefile =================================================================== --- head/chinese/gcin-gtk3/Makefile (nonexistent) +++ head/chinese/gcin-gtk3/Makefile (revision 450446) @@ -0,0 +1,28 @@ +# Created by: vanilla@ +# $FreeBSD$ + +PORTNAME= gcin +PORTVERSION= 2.8.5 +CATEGORIES= chinese textproc gnome +MASTER_SITES= http://hyperrate.com/gcin-source/ +PKGNAMESUFFIX= -gtk3 +EXTRACT_ONLY= gcin-${PORTVERSION}.tar.xz + +MAINTAINER= vanilla@FreeBSD.org +COMMENT= Traditional Chinese input utility in X + +LICENSE= LGPL21 + +LIB_DEPENDS= libgcin-im-client.so:chinese/gcin + +WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}/gtk3-im +USES= gmake gnome pkgconfig tar:xz +USE_GNOME= gtk30 +MAKE_ENV= INSTALL_PROGRAM="${INSTALL_PROGRAM}" \ + MKDIR="${MKDIR}" + +post-patch: + @${REINPLACE_CMD} -e 's,%%PREFIX%%,${PREFIX},g; \ + s,%%MOC%%,${MOC},;' ${WRKSRC}/Makefile + +.include Property changes on: head/chinese/gcin-gtk3/Makefile ___________________________________________________________________ Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:keywords ## -0,0 +1 ## +FreeBSD=%H \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/chinese/gcin-gtk3/distinfo =================================================================== --- head/chinese/gcin-gtk3/distinfo (nonexistent) +++ head/chinese/gcin-gtk3/distinfo (revision 450446) @@ -0,0 +1,3 @@ +TIMESTAMP = 1488877345 +SHA256 (gcin-2.8.5.tar.xz) = 7a191f71136496e407b2554dd5b8775ebfde4389a37c8a4f3e153485760de93b +SIZE (gcin-2.8.5.tar.xz) = 4005548 Property changes on: head/chinese/gcin-gtk3/distinfo ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +on \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/chinese/gcin-gtk3/files/patch-Makefile =================================================================== --- head/chinese/gcin-gtk3/files/patch-Makefile (nonexistent) +++ head/chinese/gcin-gtk3/files/patch-Makefile (revision 450446) @@ -0,0 +1,68 @@ +--- Makefile.orig 2012-03-06 00:16:56 UTC ++++ Makefile +@@ -1,20 +1,23 @@ +-include ../config.mak +- ++#include ../config.mak ++prefix=%%PREFIX%% ++libdir=$(prefix)/lib + OBJS = imgcin.o gtkimcontextgcin.o + GTK3IM=gtk-3.0/immodules + GTKINC=`pkg-config --cflags gtk+-3.0` +-LDFLAGS=`pkg-config --libs gtk+-3.0` ++LDFLAGS=`pkg-config --libs gtk+-3.0` -lX11 + LDFLAGS+='-Wl,--as-needed' + IMMODULES=$(libdir)/$(GTK3IM) +-IMMODULES_LOCAL=/usr/$(LIB)/$(GTK3IM) +- ++SO_FLAGS=-shared ++#IMMODULES_LOCAL=/usr/$(LIB)/$(GTK3IM) ++MAC_OS=0 ++FREEBSD=1 + + ifeq ($(MAC_OS),1) + EXTRA_INC=-I/sw/include + endif + + .SUFFIXES: .c .o .E +-CFLAGS = $(OPTFLAGS) $(EXTRA_INC) $(GTKINC) -I../im-client -I.. -DUNIX=1 \ ++CFLAGS += $(GTKINC) -I../im-client -I.. -DUNIX=1 \ + -I../IMdkit/include -DCLIENT_LIB=1 -DMAC_OS=$(MAC_OS) -DFREEBSD=$(FREEBSD) + + .c.o: +@@ -25,28 +28,22 @@ CFLAGS = $(OPTFLAGS) $(EXTRA_INC) $(GTKI + + all: im-gcin.so im-gcin-cur.so + +-im-gcin.so: $(OBJS) ../im-client/libgcin-im-client.so +- $(CC) $(gcc_ld_run_path) $(SO_FLAGS) $(OBJS) -L../im-client -lgcin-im-client -o $@ $(LDFLAGS) ++im-gcin.so: $(OBJS) ++ $(CC) $(gcc_ld_run_path) $(SO_FLAGS) $(OBJS) -L$(prefix)/lib/gcin -lgcin-im-client -o $@ $(LDFLAGS) + rm -f core.* + +-im-gcin-cur.so: $(OBJS) ../im-client/libgcin-im-client.so +- $(CC) $(SO_FLAGS) $(OBJS) -L../im-client -lgcin-im-client -o $@ $(LDFLAGS) ++im-gcin-cur.so: $(OBJS) ++ $(CC) $(SO_FLAGS) $(OBJS) -L$(prefix)/lib/gcin -lgcin-im-client -o $@ $(LDFLAGS) + rm -f core.* + + clean: + rm -f *.o *.so *~ core.* .depend *.E + + install: +- if [ $(prefix) = /usr/local ]; then \ +- install -d $(IMMODULES_LOCAL); \ +- install -m 755 im-gcin.so $(IMMODULES_LOCAL); \ +- gtk-query-immodules-3.0$(GTK_QUERY_IM_64) --update-cache; \ +- else \ +- install -d $(IMMODULES); \ +- install -m 755 im-gcin.so $(IMMODULES); \ +- fi ++ $(MKDIR) $(DESTDIR)/$(IMMODULES) ++ $(INSTALL_PROGRAM) -m 755 im-gcin.so $(DESTDIR)$(IMMODULES) + + .depend: + $(CC) $(CFLAGS) -MM *.c > $@ + +-include .depend ++#include .depend Property changes on: head/chinese/gcin-gtk3/files/patch-Makefile ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +on \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/chinese/gcin-gtk3/pkg-descr =================================================================== --- head/chinese/gcin-gtk3/pkg-descr (nonexistent) +++ head/chinese/gcin-gtk3/pkg-descr (revision 450446) @@ -0,0 +1,4 @@ +gcin is a Gtk Chinese INput application in X, well support in Traditional +Chinese(Big5) charsets. + +WWW: http://www.csie.nctu.edu.tw/~cp76/gcin/ Property changes on: head/chinese/gcin-gtk3/pkg-descr ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +on \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/chinese/gcin-gtk3/pkg-message =================================================================== --- head/chinese/gcin-gtk3/pkg-message (nonexistent) +++ head/chinese/gcin-gtk3/pkg-message (revision 450446) @@ -0,0 +1,10 @@ +=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= +Remember to set these environment varibles (such as your ~/.xinitrc): + + export XMODIFIERS='@im=gcin' + export GTK_IM_MODULE=xim + + # Finally, to start the GCIN input method daemon, use command: + exec gcin & + +=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Property changes on: head/chinese/gcin-gtk3/pkg-message ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +on \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/chinese/gcin-gtk3/pkg-plist =================================================================== --- head/chinese/gcin-gtk3/pkg-plist (nonexistent) +++ head/chinese/gcin-gtk3/pkg-plist (revision 450446) @@ -0,0 +1,3 @@ +lib/gtk-3.0/immodules/im-gcin.so +@postexec %%LOCALBASE%%/bin/gtk-query-immodules-3.0 --update-cache +@postunexec %%LOCALBASE%%/bin/gtk-query-immodules-3.0 --update-cache Property changes on: head/chinese/gcin-gtk3/pkg-plist ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +on \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property