[126287] trunk/dports/audio/faust-devel
ryandesign at macports.org
ryandesign at macports.org
Mon Oct 6 20:34:54 PDT 2014
Revision: 126287
https://trac.macports.org/changeset/126287
Author: ryandesign at macports.org
Date: 2014-10-06 20:34:54 -0700 (Mon, 06 Oct 2014)
Log Message:
-----------
faust-devel: update to 0.9.68-20141002 and add httpd and sound2faust (#45241); build for the right archs
Modified Paths:
--------------
trunk/dports/audio/faust-devel/Portfile
Added Paths:
-----------
trunk/dports/audio/faust-devel/files/
trunk/dports/audio/faust-devel/files/patch-architecture-httpdlib-src-Makefile.diff
trunk/dports/audio/faust-devel/files/patch-architecture-osclib-faust-Makefile.diff
trunk/dports/audio/faust-devel/files/patch-tools-sound2faust-Makefile.diff
Modified: trunk/dports/audio/faust-devel/Portfile
===================================================================
--- trunk/dports/audio/faust-devel/Portfile 2014-10-07 03:13:42 UTC (rev 126286)
+++ trunk/dports/audio/faust-devel/Portfile 2014-10-07 03:34:54 UTC (rev 126287)
@@ -5,8 +5,8 @@
name faust-devel
conflicts faust faust2-devel
-version 0.9.67-20140722
-git.branch 88fea20c65cb98ace3e8f52da83bd2aac343acc3
+version 0.9.68-20141002
+git.branch c1b94c3af34bc98c1e5aa0bc47d08d78aa8a9b0d
categories audio lang
platforms darwin
maintainers ryandesign
@@ -22,6 +22,16 @@
fetch.type git
git.url git://git.code.sf.net/p/faudiostream/code
+depends_build port:pkgconfig
+
+depends_lib port:libmicrohttpd \
+ port:libsndfile \
+ port:openssl
+
+patchfiles-append patch-architecture-httpdlib-src-Makefile.diff
+patchfiles-append patch-architecture-osclib-faust-Makefile.diff
+patchfiles-append patch-tools-sound2faust-Makefile.diff
+
post-patch {
eval reinplace "s|/usr/local|${prefix}|g" \
${worksrcpath}/compiler/parser/enrobage.cpp \
@@ -42,8 +52,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/faust-devel/files/patch-architecture-httpdlib-src-Makefile.diff
===================================================================
--- trunk/dports/audio/faust-devel/files/patch-architecture-httpdlib-src-Makefile.diff (rev 0)
+++ trunk/dports/audio/faust-devel/files/patch-architecture-httpdlib-src-Makefile.diff 2014-10-07 03:34:54 UTC (rev 126287)
@@ -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/faust-devel/files/patch-architecture-osclib-faust-Makefile.diff
===================================================================
--- trunk/dports/audio/faust-devel/files/patch-architecture-osclib-faust-Makefile.diff (rev 0)
+++ trunk/dports/audio/faust-devel/files/patch-architecture-osclib-faust-Makefile.diff 2014-10-07 03:34:54 UTC (rev 126287)
@@ -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/faust-devel/files/patch-tools-sound2faust-Makefile.diff
===================================================================
--- trunk/dports/audio/faust-devel/files/patch-tools-sound2faust-Makefile.diff (rev 0)
+++ trunk/dports/audio/faust-devel/files/patch-tools-sound2faust-Makefile.diff 2014-10-07 03:34:54 UTC (rev 126287)
@@ -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/a1ec6b02/attachment.html>
More information about the macports-changes
mailing list