[126288] trunk/dports/audio/faust2-devel

ryandesign at macports.org ryandesign at macports.org
Mon Oct 6 20:40:01 PDT 2014


Revision: 126288
          https://trac.macports.org/changeset/126288
Author:   ryandesign at macports.org
Date:     2014-10-06 20:40:01 -0700 (Mon, 06 Oct 2014)
Log Message:
-----------
faust2-devel: update to 2.0-20141002 and add httpd and sound2faust (#45241); build for the right archs

Modified Paths:
--------------
    trunk/dports/audio/faust2-devel/Portfile

Added Paths:
-----------
    trunk/dports/audio/faust2-devel/files/
    trunk/dports/audio/faust2-devel/files/patch-architecture-httpdlib-src-Makefile.diff
    trunk/dports/audio/faust2-devel/files/patch-architecture-osclib-faust-Makefile.diff
    trunk/dports/audio/faust2-devel/files/patch-compiler-Makefile.unix.diff
    trunk/dports/audio/faust2-devel/files/patch-tools-sound2faust-Makefile.diff

Modified: trunk/dports/audio/faust2-devel/Portfile
===================================================================
--- trunk/dports/audio/faust2-devel/Portfile	2014-10-07 03:34:54 UTC (rev 126287)
+++ trunk/dports/audio/faust2-devel/Portfile	2014-10-07 03:40:01 UTC (rev 126288)
@@ -5,8 +5,8 @@
 
 name                    faust2-devel
 conflicts               faust faust-devel
-version                 2.0-20140723
-git.branch              b00d5580a386113431a77a3f7d1a064b1794a71a
+version                 2.0-20141002
+git.branch              57c17a039422c652f7302541918a07ca955288e0
 categories              audio lang
 platforms               darwin
 maintainers             ryandesign
@@ -27,10 +27,19 @@
 set llvm_prefix         ${prefix}/libexec/llvm-${llvm_version}
 build.env               PATH=${llvm_prefix}/bin:$env(PATH)
 
+depends_build           port:pkgconfig
+
 depends_lib             port:clang-${llvm_version} \
+                        port:libmicrohttpd \
+                        port:libsndfile \
                         port:llvm-${llvm_version} \
                         port:openssl
 
+patchfiles-append       patch-architecture-httpdlib-src-Makefile.diff
+patchfiles-append       patch-architecture-osclib-faust-Makefile.diff
+patchfiles-append       patch-compiler-Makefile.unix.diff
+patchfiles-append       patch-tools-sound2faust-Makefile.diff
+
 post-patch {
     eval reinplace "s|/usr/local|${prefix}|g" \
         ${worksrcpath}/compiler/parser/enrobage.cpp \
@@ -51,8 +60,16 @@
 
 variant universal {}
 
-build.args-append       CXX="${configure.cxx} [get_canonical_archflags cxx]"
+build.args-append       ARCHFLAGS="[get_canonical_archflags cxx]" \
+                        CXX="${configure.cxx} [get_canonical_archflags cxx]"
 
+post-build {
+    foreach extra {dynamic httpd sound2faust} {
+        build.target    ${extra}
+        portbuild::build_main
+    }
+}
+
 post-destroot {
     set docdir ${destroot}${prefix}/share/doc/${subport}
     xinstall -d ${docdir}

Added: trunk/dports/audio/faust2-devel/files/patch-architecture-httpdlib-src-Makefile.diff
===================================================================
--- trunk/dports/audio/faust2-devel/files/patch-architecture-httpdlib-src-Makefile.diff	                        (rev 0)
+++ trunk/dports/audio/faust2-devel/files/patch-architecture-httpdlib-src-Makefile.diff	2014-10-07 03:40:01 UTC (rev 126288)
@@ -0,0 +1,15 @@
+--- architecture/httpdlib/src/Makefile.orig
++++ architecture/httpdlib/src/Makefile
+@@ -55,10 +55,10 @@ dynamic : ../libHTTPDFaust.$(LIB_EXT)
+ 	ranlib $@
+ 
+ ../libHTTPDFaust.dylib :  $(objects)
+-	c++ -dynamiclib $(INSTALL_NAME) $(ARCHFLAGS) $(objects) `pkg-config --libs libmicrohttpd` -o $@
++	$(CXX) -dynamiclib $(INSTALL_NAME) $(ARCHFLAGS) $(objects) `pkg-config --libs libmicrohttpd` -o $@
+ 
+ ../libHTTPDFaust.so  :  $(objects)
+-	gcc -shared -fPIC -o $@ $(objects)
++	$(CC) -shared -fPIC -o $@ $(objects)
+ 	
+ depend :
+ 	makedepend -fMakefile -w120 -Y -- $(CXXFLAGS) -- $(sources)

Added: trunk/dports/audio/faust2-devel/files/patch-architecture-osclib-faust-Makefile.diff
===================================================================
--- trunk/dports/audio/faust2-devel/files/patch-architecture-osclib-faust-Makefile.diff	                        (rev 0)
+++ trunk/dports/audio/faust2-devel/files/patch-architecture-osclib-faust-Makefile.diff	2014-10-07 03:40:01 UTC (rev 126288)
@@ -0,0 +1,15 @@
+--- architecture/osclib/faust/Makefile.orig
++++ architecture/osclib/faust/Makefile
+@@ -59,10 +59,10 @@ CXXFLAGS += -Wno-parentheses -I../oscpack -I../oscpack/osc $(addprefix -I, $(sub
+ all : $(TARGET)
+ 
+ libOSCFaust.$(VERSION).dylib : $(objects)
+-	c++ -dynamiclib $(INSTALL_NAME) -compatibility_version $(SOVERSION) -current_version $(VERSION) $(ARCHFLAGS) $(objects) -L.. -loscpack -o libOSCFaust.$(VERSION).dylib
++	$(CXX) -dynamiclib $(INSTALL_NAME) -compatibility_version $(SOVERSION) -current_version $(VERSION) $(ARCHFLAGS) $(objects) -L.. -loscpack -o libOSCFaust.$(VERSION).dylib
+ 
+ libOSCFaust.so.$(VERSION) : $(objects)
+-	c++ -shared -Wl,-soname,$(SONAME) -fPIC $(ARCHFLAGS) $(objects) -L.. -loscpack -o libOSCFaust.so.$(VERSION)
++	$(CXX) -shared -Wl,-soname,$(SONAME) -fPIC $(ARCHFLAGS) $(objects) -L.. -loscpack -o libOSCFaust.so.$(VERSION)
+ 
+ libOSCFaust.a : $(objects)
+ 	rm -f $@

Added: trunk/dports/audio/faust2-devel/files/patch-compiler-Makefile.unix.diff
===================================================================
--- trunk/dports/audio/faust2-devel/files/patch-compiler-Makefile.unix.diff	                        (rev 0)
+++ trunk/dports/audio/faust2-devel/files/patch-compiler-Makefile.unix.diff	2014-10-07 03:40:01 UTC (rev 126288)
@@ -0,0 +1,19 @@
+--- compiler/Makefile.unix.orig
++++ compiler/Makefile.unix
+@@ -145,14 +145,14 @@ ifeq ($(system), Darwin)
+ 	libtool $(LIBFLAGS) $(objects) libmain.o global.o -static -o $@
+ 
+     libfaust.dylib : $(objects) libmain.o global.o
+-	c++ -dynamiclib $(ARCHFLAGS) $(LIBFLAGS) $(objects) libmain.o global.o  `$(LLVM_CONFIG) --ldflags` $(LLVM_STATIC_LIBS) -ldl -lcrypto -lz -lncurses -install_name /usr/local/lib/faust/libfaust.dylib -o libfaust.dylib
++	$(CXX) -dynamiclib $(ARCHFLAGS) $(LIBFLAGS) $(objects) libmain.o global.o  `$(LLVM_CONFIG) --ldflags` $(LLVM_STATIC_LIBS) -ldl -lcrypto -lz -lncurses -install_name /usr/local/lib/faust/libfaust.dylib -o libfaust.dylib
+ else	
+     libfaust.a : $(objects) libmain.o global.o
+ 	ar cq $@ $(objects) libmain.o global.o
+ 	ranlib $@
+ 
+     libfaust.so : $(objects) libmain.o global.o
+-	gcc -shared -fPIC $(objects) libmain.o global.o -o libfaust.so `$(LLVM_CONFIG) --ldflags` $(LLVM_STATIC_LIBS) -ldl -lcrypto -lstdc++ 
++	$(CC) -shared -fPIC $(objects) libmain.o global.o -o libfaust.so `$(LLVM_CONFIG) --ldflags` $(LLVM_STATIC_LIBS) -ldl -lcrypto -lstdc++ 
+ endif
+ 
+ 

Added: trunk/dports/audio/faust2-devel/files/patch-tools-sound2faust-Makefile.diff
===================================================================
--- trunk/dports/audio/faust2-devel/files/patch-tools-sound2faust-Makefile.diff	                        (rev 0)
+++ trunk/dports/audio/faust2-devel/files/patch-tools-sound2faust-Makefile.diff	2014-10-07 03:40:01 UTC (rev 126288)
@@ -0,0 +1,16 @@
+--- tools/sound2faust/Makefile.orig
++++ tools/sound2faust/Makefile
+@@ -13,11 +13,11 @@ endif
+ 
+ sound2faust : sound2faust.cpp
+ 
+-	g++ -O3 sound2faust.cpp -I../../architecture `pkg-config --cflags --static --libs sndfile` -o sound2faust $(LIBS)
++	$(CXX) -O3 sound2faust.cpp -I../../architecture `pkg-config --cflags --static --libs sndfile` -o sound2faust $(LIBS)
+ 
+ static:
+ 
+-	g++ -O3 sound2faust.cpp -I../../architecture `pkg-config --cflags  sndfile`  /usr/local/lib/libsndfile.a -o sound2faust
++	$(CXX) -O3 sound2faust.cpp -I../../architecture `pkg-config --cflags  sndfile`  /usr/local/lib/libsndfile.a -o sound2faust
+ 
+ install :
+ 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20141006/1e2447f5/attachment.html>


More information about the macports-changes mailing list