[23414] trunk/dports/archivers/zlib/Portfile
source_changes at macosforge.org
source_changes at macosforge.org
Sat Mar 31 10:13:30 PDT 2007
Revision: 23414
http://trac.macosforge.org/projects/macports/changeset/23414
Author: landonf at macports.org
Date: 2007-03-31 10:13:29 -0700 (Sat, 31 Mar 2007)
Log Message:
-----------
openmaintainer does not mean "Reformat the entire port, and add some seriously scary hacks that break in different versions of DarwinPorts because they rely on internal port API"
Reverted to the last working iteration.
Modified Paths:
--------------
trunk/dports/archivers/zlib/Portfile
Modified: trunk/dports/archivers/zlib/Portfile
===================================================================
--- trunk/dports/archivers/zlib/Portfile 2007-03-31 11:36:52 UTC (rev 23413)
+++ trunk/dports/archivers/zlib/Portfile 2007-03-31 17:13:29 UTC (rev 23414)
@@ -1,58 +1,34 @@
# $Id$
PortSystem 1.0
+name zlib
+version 1.2.3
+categories archivers
+maintainers ryandesign at macports.org landonf at macports.org \
+ openmaintainer at macports.org
+description zlib lossless data-compression library
+long_description \
+ zlib is designed to be a free, general-purpose, \
+ legally unencumbered, lossless data-compression \
+ library for use on virtually any computer hardware \
+ and operating system.
+homepage http://www.zlib.net/
+platforms darwin
-name zlib
-version 1.2.3
-categories archivers
-maintainers ryandesign at macports.org landonf at macports.org \
- openmaintainer at macports.org
-description zlib lossless data-compression library
-long_description zlib is designed to be a free, general-purpose, \
- legally unencumbered, lossless data-compression \
- library for use on virtually any computer hardware \
- and operating system.
+master_sites ${homepage} http://www.gzip.org/zlib/ \
+ sourceforge:libpng
-homepage http://www.zlib.net/
-platforms darwin
+use_bzip2 yes
+checksums md5 dee233bf288ee795ac96a98cc2e369b6
-master_sites ${homepage} \
- http://www.gzip.org/zlib/ \
- sourceforge:libpng
+configure.args --shared
-use_bzip2 yes
-checksums md5 dee233bf288ee795ac96a98cc2e369b6
+test.run yes
-configure.args --shared
+destroot.destdir prefix=${destroot}${prefix}
-test.run yes
-
-destroot.destdir prefix=${destroot}${prefix}
-
post-destroot {
- ui_msg "$UI_PREFIX Configuring libz.a"
- configure.args-delete --shared
- command_exec configure
- modify_ldshared
- ui_msg "$UI_PREFIX Building libz.a"
- command_exec build
- ui_msg "$UI_PREFIX Staging libz.a into destroot"
- xinstall ${worksrcpath}/libz.a ${destroot}${prefix}/lib/
+ system "cd ${worksrcpath} && ./configure"
+ system "cd ${worksrcpath} && make"
+ xinstall ${worksrcpath}/libz.a ${destroot}${prefix}/lib
}
-
-post-configure {
- modify_ldshared
-}
-
-variant universal {
- configure.env-append CFLAGS="-isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc" \
- LDFLAGS="-Wl,-syslibroot,/Developer/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc"
-}
-
-proc modify_ldshared {} {
- global worksrcpath
- if {[variant_isset universal]} {
- reinplace "s|^\\(LDSHARED *=.*\\)$|\\1 -Wl,-syslibroot,/Developer/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc|" \
- "${worksrcpath}/Makefile"
- }
-}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20070331/dbb1b77d/attachment.html
More information about the macports-changes
mailing list