[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
tgif.mo
織と申します。
graphics/tgif でメッセージカタログをインストールするように修正してみました。
${WRKSRC}/po で imake を実行させる必要があるのですが、このときに
${PKGLOCALEDIR} 等を設定する方法がよくわからなかったので、適当に
やっちゃいました。
もっといい方法があるようでしたら教えて頂けませんでしょうか。
----
京都大学大学院 情報学研究科 知能情報学専攻
織 学 (ORI Manabu)
mailto: ori@pine.kuee.kyoto-u.ac.jp
diff --exclude=CVS -urN tgif/Makefile tgif-20011221/Makefile
--- tgif/Makefile Wed Oct 17 21:47:19 2001
+++ tgif-20011221/Makefile Fri Dec 21 18:07:26 2001
@@ -12,11 +12,27 @@
USE_IMAKE= yes
USE_X11= yes
+BUILD_USES_MSGFMT= yes
+
+PODIR= ${WRKSRC}/po
+MAKE_ENV+= X11PREFIX=${X11PREFIX} PKGLOCALEDIR=${PKGLOCALEDIR}
+SCRIPTS_ENV+= X11PREFIX=${X11PREFIX} PKGLOCALEDIR=${PKGLOCALEDIR}
+
+post-configure:
+ cd ${PODIR} && ${SETENV} ${SCRIPTS_ENV} PKGLOCALEDIR=${PKGLOCALEDIR} ${XMKMF}
post-patch::
@${RM} -f ${WRKSRC}/Tgif.tmpl
@${CP} ${WRKSRC}/Tgif.tmpl-netbsd ${WRKSRC}/Tgif.tmpl
+post-build:
+ cd ${PODIR} && ${MAKE_PROGRAM}
+
+post-install:
+ cd ${PODIR} && \
+ ${MAKE_PROGRAM} install
+
+.include "../../devel/gettext-lib/buildlink.mk"
.include "../../devel/pth/buildlink.mk"
.include "../../graphics/jpeg/buildlink.mk"
.include "../../mk/bsd.pkg.mk"
diff --exclude=CVS -urN tgif/PLIST tgif-20011221/PLIST
--- tgif/PLIST Thu Nov 1 08:54:07 2001
+++ tgif-20011221/PLIST Sat Nov 3 02:25:21 2001
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.1 2001/10/31 23:54:07 zuntum Exp $
+@comment $NetBSD: PLIST,v 1.8 2001/10/31 23:54:09 zuntum dead $
bin/tgif
lib/X11/tgif/eq4-2x.sym
lib/X11/tgif/eq4-epstool.sym
@@ -12,4 +12,7 @@
lib/X11/tgif/tgificon.xbm
lib/X11/tgif/tgificon.xpm
man/cat1/tgif.0
+${PKGLOCALEDIR}/locale/fr/LC_MESSAGES/tgif.mo
+${PKGLOCALEDIR}/locale/ja/LC_MESSAGES/tgif.mo
+${PKGLOCALEDIR}/locale/ru/LC_MESSAGES/tgif.mo
@dirrm lib/X11/tgif
diff --exclude=CVS -urN tgif/distinfo tgif-20011221/distinfo
--- tgif/distinfo Wed Oct 17 21:47:19 2001
+++ tgif-20011221/distinfo Wed Nov 21 16:33:45 2001
@@ -2,3 +2,5 @@
SHA1 (tgif-4.1.41.tar.gz) = bd703861961a76a81d2ef366532b5ce8bd408eb1
Size (tgif-4.1.41.tar.gz) = 1497477 bytes
+SHA1 (patch-aa) = 1e1ea0de84755113a3e99864cc5613b117cb8688
+SHA1 (patch-ab) = 8edaed073814b01d4573e779d339299fc643caaa
diff --exclude=CVS -urN tgif/patches/patch-aa tgif-20011221/patches/patch-aa
--- tgif/patches/patch-aa Thu Jan 1 09:00:00 1970
+++ tgif-20011221/patches/patch-aa Thu Oct 25 01:16:45 2001
@@ -0,0 +1,26 @@
+--- Tgif.tmpl-netbsd.orig Tue Aug 7 06:41:22 2001
++++ Tgif.tmpl-netbsd Wed Oct 24 02:59:06 2001
+@@ -48,7 +48,7 @@
+ XCOMM BINDIR = /u/halfmoon/bin
+ XCOMM MANPATH = /u/halfmoon/man
+ XCOMM TGIFDIR = /u/halfmoon/lib/X11/tgif
+-LOCALEDIR = /usr/share/locale
++LOCALEDIR = ${X11PREFIX}/${PKGLOCALEDIR}/locale
+ DIRDEFINES = -DTGIF_PATH=\"$(TGIFDIR)\" -DPSFILE_MOD=0664 \@@\
+ -DLOCALEDIR=\"$(LOCALEDIR)\" \@@\
+ -DTELEPORT_ATTR=\"warp_to=\" -DTMP_DIR=\"/tmp/\" \@@\
+@@ -61,7 +61,7 @@
+ MISCDEFINES = -D_BACKGROUND_DONT_FORK -D_USE_XDRAWPOINT_TO_PUT_A_POINT \@@\
+ -D_USE_PS_ADOBE_STRING=\"3.0/3.0\" -D_DONT_USE_MKTEMP \@@\
+ -D_DONT_REENCODE=\"FFDingbests:ZapfDingbats\"
+-MOREDEFINES =
++MOREDEFINES = -DENABLE_NLS
+
+ XCOMM ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+ XCOMM Please see Imakefile for more defines to be added to MOREDEFINES above
+@@ -71,4 +71,4 @@
+ LOCAL_LIBRARIES = $(XLIB)
+ XCOMM LOCAL_LIBRARIES = $(XMULIB) $(XTOOLLIB) $(XLIB)
+ XCOMM SYS_LIBRARIES = -ldl -lm
+-SYS_LIBRARIES = -lm
++SYS_LIBRARIES = -lintl -lm
diff --exclude=CVS -urN tgif/patches/patch-ab tgif-20011221/patches/patch-ab
--- tgif/patches/patch-ab Thu Jan 1 09:00:00 1970
+++ tgif-20011221/patches/patch-ab Thu Oct 25 01:02:34 2001
@@ -0,0 +1,9 @@
+--- po/Po.tmpl.orig Wed Oct 24 05:11:44 2001
++++ po/Po.tmpl Wed Oct 24 05:12:19 2001
+@@ -8,5 +8,5 @@
+ MKINSTALLDIRS = install -d
+
+ DESTDIR =
+-SYSNLSDIR = /usr/share/locale
++SYSNLSDIR = ${X11PREFIX}/${PKGLOCALEDIR}/locale
+ NLSDIR = $(DESTDIR)$(SYSNLSDIR)
- Follow-Ups:
- Re: tgif.mo
- From: tnakai@yo.rim.or.jp (tnakai@yo.rim.or.jp)