[pnglite] 04/10: Build a shared library instead of a static one.
Felix Geyer
fgeyer at moszumanska.debian.org
Sat Apr 23 16:46:11 UTC 2016
This is an automated email from the git hooks/post-receive script.
fgeyer pushed a commit to branch master
in repository pnglite.
commit d2dbd8aabf0e89f84ceb1b67a7bfa56e8ab50f55
Author: Felix Geyer <fgeyer at debian.org>
Date: Sat Apr 23 18:19:33 2016 +0200
Build a shared library instead of a static one.
* Build a shared library instead of a static one.
- Add libpnglite0 binary package.
---
debian/changelog | 2 ++
debian/control | 19 +++++++++++++++++--
debian/libpnglite-dev.install | 2 --
debian/libpnglite-dev.links | 3 +++
debian/libpnglite0.install | 3 +++
debian/rules | 9 ++++++---
6 files changed, 31 insertions(+), 7 deletions(-)
diff --git a/debian/changelog b/debian/changelog
index 94d8ee1..06fae45 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -11,6 +11,8 @@ pnglite (0.1.17-2) UNRELEASED; urgency=low
* Switch to source format 3.0 (quilt).
* Convert to short dh(1) rules file.
* Switch to debhelper compat level 9.
+ * Build a shared library instead of a static one.
+ - Add libpnglite0 binary package.
-- Ansgar Burchardt <ansgar at 43-1.org> Thu, 29 May 2008 20:10:49 +0200
diff --git a/debian/control b/debian/control
index 02d2d2e..310f431 100644
--- a/debian/control
+++ b/debian/control
@@ -2,20 +2,35 @@ Source: pnglite
Priority: optional
Maintainer: Debian Games Team <pkg-games-devel at lists.alioth.debian.org>
Uploaders: Jack Coulter <jscinoz at gmail.com>
-Build-Depends: debhelper (>= 9), zlib1g-dev
+Build-Depends: debhelper (>= 9), dh-exec, zlib1g-dev
Vcs-Svn: svn://anonscm.debian.org/pkg-games/packages/trunk/pnglite
Vcs-Browser: http://anonscm.debian.org/viewvc/pkg-games/packages/trunk/pnglite/
Standards-Version: 3.7.3
Section: devel
Homepage: http://www.karlings.com/~danne/pnglite/
+Package: libpnglite0
+Section: libs
+Architecture: any
+Multi-Arch: same
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: lightweight C library for loading and writing PNG images
+ It was created as a substitute for libpng in situations when libpng is more
+ than enough. It currently requires zlib for inflate and crc checking and it
+ can read the most common types of PNG images. The library has a small and
+ simple to use interface.
+ .
+ This package provides the shared library.
+
Package: libpnglite-dev
Section: libdevel
Architecture: any
+Multi-Arch: same
+Depends: libpnglite0 (= ${binary:Version}), ${misc:Depends}
Description: lightweight C library for loading and writing PNG images
It was created as a substitute for libpng in situations when libpng is more
than enough. It currently requires zlib for inflate and crc checking and it
can read the most common types of PNG images. The library has a small and
simple to use interface.
.
- This package provides the header files and static libraries.
+ This package provides the header file.
diff --git a/debian/libpnglite-dev.install b/debian/libpnglite-dev.install
index c965512..d3295df 100644
--- a/debian/libpnglite-dev.install
+++ b/debian/libpnglite-dev.install
@@ -1,3 +1 @@
-libpnglite.a usr/lib
-pnglite.o usr/lib
pnglite.h usr/include
diff --git a/debian/libpnglite-dev.links b/debian/libpnglite-dev.links
new file mode 100755
index 0000000..b8c5d1c
--- /dev/null
+++ b/debian/libpnglite-dev.links
@@ -0,0 +1,3 @@
+#!/usr/bin/dh-exec
+
+usr/lib/${DEB_HOST_MULTIARCH}/libpnglite.so.${ABI_MAJOR} usr/lib/${DEB_HOST_MULTIARCH}/libpnglite.so
diff --git a/debian/libpnglite0.install b/debian/libpnglite0.install
new file mode 100755
index 0000000..953dd28
--- /dev/null
+++ b/debian/libpnglite0.install
@@ -0,0 +1,3 @@
+#!/usr/bin/dh-exec
+
+libpnglite.so.${ABI_MAJOR} usr/lib/${DEB_HOST_MULTIARCH}/
diff --git a/debian/rules b/debian/rules
index 5b6232e..30d5867 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,12 +1,15 @@
#!/usr/bin/make -f
# -*- makefile -*-
+export ABI_MAJOR=0
+
%:
dh $@
override_dh_auto_build:
- gcc -Wall -c pnglite.c
- ar -cvq libpnglite.a pnglite.o
+ gcc -shared -fPIC -Wall $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) \
+ -Wl,--soname,libpnglite.so.$(ABI_MAJOR) \
+ -o libpnglite.so.$(ABI_MAJOR) -lz pnglite.c
override_dh_auto_clean:
- rm -f pnglite.o libpnglite.a
+ rm -f libpnglite.so.$(ABI_MAJOR)
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/pnglite.git
More information about the Pkg-games-commits
mailing list