source: trunk/dports/sysutils/darwinports/Portfile @ 17180

Last change on this file since 17180 was 17180, checked in by jberry, 15 years ago

When building the darwinports port on an Intel imac, supply proper flags to
build as fat. Note that these flags do nothing for darwinports 1.2, but work
on 1.3 and may work in a potential 1.2.1 release.

  • Property svn:eol-style set to native
File size: 7.1 KB
Line 
1# $Id: Portfile,v 1.17 2006/03/26 18:08:22 jberry Exp $
2
3PortSystem              1.0
4
5name                    DarwinPorts
6version                 1.2
7revision                1
8
9categories              sysutils
10platforms               darwin freebsd
11maintainers             portmgr@opendarwin.org
12
13description             The DarwinPorts Infrastructure
14long_description        DarwinPorts provides the infrastructure that allows easy installation and management \
15                        of freely available software on Mac OS X 10.3 (Darwin 7) or newer systems.
16
17homepage                http://www.darwinports.org
18master_sites            ${homepage}/downloads
19use_bzip2               yes
20checksums               rmd160 65da35e874045868698bac71c5d7bd8fe64e3572
21
22#depends_run            port:PortAuthority
23
24destroot.keepdirs ${destroot}${prefix}/include\
25        ${destroot}${prefix}/lib ${destroot}${prefix}/libexec\
26        ${destroot}${prefix}/sbin\
27        ${destroot}${prefix}/share/info\
28        ${destroot}${prefix}/share/man/cat1 ${destroot}${prefix}/share/man/cat2 ${destroot}${prefix}/share/man/cat3\
29        ${destroot}${prefix}/share/man/cat4 ${destroot}${prefix}/share/man/cat5 ${destroot}${prefix}/share/man/cat6\
30        ${destroot}${prefix}/share/man/cat7 ${destroot}${prefix}/share/man/cat8 ${destroot}${prefix}/share/man/cat9\
31        ${destroot}${prefix}/share/man/catl ${destroot}${prefix}/share/man/catn \
32        ${destroot}${prefix}/share/man/man1 ${destroot}${prefix}/share/man/man2 ${destroot}${prefix}/share/man/man3\
33        ${destroot}${prefix}/share/man/man4 ${destroot}${prefix}/share/man/man5 ${destroot}${prefix}/share/man/man6\
34        ${destroot}${prefix}/share/man/man7 ${destroot}${prefix}/share/man/man8 ${destroot}${prefix}/share/man/man9\
35        ${destroot}${prefix}/share/man/manl ${destroot}${prefix}/share/man/mann \
36        ${destroot}${prefix}/share/nls/C ${destroot}${prefix}/share/nls/skel\
37        ${destroot}${prefix}/share/nls/af_ZA.ISO8859-1\
38        ${destroot}${prefix}/share/nls/af_ZA.ISO8859-15\
39        ${destroot}${prefix}/share/nls/bg_BG.CP1251\
40        ${destroot}${prefix}/share/nls/cs_CZ.ISO8859-2\
41        ${destroot}${prefix}/share/nls/da_DK.ISO8859-1\
42        ${destroot}${prefix}/share/nls/da_DK.ISO8859-15\
43        ${destroot}${prefix}/share/nls/de_AT.ISO8859-1\
44        ${destroot}${prefix}/share/nls/de_AT.ISO8859-15\
45        ${destroot}${prefix}/share/nls/de_CH.ISO8859-1\
46        ${destroot}${prefix}/share/nls/de_CH.ISO8859-15\
47        ${destroot}${prefix}/share/nls/de_DE.ISO8859-1\
48        ${destroot}${prefix}/share/nls/de_DE.ISO8859-15\
49        ${destroot}${prefix}/share/nls/el_GR.ISO8859-7\
50        ${destroot}${prefix}/share/nls/en_AU.ISO8859-1\
51        ${destroot}${prefix}/share/nls/en_AU.ISO8859-15\
52        ${destroot}${prefix}/share/nls/en_AU.US-ASCII\
53        ${destroot}${prefix}/share/nls/en_CA.ISO8859-1\
54        ${destroot}${prefix}/share/nls/en_CA.ISO8859-15\
55        ${destroot}${prefix}/share/nls/en_CA.US-ASCII\
56        ${destroot}${prefix}/share/nls/en_GB.ISO8859-1\
57        ${destroot}${prefix}/share/nls/en_GB.ISO8859-15\
58        ${destroot}${prefix}/share/nls/en_GB.US-ASCII\
59        ${destroot}${prefix}/share/nls/en_NZ.ISO8859-1\
60        ${destroot}${prefix}/share/nls/en_NZ.ISO8859-15\
61        ${destroot}${prefix}/share/nls/en_NZ.US-ASCII\
62        ${destroot}${prefix}/share/nls/en_US.ISO8859-1\
63        ${destroot}${prefix}/share/nls/en_US.ISO8859-15\
64        ${destroot}${prefix}/share/nls/es_ES.ISO8859-1\
65        ${destroot}${prefix}/share/nls/es_ES.ISO8859-15\
66        ${destroot}${prefix}/share/nls/et_EE.ISO8859-15\
67        ${destroot}${prefix}/share/nls/fi_FI.ISO8859-1\
68        ${destroot}${prefix}/share/nls/fi_FI.ISO8859-15\
69        ${destroot}${prefix}/share/nls/fr_BE.ISO8859-1\
70        ${destroot}${prefix}/share/nls/fr_BE.ISO8859-15\
71        ${destroot}${prefix}/share/nls/fr_CA.ISO8859-1\
72        ${destroot}${prefix}/share/nls/fr_CA.ISO8859-15\
73        ${destroot}${prefix}/share/nls/fr_CH.ISO8859-1\
74        ${destroot}${prefix}/share/nls/fr_CH.ISO8859-15\
75        ${destroot}${prefix}/share/nls/fr_FR.ISO8859-1\
76        ${destroot}${prefix}/share/nls/fr_FR.ISO8859-15\
77        ${destroot}${prefix}/share/nls/hi_IN.ISCII-DEV\
78        ${destroot}${prefix}/share/nls/hr_HR.ISO8859-2\
79        ${destroot}${prefix}/share/nls/hu_HU.ISO8859-2\
80        ${destroot}${prefix}/share/nls/is_IS.ISO8859-1\
81        ${destroot}${prefix}/share/nls/is_IS.ISO8859-15\
82        ${destroot}${prefix}/share/nls/it_CH.ISO8859-1\
83        ${destroot}${prefix}/share/nls/it_CH.ISO8859-15\
84        ${destroot}${prefix}/share/nls/it_IT.ISO8859-1\
85        ${destroot}${prefix}/share/nls/it_IT.ISO8859-15\
86        ${destroot}${prefix}/share/nls/ja_JP.SJIS\
87        ${destroot}${prefix}/share/nls/ja_JP.eucJP\
88        ${destroot}${prefix}/share/nls/ko_KR.eucKR\
89        ${destroot}${prefix}/share/nls/la_LN.ISO8859-1\
90        ${destroot}${prefix}/share/nls/la_LN.ISO8859-15\
91        ${destroot}${prefix}/share/nls/la_LN.ISO8859-2\
92        ${destroot}${prefix}/share/nls/la_LN.ISO8859-4\
93        ${destroot}${prefix}/share/nls/la_LN.US-ASCII\
94        ${destroot}${prefix}/share/nls/lt_LT.ISO8859-4\
95        ${destroot}${prefix}/share/nls/nl_BE.ISO8859-1\
96        ${destroot}${prefix}/share/nls/nl_BE.ISO8859-15\
97        ${destroot}${prefix}/share/nls/nl_NL.ISO8859-1\
98        ${destroot}${prefix}/share/nls/nl_NL.ISO8859-15\
99        ${destroot}${prefix}/share/nls/no_NO.ISO8859-1\
100        ${destroot}${prefix}/share/nls/no_NO.ISO8859-15\
101        ${destroot}${prefix}/share/nls/pl_PL.ISO8859-2\
102        ${destroot}${prefix}/share/nls/pt_BR.ISO8859-1\
103        ${destroot}${prefix}/share/nls/pt_PT.ISO8859-1\
104        ${destroot}${prefix}/share/nls/pt_PT.ISO8859-15\
105        ${destroot}${prefix}/share/nls/ro_RO.ISO8859-2\
106        ${destroot}${prefix}/share/nls/ru_RU.CP866\
107        ${destroot}${prefix}/share/nls/ru_RU.ISO8859-5\
108        ${destroot}${prefix}/share/nls/ru_RU.KOI8-R\
109        ${destroot}${prefix}/share/nls/sk_SK.ISO8859-2\
110        ${destroot}${prefix}/share/nls/sl_SI.ISO8859-2\
111        ${destroot}${prefix}/share/nls/sv_SE.ISO8859-1\
112        ${destroot}${prefix}/share/nls/sv_SE.ISO8859-15\
113        ${destroot}${prefix}/share/nls/tr_TR.ISO8859-9\
114        ${destroot}${prefix}/share/nls/uk_UA.ISO8859-5\
115        ${destroot}${prefix}/share/nls/uk_UA.KOI8-U\
116        ${destroot}${prefix}/share/nls/zh_CN.eucCN\
117        ${destroot}${prefix}/share/nls/zh_TW.Big5\
118        ${destroot}${prefix}/var/db/dports/distfiles ${destroot}${prefix}/var/db/dports/receipts
119
120
121# This is a proposed solution that would allow us to enhance the pkg without needing a
122# post-pkg hook. There's a patch to integrate this functionality into base/, credit to drernie@
123#package.resources ${filespath}/ReadMe.rtf ${filespath}/License.html ${filespath}/postflight
124
125# But for the moment we use this workaround:
126post-pkg {
127        set resources ${workpath}/${name}-${version}.pkg/Contents/Resources/
128        file copy -force -- ${filespath}/ReadMe.rtf ${resources}
129        file copy -force -- ${filespath}/License.html ${resources}
130        file copy -force -- ${filespath}/postflight ${resources}
131}
132
133platform darwin 7 {
134         post-pkg {
135                  set resources ${workpath}/${name}-${version}.pkg/Contents/Resources/
136                  reinplace "s|__XVERS__|10.3|" ${resources}/ReadMe.rtf
137                  reinplace "s|__DVERS__|7|" ${resources}/ReadMe.rtf
138                  reinplace "/^The \"Port Authority\"/,/\\\\/d" ${resources}/ReadMe.rtf
139                  reinplace "/^\* DISCLAIMER/,/\\\\/d" ${resources}/ReadMe.rtf
140                  reinplace "s|or newer ||" ${resources}/Welcome.html
141         }
142}
143
144platform darwin 8 {
145         post-pkg {
146                  set resources ${workpath}/${name}-${version}.pkg/Contents/Resources/
147                  reinplace "s|__XVERS__|10.4|" ${resources}/ReadMe.rtf
148                  reinplace "s|__DVERS__|8|" ${resources}/ReadMe.rtf
149                  reinplace "s|3|4|" ${resources}/Welcome.html
150                  reinplace "s|7|8|" ${resources}/Welcome.html
151                  reinplace "s|or newer ||" ${resources}/Welcome.html
152         }
153}
154
155platform darwin 8 i386 {
156        # Supply architecture flags to build darwinports as fat on an Intel Mac
157        configure.args-append "CFLAGS='-arch ppc -arch i386' SHLIB_LDFLAGS='-arch ppc -arch i386'"
158}
Note: See TracBrowser for help on using the repository browser.