[39502] trunk/dports/multimedia/smpeg
mww at macports.org
mww at macports.org
Fri Aug 22 06:16:21 PDT 2008
Revision: 39502
http://trac.macosforge.org/projects/macports/changeset/39502
Author: mww at macports.org
Date: 2008-08-22 06:16:20 -0700 (Fri, 22 Aug 2008)
Log Message:
-----------
-change 'configure' to use the C++ compiler always instead of changing the supplied CC flag;
-dont build in parallel -- as development of smpeg has long been stopped, this wont get fixed (#16097)
Modified Paths:
--------------
trunk/dports/multimedia/smpeg/Portfile
Added Paths:
-----------
trunk/dports/multimedia/smpeg/files/patch-configure.diff
Modified: trunk/dports/multimedia/smpeg/Portfile
===================================================================
--- trunk/dports/multimedia/smpeg/Portfile 2008-08-22 11:39:46 UTC (rev 39501)
+++ trunk/dports/multimedia/smpeg/Portfile 2008-08-22 13:16:20 UTC (rev 39502)
@@ -25,7 +25,7 @@
depends_lib port:libsdl
patchfiles patch-smpeg.h.diff patch-glmovie-tile.c.diff \
- patch-glmovie.c.diff patch-Makefile.in.diff
+ patch-glmovie.c.diff patch-Makefile.in.diff patch-configure.diff
post-patch {
file copy -force ${distpath}/ltconfig13 ${worksrcpath}/ltconfig
file copy -force ${distpath}/ltmain13 ${worksrcpath}/ltmain.sh
@@ -39,10 +39,7 @@
--mandir=${prefix}/share/man \
--enable-shared=no
-configure.cc g++
-platform darwin 7 { configure.cc /usr/bin/g++-3.3 }
-platform darwin 8 { configure.cc /usr/bin/g++-4.0 }
-platform darwin 9 { configure.cc /usr/bin/g++-4.0 }
+use_parallel_build no
set libname libsmpeg.${version}.dylib
set ln "ln -s ${libname}"
Added: trunk/dports/multimedia/smpeg/files/patch-configure.diff
===================================================================
--- trunk/dports/multimedia/smpeg/files/patch-configure.diff (rev 0)
+++ trunk/dports/multimedia/smpeg/files/patch-configure.diff 2008-08-22 13:16:20 UTC (rev 39502)
@@ -0,0 +1,25 @@
+--- configure 2001-04-24 21:25:46.000000000 +0200
++++ configure 2008-08-22 15:12:57.000000000 +0200
+@@ -544,8 +544,8 @@
+ ac_ext=c
+ # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
+ ac_cpp='$CPP $CPPFLAGS'
+-ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
+-ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
++ac_compile='${CXX-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
++ac_link='${CXX-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
+ cross_compiling=$ac_cv_prog_cc_cross
+
+ ac_exeext=
+@@ -932,8 +932,9 @@
+ if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+ else
+- if test -n "$CC"; then
+- ac_cv_prog_CC="$CC" # Let the user override the test.
++# uses the C compiler for linking, so give it the C++ compiler right away...
++ if test -n "$CXX"; then
++ ac_cv_prog_CC="$CXX" # Let the user override the test.
+ else
+ IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
+ ac_dummy="$PATH"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20080822/4746f67c/attachment.html
More information about the macports-changes
mailing list