[SCM] pd-maxlib/master: Makefile-fixes for non-linux (Closes: #609431)
zmoelnig-guest at users.alioth.debian.org
zmoelnig-guest at users.alioth.debian.org
Wed Apr 20 14:36:28 UTC 2011
The following commit has been merged in the master branch:
commit 44af9cd1aab88f299efaeaca0279026028b632d0
Author: IOhannes m zmölnig <zmoelnig at iem.at>
Date: Wed Apr 20 16:37:53 2011 +0200
Makefile-fixes for non-linux (Closes: #609431)
diff --git a/debian/patches/nonlinux_fixes.patch b/debian/patches/nonlinux_fixes.patch
new file mode 100644
index 0000000..2986bff
--- /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-maxlib.orig/Makefile
++++ pd-maxlib/Makefile
+@@ -41,6 +41,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)
+
+@@ -121,6 +122,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
index 4985374..5b6349a 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
add_required_internal_pd_headers
+nonlinux_fixes.patch
--
pd-maxlib packaging
More information about the pkg-multimedia-commits
mailing list