[76828] trunk/dports/lang/python24/Portfile
jmr at macports.org
jmr at macports.org
Wed Mar 9 18:35:47 PST 2011
Revision: 76828
http://trac.macports.org/changeset/76828
Author: jmr at macports.org
Date: 2011-03-09 18:35:45 -0800 (Wed, 09 Mar 2011)
Log Message:
-----------
python24: consolidate platform darwin stuff
Modified Paths:
--------------
trunk/dports/lang/python24/Portfile
Modified: trunk/dports/lang/python24/Portfile
===================================================================
--- trunk/dports/lang/python24/Portfile 2011-03-10 01:51:48 UTC (rev 76827)
+++ trunk/dports/lang/python24/Portfile 2011-03-10 02:35:45 UTC (rev 76828)
@@ -152,24 +152,21 @@
# See http://trac.macports.org/ticket/18376
system "cd ${worksrcpath} && ed - pyconfig.h < ${filespath}/pyconfig.ed"
}
+ if {${os.major} >= 9} {
+ configure.cppflags-append -D__DARWIN_UNIX03
+ }
+ if {${os.major} >= 10} {
+ post-configure {
+ reinplace "s|#define _POSIX_C_SOURCE 200112L|#undef _POSIX_C_SOURCE|g" ${worksrcpath}/pyconfig.h
+ reinplace "s|#define _XOPEN_SOURCE 600|#undef _XOPEN_SOURCE|g" ${worksrcpath}/pyconfig.h
+
+ patchfiles-append patch-macosmodule.diff \
+ patch-mactoolboxglue.diff \
+ patch-pymactoolbox.diff
+ }
+ }
}
-platform darwin 9 {
- configure.cppflags-append -D__DARWIN_UNIX03
-}
-
-platform darwin 10 {
- configure.cppflags-append -D__DARWIN_UNIX03
- post-configure {
- reinplace "s|#define _POSIX_C_SOURCE 200112L|#undef _POSIX_C_SOURCE|g" ${worksrcpath}/pyconfig.h
- reinplace "s|#define _XOPEN_SOURCE 600|#undef _XOPEN_SOURCE|g" ${worksrcpath}/pyconfig.h
-
- patchfiles-append patch-macosmodule.diff \
- patch-mactoolboxglue.diff \
- patch-pymactoolbox.diff
- }
-}
-
platform puredarwin {
configure.args-delete --enable-framework=${frameworks_dir}
configure.args-append --disable-toolbox-glue --disable-framework
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110309/0d3e2045/attachment-0001.html>
More information about the macports-changes
mailing list