Lines 6-11
Link Here
|
6 |
|
6 |
|
7 |
PORTNAME= zoneinfo |
7 |
PORTNAME= zoneinfo |
8 |
DISTVERSION= 2006n |
8 |
DISTVERSION= 2006n |
|
|
9 |
PORTREVISION= 2 |
9 |
CATEGORIES= misc |
10 |
CATEGORIES= misc |
10 |
MASTER_SITES= ftp://elsie.nci.nih.gov/pub/ |
11 |
MASTER_SITES= ftp://elsie.nci.nih.gov/pub/ |
11 |
DISTNAME= tzdata${DISTVERSION} |
12 |
DISTNAME= tzdata${DISTVERSION} |
Lines 23-53
Link Here
|
23 |
POSIXRULES= America/New_York |
24 |
POSIXRULES= America/New_York |
24 |
|
25 |
|
25 |
# Prevent packages if on the FreeBSD building cluster. This because |
26 |
# Prevent packages if on the FreeBSD building cluster. This because |
26 |
# it overwrite system files and directories. |
27 |
# it overwrites system files and directories. |
27 |
.if defined(PACKAGE_BUILDING) |
28 |
.if defined(PACKAGE_BUILDING) |
28 |
NO_PACKAGE= yes |
29 |
NO_PACKAGE= yes |
29 |
.endif |
30 |
.endif |
30 |
|
31 |
|
31 |
.include <bsd.port.pre.mk> |
32 |
.include <bsd.port.pre.mk> |
32 |
|
33 |
|
33 |
.if ${OSVERSION} < 500000 |
34 |
# The following country codes can be missing from /usr/share/misc/iso3166 and |
34 |
EXTRA_PATCHES+= ${FILESDIR}/patch4-zone.tab |
35 |
# shouldn't appear in the zoneinfo file. |
35 |
.endif |
36 |
MISSING= ax gg im je me rs |
36 |
|
37 |
|
37 |
HAS_GG!= ${GREP} -c ^GG /usr/share/misc/iso3166 || ${TRUE} |
38 |
.for M in ${MISSING} |
38 |
.if ${HAS_GG} == "0" |
39 |
HAS_${M:U}!= ${GREP} -c ^${M:U} /usr/share/misc/iso3166 || ${TRUE} |
39 |
EXTRA_PATCHES+= ${FILESDIR}/patchremove-gg |
40 |
.if ${HAS_${M:U}} == "0" |
40 |
.endif |
41 |
EXTRA_PATCHES+= ${FILESDIR}/patchremove-${M} |
41 |
|
|
|
42 |
HAS_IM!= ${GREP} -c ^IM /usr/share/misc/iso3166 || ${TRUE} |
43 |
.if ${HAS_IM} == "0" |
44 |
EXTRA_PATCHES+= ${FILESDIR}/patchremove-im |
45 |
.endif |
46 |
|
47 |
HAS_JE!= ${GREP} -c ^JE /usr/share/misc/iso3166 || ${TRUE} |
48 |
.if ${HAS_JE} == "0" |
49 |
EXTRA_PATCHES+= ${FILESDIR}/patchremove-je |
50 |
.endif |
42 |
.endif |
|
|
43 |
.endfor |
51 |
|
44 |
|
52 |
do-build: |
45 |
do-build: |
53 |
umask 022; \ |
46 |
umask 022; \ |