[SCM] sfarklib/master: Link with zlib so that it is not necessary to link with zlib for programs that links with sfarklib
rubund-guest at users.alioth.debian.org
rubund-guest at users.alioth.debian.org
Sun Nov 23 11:13:02 UTC 2014
The following commit has been merged in the master branch:
commit 4fcaa0de8578e0212281ee0e04517a79d3f8f005
Author: Ruben Undheim <ruben.undheim at gmail.com>
Date: Sun Nov 23 12:11:28 2014 +0100
Link with zlib so that it is not necessary to link with zlib for programs that links with sfarklib
diff --git a/debian/control b/debian/control
index 9c9ed8a..e180a3c 100644
--- a/debian/control
+++ b/debian/control
@@ -23,7 +23,7 @@ Description: Library for decompressing sfArk soundfonts
Package: libsfark-dev
Section: libdevel
Architecture: any
-Depends: libsfark0 (= ${binary:Version}), ${misc:Depends}
+Depends: libsfark0 (= ${binary:Version}), ${misc:Depends}, zlib1g-dev
Description: Header files for sfArk library
This is the development package for developing applications that depends on
libsfark. It includes header files, static library files and HTML
diff --git a/debian/patches/02_link_with_zlib.patch b/debian/patches/02_link_with_zlib.patch
new file mode 100644
index 0000000..8e36148
--- /dev/null
+++ b/debian/patches/02_link_with_zlib.patch
@@ -0,0 +1,15 @@
+Description: Links with sub-dependency zlib
+Author: Ruben Undheim <ruben.undheim at gmail.com>
+Index: sfarklib/Makefile
+===================================================================
+--- sfarklib.orig/Makefile 2014-11-23 12:08:49.212997211 +0100
++++ sfarklib/Makefile 2014-11-23 12:09:54.832997768 +0100
+@@ -23,7 +23,7 @@
+ -rm *.o libsfark.$(SO).0.0.0
+
+ libsfark.$(SO).0.0.0: $(OBJECTS)
+- $(CXX) -shared $(LDFLAGS) -Wl,-soname,libsfark.$(SO).0 $(OBJECTS) -o libsfark.$(SO).0.0.0
++ $(CXX) -shared $(LDFLAGS) -Wl,-soname,libsfark.$(SO).0 $(OBJECTS) -o libsfark.$(SO).0.0.0 -lz
+
+ install: libsfark.$(SO).0.0.0 sfArkLib.h
+ $(INSTALL) libsfark.$(SO).0.0.0 $(DESTDIR)/usr/lib/${DEB_HOST_MULTIARCH}/libsfark.$(SO).0.0.0
diff --git a/debian/patches/series b/debian/patches/series
index 929668c..b44f5d4 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
01_fix_install.patch
+02_link_with_zlib.patch
--
sfarklib packaging
More information about the pkg-multimedia-commits
mailing list