1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-06 06:30:19 +00:00
freebsd-ports/deskutils/xcalendar/files/patch-ad
Volker Stolz 416dc1f730 - Complete transition from ja_JP.EUC to ja_JP.eucJP locale
- Japanese holiday database for 2005/06

PR:		ports/79075
Submitted by:	maintainer
2005-04-05 09:20:48 +00:00

55 lines
2.0 KiB
Plaintext

--- Imakefile.orig Sun Oct 1 12:19:17 1995
+++ Imakefile Mon Mar 21 14:30:06 2005
@@ -1,4 +1,6 @@
XCALENDAR_LIBDIR = $(LIBDIR)/xcalendar
+XCALENDAR_JP_LIBDIR_EUCJP = $(LIBDIR)/ja_JP.eucJP/xcalendar
+XCALENDAR_JP_APPDEFAULTS_EUCJP = $(LIBDIR)/ja_JP.eucJP/app-defaults
LIBFILES = larrow.xbm qmark.xbm quit.xbm rarrow.xbm xcalendar.hlp
# Comment out the following two lines for the Motif version
LOCAL_LIBRARIES = $(XAWLIB) $(XMULIB) $(XTOOLLIB) $(XLIB)
@@ -12,7 +14,7 @@
#
# for Internationalization
#
-EXTRA_DEFINES = -DXI18N -DATHENA
+EXTRA_DEFINES = -DXI18N -DATHENA -DHAVE_DIRENT_H
##if !SharedLibXwchar
# _UseCat($(USRLIBDIR),$(CONTRIBSRC)/lib/Xwchar,/libXwchar.a)
# XWCHARLIB = LoaderLibPrefix _Use(-lXwchar,$(DEPXWCHARLIB))
@@ -40,12 +42,31 @@
# for Internationalization
#
XCal-uj.ad: XCal-uj.sed
- sed 's;%%XCALENDAR_LIBDIR%%;$(XCALENDAR_LIBDIR);'\
+ sed 's;%%XCALENDAR_LIBDIR%%;$(XCALENDAR_JP_LIBDIR_EUCJP);'\
+ < $? \
+ > $@
+xcalendar-uj.hlp: $(FILESDIR)/xcalendar-uj.hlp.sed
+ sed 's;%%XCALENDAR_LIBDIR%%;$(XCALENDAR_JP_LIBDIR_EUCJP);'\
+ < $? \
+ > $@
+xcalendar-uj.man: $(FILESDIR)/xcalendar-uj.man.sed
+ sed 's;%%XCALENDAR_LIBDIR%%;$(XCALENDAR_JP_LIBDIR_EUCJP);'\
< $? \
> $@
-install:: XCal-uj.ad
- MakeDir($(LIBDIR)/ja_JP.EUC/app-defaults)
- $(INSTALL) -c $(INSTAPPFLAGS) XCal-uj.ad $(LIBDIR)/ja_JP.EUC/app-defaults/XCalendar
+install::
+ MakeDir($(XCALENDAR_JP_APPDEFAULTS_EUCJP))
+ $(INSTALL) -c $(INSTAPPFLAGS) XCal-uj.ad \
+ $(XCALENDAR_JP_APPDEFAULTS_EUCJP)/XCalendar
+
+ MakeDir($(XCALENDAR_JP_LIBDIR_EUCJP))
+ $(INSTALL) -c $(INSTAPPFLAGS) $(FILESDIR)/xcalendar-uj.hol \
+ $(XCALENDAR_JP_LIBDIR_EUCJP)/xcalendar.hol
+ $(INSTALL) -c $(INSTAPPFLAGS) xcalendar-uj.hlp \
+ $(XCALENDAR_JP_LIBDIR_EUCJP)/xcalendar.hlp
+
+ $(INSTALL) -c $(INSTMANFLAGS) xcalendar-uj.man \
+ $(MANPATH)/ja/man1/xcalendar.1
+ $(COMPRESSMANCMD) $(MANPATH)/ja/man1/xcalendar.1
# MakeDir($(LIBDIR)/ja_JP.ujis/app-defaults)
# $(INSTALL) -c $(INSTAPPFLAGS) XCal-uj.ad $(LIBDIR)/ja_JP.ujis/app-defaults/XCalendar