Package: pd-arraysize
Severity: normal
Tags: upstream patch

Dear Maintainer,

pd-arraysize currently FTBFS on Debian GNU/Hurd. The attached patch should fix 
this issue.

WBR,
Cyril Roelandt.


-- System Information:
Debian Release: wheezy/sid
  APT prefers unreleased
  APT policy: (500, 'unreleased'), (500, 'unstable')
Architecture: hurd-i386 (i686-AT386)

Kernel: GNU-Mach 1.3.99-486/Hurd-0.3
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
diff --git a/Makefile b/Makefile
index 74abf81..94691ec 100644
--- a/Makefile
+++ b/Makefile
@@ -15,6 +15,7 @@ SOURCES_macosx =
 SOURCES_iphoneos = 
 SOURCES_linux = 
 SOURCES_windows = 
+SOURCES_gnu =
 
 # list all pd objects (i.e. myobject.pd) files here, and their helpfiles will
 # be included automatically
@@ -60,7 +61,8 @@ CFLAGS = -DPD -I$(PD_PATH)/src -Wall -W -g
 LDFLAGS =  
 LIBS = 
 ALLSOURCES := $(SOURCES) $(SOURCES_android) $(SOURCES_cygwin) $(SOURCES_macosx) \
-	         $(SOURCES_iphoneos) $(SOURCES_linux) $(SOURCES_windows)
+	         $(SOURCES_iphoneos) $(SOURCES_linux) $(SOURCES_windows) \
+	         $(SOURCES_gnu)
 
 DISTDIR=$(LIBRARY_NAME)-$(LIBRARY_VERSION)
 ORIGDIR=pd-$(LIBRARY_NAME)_$(LIBRARY_VERSION)
@@ -142,6 +144,17 @@ ifeq (MINGW,$(findstring MINGW,$(UNAME)))
   STRIP = strip --strip-unneeded -R .note -R .comment
   DISTBINDIR=$(DISTDIR)-$(OS)
 endif
+ifeq ($(UNAME),GNU)
+  SOURCES += $(SOURCES_gnu)
+  EXTENSION = pd_gnu
+  OS = gnu
+  OPT_CFLAGS = -O6 -funroll-loops -fomit-frame-pointer
+  CFLAGS += -fPIC
+  LDFLAGS += -Wl,--export-dynamic  -shared -fPIC
+  LIBS += -lc
+  STRIP = strip --strip-unneeded -R .note -R .comment
+  DISTBINDIR=$(DISTDIR)-$(OS)-$(shell uname -m)
+endif
 
 CFLAGS += $(OPT_CFLAGS)
 
_______________________________________________
pkg-multimedia-maintainers mailing list
pkg-multimedia-maintainers@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-multimedia-maintainers

Reply via email to