xref: /freebsd/usr.bin/calendar/Makefile (revision 2f513db72b034fd5ef7f080b11be5c711c15186a)
1#	@(#)Makefile	8.1 (Berkeley) 6/6/93
2# $FreeBSD$
3
4.include <src.opts.mk>
5
6PROG=	calendar
7SRCS=	calendar.c locale.c events.c dates.c parsedata.c io.c day.c \
8	ostern.c paskha.c pom.c sunpos.c
9LIBADD=	m util
10INTER=          de_AT.ISO_8859-15 de_DE.ISO8859-1 fr_FR.ISO8859-1 \
11		hr_HR.ISO8859-2 hu_HU.ISO8859-2 pt_BR.ISO8859-1 \
12		pt_BR.UTF-8 ru_RU.KOI8-R ru_RU.UTF-8 uk_UA.KOI8-U
13DE_LINKS=       de_DE.ISO8859-15
14FR_LINKS=       fr_FR.ISO8859-15
15
16.if ${MK_ICONV} == "yes"
17CFLAGS+=	-DWITH_ICONV
18.endif
19
20FILESGROUPS+=	CALS
21CALS=	calendars/calendar.all \
22	calendars/calendar.australia \
23	calendars/calendar.birthday \
24	calendars/calendar.brazilian \
25	calendars/calendar.christian \
26	calendars/calendar.computer \
27	calendars/calendar.croatian \
28	calendars/calendar.dutch \
29	calendars/calendar.freebsd \
30	calendars/calendar.french \
31	calendars/calendar.german \
32	calendars/calendar.history \
33	calendars/calendar.holiday \
34	calendars/calendar.hungarian \
35	calendars/calendar.judaic \
36	calendars/calendar.lotr \
37	calendars/calendar.music \
38	calendars/calendar.newzealand \
39	calendars/calendar.russian \
40	calendars/calendar.southafrica \
41	calendars/calendar.ukrainian \
42	calendars/calendar.usholiday \
43	calendars/calendar.world
44CALSDIR=	${SHAREDIR}/calendar
45
46CAL_de_AT.ISO_8859-15=	calendar.feiertag
47
48CAL_de_DE.ISO8859-1=	calendar.all \
49	calendar.feiertag \
50	calendar.geschichte \
51	calendar.kirche \
52	calendar.literatur \
53	calendar.musik \
54	calendar.wissenschaft
55
56CAL_fr_FR.ISO8859-1=	calendar.all \
57	calendar.fetes \
58	calendar.french \
59	calendar.jferies \
60	calendar.proverbes
61
62CAL_hr_HR.ISO8859-2=	calendar.all \
63	calendar.praznici
64
65CAL_hu_HU.ISO8859-2=	calendar.all \
66	calendar.nevnapok \
67	calendar.unnepek
68
69CAL_pt_BR.ISO8859-1=	calendar.all \
70	calendar.commemorative \
71	calendar.holidays \
72	calendar.mcommemorative
73
74CAL_pt_BR.UTF-8=	calendar.all \
75	calendar.commemorative \
76	calendar.holidays \
77	calendar.mcommemorative
78
79CAL_ru_RU.KOI8-R=	calendar.all \
80	calendar.common \
81	calendar.holiday \
82	calendar.military \
83	calendar.orthodox \
84	calendar.pagan
85
86CAL_ru_RU.UTF-8=	calendar.all \
87	calendar.common \
88	calendar.holiday \
89	calendar.military \
90	calendar.orthodox \
91	calendar.pagan
92
93CAL_uk_UA.KOI8-U=	calendar.all \
94	calendar.holiday \
95	calendar.misc \
96	calendar.orthodox
97
98.for lang in ${INTER}
99FILESGROUPS+=	CALS_${lang}
100CALS_${lang}DIR=	${SHAREDIR}/calendar/${lang}
101.for file in ${CAL_${lang}}
102CALS_${lang}+=	${file:S@^@calendars/${lang}/@}
103.endfor
104.endfor
105
106
107.for link in ${DE_LINKS}
108SYMLINKS+=	de_DE.ISO8859-1 ${SHAREDIR}/calendar/${link}
109.endfor
110.for link in ${FR_LINKS}
111SYMLINKS+=	fr_FR.ISO8859-1 ${SHAREDIR}/calendar/${link}
112.endfor
113
114HAS_TESTS=
115SUBDIR.${MK_TESTS}+= tests
116
117.include <bsd.prog.mk>
118