diff options
author | obrien <obrien@FreeBSD.org> | 1997-02-08 08:40:12 +0800 |
---|---|---|
committer | obrien <obrien@FreeBSD.org> | 1997-02-08 08:40:12 +0800 |
commit | 67b302f5e28832e35f9eef1918fa64e47f8f034c (patch) | |
tree | 9c064ee41efd1f99410f49cadee1e4df9c649804 /chinese/lunar/files | |
parent | 261a5cdaa078fd3e0b778923025145664df21cc6 (diff) | |
download | freebsd-ports-gnome-67b302f5e28832e35f9eef1918fa64e47f8f034c.tar.gz freebsd-ports-gnome-67b302f5e28832e35f9eef1918fa64e47f8f034c.tar.zst freebsd-ports-gnome-67b302f5e28832e35f9eef1918fa64e47f8f034c.zip |
The lunar program performs date conversion between the Gregorian Solar
Calendar (SC) and the Chinese Lunar Calendar (LC).
Diffstat (limited to 'chinese/lunar/files')
-rw-r--r-- | chinese/lunar/files/patch-01 | 12 | ||||
-rw-r--r-- | chinese/lunar/files/patch-02 | 22 |
2 files changed, 34 insertions, 0 deletions
diff --git a/chinese/lunar/files/patch-01 b/chinese/lunar/files/patch-01 new file mode 100644 index 000000000000..34d3fd70306e --- /dev/null +++ b/chinese/lunar/files/patch-01 @@ -0,0 +1,12 @@ +--- Makefile.orig Mon Aug 10 21:14:48 1992 ++++ Makefile Tue Feb 4 01:20:50 1997 +@@ -1,6 +1,8 @@ + # Makefile of LUNAR + +-CFLAGS= -O ++CFLAGS= -O -DBITMAPFILE=\"$(BITMAPFILE)\" ++ ++BITMAPFILE= $(PREFIX)/share/chinese/lunar.bitmap + + lunar: lunar.o + cc -o lunar lunar.o diff --git a/chinese/lunar/files/patch-02 b/chinese/lunar/files/patch-02 new file mode 100644 index 000000000000..8667e0ba005e --- /dev/null +++ b/chinese/lunar/files/patch-02 @@ -0,0 +1,22 @@ +--- lunar.c.orig Mon Aug 10 21:14:48 1992 ++++ lunar.c Tue Feb 4 01:04:18 1997 +@@ -60,6 +60,10 @@ + #define GanBM 4 + #define ZhiBM 14 + ++#ifndef BITMAPFILE ++#define BITMAPFILE "lunar.bitmap" ++#endif ++ + typedef struct { + int year, month, day, hour, weekday; + int leap; /* the lunar month is a leap month */ +@@ -124,7 +128,7 @@ + + int showHZ = 0; /* output in hanzi */ + int showBM = 0; /* output in bitmap */ +-char BMfile[] = "lunar.bitmap"; /* bit map file */ ++char BMfile[] = BITMAPFILE; /* bit map file */ + char GZBM[NBM][BMRow][BMCol]; /* the bitmap array */ + char *progname; + |