[SCM] pd-bsaylor/master: Makefile-fixes for non-linux (Closes: #609774)
zmoelnig-guest at users.alioth.debian.org
zmoelnig-guest at users.alioth.debian.org
Wed Apr 20 14:00:49 UTC 2011
The following commit has been merged in the master branch:
commit 7abb9ef6036bef57e6a735563daeb6c97692c8b9
Author: IOhannes m zmölnig <zmoelnig at iem.at>
Date: Wed Apr 20 15:59:27 2011 +0200
Makefile-fixes for non-linux (Closes: #609774)
diff --git a/debian/patches/nonlinux_fixes.patch b/debian/patches/nonlinux_fixes.patch
new file mode 100644
index 0000000..a46d517
--- /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-bsaylor.orig/Makefile
++++ pd-bsaylor/Makefile
+@@ -43,6 +43,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)
+
+@@ -123,6 +124,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-bsaylor packaging
More information about the pkg-multimedia-commits
mailing list