[SCM] pd-cxc/master: Makefile-fixes for non-linux (Closes: #609436)
zmoelnig-guest at users.alioth.debian.org
zmoelnig-guest at users.alioth.debian.org
Wed Apr 20 14:09:35 UTC 2011
The following commit has been merged in the master branch:
commit 2005624b04f3a4346c4633e581962ed2f8d1593b
Author: IOhannes m zmölnig <zmoelnig at iem.at>
Date: Wed Apr 20 16:12:51 2011 +0200
Makefile-fixes for non-linux (Closes: #609436)
diff --git a/debian/patches/nonlinux_fixes.patch b/debian/patches/nonlinux_fixes.patch
new file mode 100644
index 0000000..e3ab098
--- /dev/null
+++ b/debian/patches/nonlinux_fixes.patch
@@ -0,0 +1,48 @@
+Author: IOhannes m zmölnig
+Description: upstream Makefile forgot about Hurd & kFreeBSD;
+ they should be handled the same as Linux
+--- pd-cxc.orig/Makefile
++++ pd-cxc/Makefile
+@@ -45,6 +45,7 @@
+ #
+ #------------------------------------------------------------------------------#
+
++
+ # get library version from meta file
+ LIBRARY_VERSION = $(shell sed -n 's|^\#X text [0-9][0-9]* [0-9][0-9]* VERSION \(.*\);|\1|p' $(LIBRARY_NAME)-meta.pd)
+
+@@ -125,6 +126,34 @@
+ STRIP = strip --strip-unneeded -R .note -R .comment
+ DISTBINDIR=$(DISTDIR)-$(OS)-$(shell uname -m)
+ endif
++ifeq ($(UNAME),GNU)
++ # GNU/Hurd, should work like GNU/Linux for basically all externals
++ CPU := $(shell uname -m)
++ SOURCES += $(SOURCES_linux)
++ EXTENSION = pd_linux
++ OS = linux
++ PD_PATH = /usr
++ OPT_CFLAGS = -O6 -funroll-loops -fomit-frame-pointer
++ ALL_CFLAGS += -fPIC
++ ALL_LDFLAGS += -Wl,--export-dynamic -shared -fPIC
++ ALL_LIBS += -lc
++ STRIP = strip --strip-unneeded -R .note -R .comment
++ DISTBINDIR=$(DISTDIR)-$(OS)-$(shell uname -m)
++endif
++ifeq ($(UNAME),GNU/kFreeBSD)
++ # Debian GNU/kFreeBSD, should work like GNU/Linux for basically all externals
++ CPU := $(shell uname -m)
++ SOURCES += $(SOURCES_linux)
++ EXTENSION = pd_linux
++ OS = linux
++ PD_PATH = /usr
++ OPT_CFLAGS = -O6 -funroll-loops -fomit-frame-pointer
++ ALL_CFLAGS += -fPIC
++ ALL_LDFLAGS += -Wl,--export-dynamic -shared -fPIC
++ ALL_LIBS += -lc
++ STRIP = strip --strip-unneeded -R .note -R .comment
++ DISTBINDIR=$(DISTDIR)-$(OS)-$(shell uname -m)
++endif
+ ifeq (CYGWIN,$(findstring CYGWIN,$(UNAME)))
+ CPU := $(shell uname -m)
+ SOURCES += $(SOURCES_cygwin)
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..a4ea679
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+nonlinux_fixes.patch
--
pd-cxc packaging
More information about the pkg-multimedia-commits
mailing list