This commit is contained in:
parent
533fd136e6
commit
363077d415
28
chinese/lunar/Makefile
Normal file
28
chinese/lunar/Makefile
Normal file
@ -0,0 +1,28 @@
|
||||
# OpenBSD makefile for: lunar
|
||||
# Version required: 2.1
|
||||
# Date created: Nov 26 1997
|
||||
# Whom: ejovi
|
||||
#
|
||||
# $OpenBSD: Makefile,v 1.1.1.1 1997/11/26 22:13:06 joey Exp $
|
||||
#
|
||||
|
||||
DISTNAME= lunar-2.1
|
||||
PKGNAME= zh-lunar-2.1
|
||||
CATEGORIES= chinese
|
||||
MASTER_SITES= ftp://ftp.ifcss.org/pub/software/unix/c-utils/ \
|
||||
ftp://ftp.edu.tw/Chinese/ifcss/software/unix/c-utils/ \
|
||||
ftp://ftp.cuhk.hk/pub/chinese/ifcss/software/unix/c-utils/
|
||||
|
||||
MAINTAINER= joey@OpenBSD.ORG
|
||||
|
||||
ALL_TARGET=
|
||||
MAN1= lunar.1
|
||||
|
||||
do-install:
|
||||
@${MKDIR} ${PREFIX}/share/chinese
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/lunar ${PREFIX}/bin
|
||||
${INSTALL_DATA} ${WRKSRC}/lunar.bitmap ${PREFIX}/share/chinese
|
||||
${INSTALL_MAN} ${WRKSRC}/${MAN1} ${PREFIX}/man/man1
|
||||
|
||||
|
||||
.include <bsd.port.mk>
|
1
chinese/lunar/files/md5
Normal file
1
chinese/lunar/files/md5
Normal file
@ -0,0 +1 @@
|
||||
MD5 (lunar-2.1.tar.gz) = 399683498a01615b3a68dceff09581b2
|
12
chinese/lunar/patches/patch-01
Normal file
12
chinese/lunar/patches/patch-01
Normal file
@ -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
|
22
chinese/lunar/patches/patch-02
Normal file
22
chinese/lunar/patches/patch-02
Normal file
@ -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;
|
||||
|
1
chinese/lunar/pkg/COMMENT
Normal file
1
chinese/lunar/pkg/COMMENT
Normal file
@ -0,0 +1 @@
|
||||
convert between the Gregorian Solar Calendar (SC) and the Lunar Calendar (LC).
|
13
chinese/lunar/pkg/DESCR
Normal file
13
chinese/lunar/pkg/DESCR
Normal file
@ -0,0 +1,13 @@
|
||||
The lunar program performs date conversion between the Gregorian Solar
|
||||
Calendar (SC) and the Chinese Lunar Calendar (LC).
|
||||
|
||||
Given a date in either calendar, the program also outputs the corresponding
|
||||
"shengxiao" (animal of the year) and "ganzhi" characters.
|
||||
|
||||
The date range currently covered is from about 1900 A.D. to 2049 A.D.
|
||||
|
||||
The standard time of the Lunar Calendar is Beijing (Hong Kong) Standard Time,
|
||||
not GMT. Be sure to adjust appropriately for other time zones and "Day-light
|
||||
Saving Time".
|
||||
|
||||
-- David O'Brien
|
3
chinese/lunar/pkg/PLIST
Normal file
3
chinese/lunar/pkg/PLIST
Normal file
@ -0,0 +1,3 @@
|
||||
bin/lunar
|
||||
share/chinese/lunar.bitmap
|
||||
man/man1/lunar.1.gz
|
Loading…
x
Reference in New Issue
Block a user