- Enable ja, ru and fr message catalogs

- Change default paper size to A4
- Support NOPORTDOCS
- Remove XMKMF

PR:		19360
Submitted by:	maintainer
This commit is contained in:
Steve Price 2000-07-10 01:35:57 +00:00
parent e17e471330
commit 1e5b2beb61
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=30386
3 changed files with 34 additions and 6 deletions

View file

@ -14,18 +14,21 @@ PKGNAMESUFFIX= -nls
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 @@ pre-install:
)
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>

View file

@ -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)

View file

@ -21,6 +21,9 @@ share/examples/tgif/keys.obj
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