r2322 - packages/trunk/enet/debian
Gonéri Le Bouder
goneri-guest at alioth.debian.org
Sun Jan 14 01:25:38 CET 2007
Author: goneri-guest
Date: 2007-01-14 01:25:37 +0100 (Sun, 14 Jan 2007)
New Revision: 2322
Modified:
packages/trunk/enet/debian/changelog
packages/trunk/enet/debian/control
packages/trunk/enet/debian/rules
Log:
NOT YET FINISHED: create a shared lib to respect Debian policy
Modified: packages/trunk/enet/debian/changelog
===================================================================
--- packages/trunk/enet/debian/changelog 2007-01-13 23:15:54 UTC (rev 2321)
+++ packages/trunk/enet/debian/changelog 2007-01-14 00:25:37 UTC (rev 2322)
@@ -1,6 +1,7 @@
enet (1.0-3) UNRELEASED; urgency=low
* NOT RELEASED YET
+ * NOT YET FINISHED: create a shared lib to respect Debian policy
-- Alexander Schmehl <alex at schmehl.info> Mon, 4 Sep 2006 10:38:52 +0200
Modified: packages/trunk/enet/debian/control
===================================================================
--- packages/trunk/enet/debian/control 2007-01-13 23:15:54 UTC (rev 2321)
+++ packages/trunk/enet/debian/control 2007-01-14 00:25:37 UTC (rev 2322)
@@ -6,7 +6,22 @@
Build-Depends: debhelper (>= 5.0.0)
Standards-Version: 3.7.2
-Package: libenet-dev
+Package: libenet1
+Section: libs
+Architecture: any
+Description: devel files for libenet, a UDP networking library
+ ENet's purpose is to provide a relatively thin, simple and robust network
+ communication layer on top of UDP (User Datagram Protocol). The primary
+ feature it provides is optional reliable, in-order delivery of packets.
+ .
+ ENet is NOT intended to be a general purpose high level networking library
+ that handles authentication, lobbying, server discovery, compression,
+ encryption and other high level, often application level or dependent tasks.
+ .
+ Homepage http://enet.cubik.org
+
+Package: libenet1-dev
+Depends: libenet1
Replaces: libenet
Conflicts: libenet
Section: libdevel
Modified: packages/trunk/enet/debian/rules
===================================================================
--- packages/trunk/enet/debian/rules 2007-01-13 23:15:54 UTC (rev 2321)
+++ packages/trunk/enet/debian/rules 2007-01-14 00:25:37 UTC (rev 2322)
@@ -3,7 +3,7 @@
DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
-CFLAGS = -Wall -g
+CFLAGS = -Wall -g -fPIC
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
CFLAGS += -O0
@@ -22,6 +22,9 @@
dh_testdir
$(MAKE)
+ # create the shared lib
+ gcc -Wl,-soname,libenet.so.1 -shared -o libenet.so.1 *.o
+ ln -s libenet.so.1 libenet.so.1.0
touch build-stamp
@@ -37,8 +40,8 @@
ifneq "$(wildcard /usr/share/misc/config.guess)" ""
cp -f /usr/share/misc/config.guess config.guess
endif
+ rm -rf libenet.so.* debian/libenet1 debian/libenet1-1
-
dh_clean
install: build
@@ -47,7 +50,11 @@
dh_clean -k
dh_installdirs
- $(MAKE) install DESTDIR=$(CURDIR)/debian/libenet-dev
+ $(MAKE) install DESTDIR=$(CURDIR)/debian/libenet1-dev
+ mkdir -p $(CURDIR)/debian/libenet1/usr/lib
+ cp libenet.so* $(CURDIR)/debian/libenet1/usr/lib
+# cd $(CURDIR)/debian/libenet1/ ; ln -s libenet.so.1.0 usr/lib/libenet.so.1
+# ln -s $(CURDIR)/debian/libenet1/libenet.so.1.0 usr/lib/libenet.so.1
binary-indep: build install
binary-arch: build install
More information about the Pkg-games-commits
mailing list