Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 18 Jun 2000 09:30:44 +0900 (JST)
From:      one@netlab.is.tsukuba.ac.jp
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/19360: update port: graphics/tgif-nls
Message-ID:  <200006180030.JAA48740@wizard.netlab.is.tsukuba.ac.jp>

next in thread | raw e-mail | index | archive | help

>Number:         19360
>Category:       ports
>Synopsis:       update port: graphics/tgif-nls
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sat Jun 17 17:40:00 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator:     Hajime Tanno
>Release:        FreeBSD 4.0-STABLE i386
>Organization:
Computer Networks Laboratory, Institute of Information Sciences and Electronics, University of Tsukuba, JAPAN
>Environment:

	FreeBSD 4.0-STABLE i386

>Description:

	- Enable ja, ru and fr message catalogs
	- Change default paper size to A4
	- Support NOPORTDOCS
	- Remove XMKMF

>How-To-Repeat:
>Fix:

diff -urN tgif-nls.orig/Makefile tgif-nls/Makefile
--- tgif-nls.orig/Makefile	Wed May 31 22:20:12 2000
+++ tgif-nls/Makefile	Sat Jun 17 16:13:29 2000
@@ -14,18 +14,21 @@
 
 MAINTAINER=	one@netlab.is.tsukuba.ac.jp
 
+BUILD_DEPENDS=	msgfmt:${PORTSDIR}/devel/gettext
 LIB_DEPENDS=	intl.1:${PORTSDIR}/devel/gettext
 RUN_DEPENDS=	giftopnm:${PORTSDIR}/graphics/netpbm \
 		pnmtopng:${PORTSDIR}/graphics/pnmtopng
 
 USE_IMAKE=	yes
-XMKMF=		LOCALBASE=${LOCALBASE} xmkmf -a
 MAN1=		tgif.1
+
+.if !defined(NOPORTDOCS)
 TGIFDOC=	${PREFIX}/share/doc/tgif
 TGIFDEMO=	${PREFIX}/share/examples/tgif
 DEMO_FILES=	an-sr-flip-flop.obj launch-demo-1.obj \
 		fonts.obj launch-demo.obj keys.obj slide-demo.obj example.tex
 READMES=	Copyright HISTORY README
+.endif
 
 post-extract:
 		${RM} -f ${WRKDIR}/${DISTNAME}/Tgif.tmpl
@@ -41,11 +44,13 @@
 		)
 
 post-install:
+.if !defined(NOPORTDOCS)
 		${MKDIR} ${TGIFDOC}; ${MKDIR} ${TGIFDEMO}
 		(cd ${WRKSRC} ;\
 		  ${INSTALL_DATA} ${DEMO_FILES} ${TGIFDEMO} ;\
 		  ${INSTALL_DATA} ${READMES} ${TGIFDOC} ;\
 		)
+.endif
 		${LN} -fs tgif ${PREFIX}/bin/tgif-nls
 
 .include <bsd.port.mk>
diff -urN tgif-nls.orig/patches/patch-ab tgif-nls/patches/patch-ab
--- tgif-nls.orig/patches/patch-ab	Sat Jan 22 20:19:00 2000
+++ tgif-nls/patches/patch-ab	Sat Jun 17 03:45:01 2000
@@ -1,6 +1,16 @@
---- Tgif.tmpl.orig	Thu Jan 20 12:56:09 2000
-+++ Tgif.tmpl	Thu Jan 20 12:59:33 2000
-@@ -48,7 +48,7 @@
+--- Tgif.tmpl.orig	Sat Jun 17 03:43:39 2000
++++ Tgif.tmpl	Sat Jun 17 03:44:15 2000
+@@ -41,6 +41,9 @@
+ XIMPDEFINES      =
+ #endif
+ 
++#define IHaveSubdirs
++SUBDIRS = po
++
+ PROGRAMS	= tgif XCOMM prtgif frontend11.o testdrive
+ TGIFDIR		= $(LIBDIR)/tgif
+ XCOMM CDEBUGFLAGS= -g -Wall
+@@ -48,7 +51,7 @@
  XCOMM BINDIR	= /u/halfmoon/bin
  XCOMM MANPATH	= /u/halfmoon/man
  XCOMM TGIFDIR	= /u/halfmoon/lib/X11/tgif
@@ -9,12 +19,12 @@
  DIRDEFINES	= -DTGIF_PATH=\"$(TGIFDIR)\" -DPSFILE_MOD=0664 \@@\
                    -DLOCALEDIR=\"$(LOCALEDIR)\" \@@\
                    -DTELEPORT_ATTR=\"warp_to=\" -DTMP_DIR=\"/tmp/\" \@@\
-@@ -59,14 +59,16 @@
+@@ -59,14 +62,16 @@
                    -DTEXT_FILE_EXT=\"txt\" -DPIN_FILE_EXT=\"pin\"
  MISCDEFINES	= -D_BACKGROUND_DONT_FORK -D_USE_XDRAWPOINT_TO_PUT_A_POINT \@@\
                    -D_USE_PS_ADOBE_STRING=\"3.0/3.0\"
 -MOREDEFINES	=
-+MOREDEFINES	= -DUSE_XT_INITIALIZE -D_ENABLE_NLS
++MOREDEFINES	= -DUSE_XT_INITIALIZE -D_ENABLE_NLS -DA4PAPER
  
  XCOMM ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  XCOMM Please see Imakefile for more defines to be added to MOREDEFINES above
@@ -28,3 +38,13 @@
  SYS_LIBRARIES	= -lm
 +EXTRA_INCLUDES	+= -I$(LOCALBASE)/include
 +EXTRA_LIBRARIES	+= -L$(LOCALBASE)/lib -lintl
+
+--- po/Po.tmpl.orig	Sat Jun 17 02:35:00 2000
++++ po/Po.tmpl	Sat Jun 17 02:35:26 2000
+@@ -8,5 +8,5 @@
+ MKINSTALLDIRS	= install -d
+ 
+ DESTDIR		=
+-SYSNLSDIR	= /usr/share/locale
++SYSNLSDIR	= $(PREFIX)/share/locale
+ NLSDIR		= $(DESTDIR)$(SYSNLSDIR)
diff -urN tgif-nls.orig/pkg/PLIST tgif-nls/pkg/PLIST
--- tgif-nls.orig/pkg/PLIST	Sat Jan 22 20:19:00 2000
+++ tgif-nls/pkg/PLIST	Sat Jun 17 02:46:02 2000
@@ -21,6 +21,9 @@
 share/examples/tgif/launch-demo.obj
 share/examples/tgif/launch-demo-1.obj
 share/examples/tgif/slide-demo.obj
+share/locale/fr/LC_MESSAGES/tgif.mo
+share/locale/ja/LC_MESSAGES/tgif.mo
+share/locale/ru/LC_MESSAGES/tgif.mo
 @dirrm share/doc/tgif
 @dirrm share/examples/tgif
 @dirrm lib/X11/tgif

>Release-Note:
>Audit-Trail:
>Unformatted:


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200006180030.JAA48740>