[27652] trunk/dports/lang/python24

source_changes at macosforge.org source_changes at macosforge.org
Sat Aug 11 02:16:33 PDT 2007


Revision: 27652
          http://trac.macosforge.org/projects/macports/changeset/27652
Author:   afb at macports.org
Date:     2007-08-11 02:16:32 -0700 (Sat, 11 Aug 2007)

Log Message:
-----------
freebsd support (no changes for macosx)

Modified Paths:
--------------
    trunk/dports/lang/python24/Portfile
    trunk/dports/lang/python24/files/patch-Makefile.pre.in

Modified: trunk/dports/lang/python24/Portfile
===================================================================
--- trunk/dports/lang/python24/Portfile	2007-08-11 09:00:08 UTC (rev 27651)
+++ trunk/dports/lang/python24/Portfile	2007-08-11 09:16:32 UTC (rev 27652)
@@ -8,7 +8,7 @@
 set major_version   2
 set minor_version   4
 categories      lang
-platforms       darwin
+platforms       darwin freebsd
 maintainers     nomaintainer at macports.org
 description     An interpreted, object-oriented programming language
 long_description    Python is an interpreted, interactive, object-oriented \
@@ -48,6 +48,8 @@
     reinplace "s|__PREFIX__|${prefix}|g" setup.py
 }
 
+build.target    all libpython2.4.dylib
+
 # Workaround for case-sensitive file systems
 post-build {
     if { ![file exists ${worksrcpath}/python.exe] } {
@@ -61,7 +63,7 @@
 
 destroot.target frameworkinstall maninstall
 post-destroot {
-    if { ![variant_isset puredarwin]} {
+    if { [variant_isset macosx]} {
         set framewdir ${prefix}/Library/Frameworks/Python.framework
         xinstall -m 755 -d ${destroot}${framewdir}/Versions/2.4/include
         cd ${destroot}${framewdir}
@@ -75,11 +77,19 @@
            ln -s ${framewdir}/Versions/2.4/lib/libpython${major_version}.${minor_version}.dylib libpython${version}.dylib
            ln -s ${framewdir}/Versions/2.4/lib/libpython${major_version}.${minor_version}.dylib libpython${major_version}.dylib
            ln -s ${framewdir}/Versions/2.4/lib/libpython${major_version}.${minor_version}.dylib libpython.dylib
-    } else {
+    } elseif { [variant_isset darwin]} {
         cd ${destroot}${prefix}/lib
            ln -s libpython${major_version}.${minor_version}.dylib libpython${version}.dylib
            ln -s libpython${major_version}.${minor_version}.dylib libpython${major_version}.dylib
            ln -s libpython${major_version}.${minor_version}.dylib libpython.dylib
+    } else {
+        system "cd ${destroot}${prefix}/lib && \
+        ln -s libpython${major_version}.${minor_version}.so \
+            libpython${version}.so && \
+        ln -s libpython${major_version}.${minor_version}.so \
+            libpython${major_version}.so && \
+        ln -s libpython${major_version}.${minor_version}.so \
+            libpython.so"
     }
 }
 
@@ -98,6 +108,13 @@
     configure.cppflags-append    -D__DARWIN_UNIX03
 }
 
+platform freebsd {
+    configure.args-delete   --enable-framework=${prefix}/Library/Frameworks
+    configure.args-append   --disable-framework
+    build.target        all libpython2.4.so
+    destroot.target     install maninstall
+}
+
 livecheck.check regex
 livecheck.url   http://www.python.org/download/releases/
 livecheck.regex Python (2.4.\[0-9\]+)

Modified: trunk/dports/lang/python24/files/patch-Makefile.pre.in
===================================================================
--- trunk/dports/lang/python24/files/patch-Makefile.pre.in	2007-08-11 09:00:08 UTC (rev 27651)
+++ trunk/dports/lang/python24/files/patch-Makefile.pre.in	2007-08-11 09:16:32 UTC (rev 27652)
@@ -9,15 +9,6 @@
  LDFLAGS=	@LDFLAGS@
  LDLAST=		@LDLAST@
  SGI_ABI=	@SGI_ABI@
-@@ -309,7 +309,7 @@
- # Rules
- 
- # Default target
--all:		$(BUILDPYTHON) oldsharedmods sharedmods
-+all:		$(BUILDPYTHON) oldsharedmods sharedmods libpython$(VERSION).dylib
- 
- # Build the interpreter
- $(BUILDPYTHON):	Modules/$(MAINOBJ) $(LIBRARY) $(LDLIBRARY)
 @@ -364,6 +364,10 @@
  libpython$(VERSION).sl: $(LIBRARY_OBJS)
  	$(LDSHARED) -o $@ $(LIBRARY_OBJS) $(SHLIBS) $(LIBC) $(LIBM)

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20070811/5651fb11/attachment.html


More information about the macports-changes mailing list