[packages/puredata] - fixed problem with building on x86_64

blekot blekot at pld-linux.org
Sat Jun 1 23:11:18 CEST 2013


commit 7c7a2c1628dd2c9f1b469a20fa230d20399c5859
Author: Lukasz Glebicki <blekot at pld-linux.org>
Date:   Sat Jun 1 23:10:47 2013 +0200

    - fixed problem with building on x86_64

 puredata-makefile.patch | 40 ++++++++++++++++++++++++++++++++++++++++
 puredata.spec           |  7 +++++--
 2 files changed, 45 insertions(+), 2 deletions(-)
---
diff --git a/puredata.spec b/puredata.spec
index d8a8868..4a46afa 100644
--- a/puredata.spec
+++ b/puredata.spec
@@ -3,12 +3,13 @@
 Summary:	Pd - free real-time computer music software package resembling Max
 Summary(pl.UTF-8):	Pd - darmowy pakiet do muzyki w czasie rzeczywistym podobny do Maksa
 Name:		puredata
-Version:	0.40.2
+Version:	0.44.0
 Release:	0.1
 License:	BSD, only expr plugin on GPL
 Group:		Libraries
 Source0:	http://dl.sourceforge.net/pure-data/pd-0.40-2.src.tar.gz
 # Source0-md5:	2622e12b6fa0bd69db9732972e953afb
+Patch0:		%{name}-makefile.patch
 URL:		http://puredata.info/
 BuildRequires:	alsa-lib-devel
 BuildRequires:	fftw-devel
@@ -38,6 +39,7 @@ Plik nagłówkowy Pd.
 
 %prep
 %setup -q -n pd-0.40-2
+%patch0 -p0
 
 cp extra/expr~/README.txt README-expr.txt
 
@@ -45,7 +47,8 @@ cp extra/expr~/README.txt README-expr.txt
 cd src
 %configure \
 	--with-fftw \
-	--with-jack
+	--with-jack \
+	--with-alsa \
 # --with-portaudio --with-portmidi (fix to use system lisb)
 %{__make} \
 	CC="%{__cc}" \
diff --git a/puredata-makefile.patch b/puredata-makefile.patch
new file mode 100644
index 0000000..063ec55
--- /dev/null
+++ b/puredata-makefile.patch
@@ -0,0 +1,40 @@
+--- extra/makefile~	2006-09-25 06:17:22.000000000 +0200
++++ extra/makefile	2013-06-01 22:44:59.000000000 +0200
+@@ -57,7 +57,7 @@
+ 
+ .SUFFIXES: .pd_linux
+ 
+-LINUXCFLAGS = -DPD -O2 -funroll-loops -fomit-frame-pointer -fPIC -m32 \
++LINUXCFLAGS = -DPD -O2 -funroll-loops -fomit-frame-pointer -fPIC \
+     -Wall -W -Wshadow -Wstrict-prototypes \
+     -Wno-unused -Wno-parentheses -Wno-switch $(CFLAGS)
+ 
+@@ -65,7 +65,7 @@
+ 
+ .c.pd_linux:
+ 	$(CC) $(LINUXCFLAGS) $(LINUXINCLUDE) -o $*.o -c $*.c
+-	$(CC) -m32 -export_dynamic -shared -o $*.pd_linux $*.o -lc -lm
++	$(CC) -export_dynamic -shared -o $*.pd_linux $*.o -lc -lm
+ 	strip --strip-unneeded $*.pd_linux
+ 	rm -f $*.o
+ 
+--- extra/expr~/makefile~	2006-09-25 06:19:11.000000000 +0200
++++ extra/expr~/makefile	2013-06-01 22:45:27.000000000 +0200
+@@ -77,7 +77,7 @@
+ LINUXOBJ =  vexp.pd_linux_o vexp_fun.pd_linux_o vexp_if.pd_linux_o
+ .SUFFIXES: .pd_linux_o
+ 
+-LINUXCFLAGS = -DPD -O2 -funroll-loops -fomit-frame-pointer -fPIC -m32 \
++LINUXCFLAGS = -DPD -O2 -funroll-loops -fomit-frame-pointer -fPIC \
+     -Wall -W -Wshadow -Wstrict-prototypes \
+     -Wno-unused -Wno-parentheses -Wno-switch 
+ 
+@@ -87,7 +87,7 @@
+ 	$(CC) -g $(LINUXCFLAGS) $(LINUXINCLUDE) -o $*.pd_linux_o -c $*.c
+ 
+ expr.pd_linux: $(LINUXOBJ)
+-	$(CC) -m32 -export_dynamic  -shared -o expr.pd_linux $(LINUXOBJ) -lc -lm
++	$(CC) -export_dynamic  -shared -o expr.pd_linux $(LINUXOBJ) -lc -lm
+ 	strip --strip-unneeded expr.pd_linux
+ 
+ expr~.pd_linux: expr.pd_linux
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/puredata.git/commitdiff/7c7a2c1628dd2c9f1b469a20fa230d20399c5859



More information about the pld-cvs-commit mailing list