summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSiggi Langauf <siggi@users.sourceforge.net>2002-06-04 13:21:57 +0000
committerSiggi Langauf <siggi@users.sourceforge.net>2002-06-04 13:21:57 +0000
commit12360bf25fdcc4876e58bc218947666643b2ec07 (patch)
tree1eea7978488cd2757ea5dd8d7c865ac67e7ad0e1
parent121e59d7db81a58e04b2a09d22a7e132a957d0a2 (diff)
downloadxine-lib-12360bf25fdcc4876e58bc218947666643b2ec07.tar.gz
xine-lib-12360bf25fdcc4876e58bc218947666643b2ec07.tar.bz2
0.9.10 Debian stuff
CVS patchset: 2012 CVS date: 2002/06/04 13:21:57
-rw-r--r--debian/changelog7
-rwxr-xr-xdebian/rules46
2 files changed, 48 insertions, 5 deletions
diff --git a/debian/changelog b/debian/changelog
index aa6b06848..e7e08e4ea 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+xine-lib (0.9.10-2) unstable; urgency=high
+
+ * disabled machine specific optimizations, so autobuilders will
+ build packages than run on their whole processor family (closes: #148414)
+
+ -- Siggi Langauf <siggi@debian.org> Wed, 29 May 2002 10:06:09 +0200
+
xine-lib (0.9.10-1) unstable; urgency=low
* new upstream release
diff --git a/debian/rules b/debian/rules
index 6ad008f01..e20e0e59f 100755
--- a/debian/rules
+++ b/debian/rules
@@ -9,19 +9,55 @@
# This is the debhelper compatability version to use.
export DH_COMPAT=2
-# shared library versions, option 1
-#version=0.5.0
-#major=0
-# option 2, assuming created lib in src/xine-engine/.libs/dlibxine.so.<version>
+# assuming created lib in src/xine-engine/.libs/libxine.so.<version>
version=`ls src/xine-engine/.libs/libxine*.so.* | \
awk '{if (match($$0,/[0-9]+\.[0-9]+\.[0-9]+$$/)) print substr($$0,RSTART)}'`
major=`ls src/xine-engine/.libs/libxine*.so.* | \
awk '{if (match($$0,/\.so\.[0-9]+$$/)) print substr($$0,RSTART+4)}'`
+# These are used for cross-compiling and for saving the configure script
+# from having to guess our platform (since we know it already)
+DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
+DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
+
+
+ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
+ CFLAGS += -g
+endif
+INSTALL_TARGET := install
+BUILD_TARGET := all
+ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
+ INSTALL_TARGET := install-debug
+ BUILD_TARGET := debug
+endif
+
+# the "optimize" flag disables compatibility hacks
+ifeq (,$(findstring optimize,$(DEB_BUILD_OPTIONS)))
+ $(warning trying to disable machine-specific optimizations)
+ $(warning add 'optimize' to DEB_BUILD_OPTIONS to enable them)
+ DEB_HOST_GNU_TYPE := \
+ $(sehll echo $(DEB_HOST_GNU_TYPE)|sed -e 's/^alphaev56/alpha/')
+ DEB_BUILD_GNU_TYPE := \
+ $(shell echo $(DEB_BUILD_GNU_TYPE)|sed -e 's/^alphaev56/alpha/')
+ #on intel architectures, xine probes CPU specific optimizations on runtime
+ DEB_HOST_GNU_TYPE := \
+ $(shell echo $(DEB_HOST_GNU_TYPE)|sed -e 's/^i.86/i686/')
+ DEB_BUILD_GNU_TYPE := \
+ $(shell echo $(DEB_BUILD_GNU_TYPE)|sed -e 's/^i.86/i686/')
+ ifneq ($DEB_HOST_GNU_TYPE,$DEB_BUILD_GNU_TYPE)
+ $(warning WARNING: cross compiling is not supported by xine)
+ $(warning using DEB_BUILD_GNU_TYPE = $(DEB_BUILD_GNU_TYPE))
+ $(warning ignoring DEB_HOST_GNU_TYPE = $(DEB_HOST_GNU_TYPE))
+ DEB_HOST_GNU_TYPE := $(DEB_BUILD_GNU_TYPE)
+ endif
+endif
+
+
configure: configure-stamp
configure-stamp:
dh_testdir
- ./configure --prefix=/usr --mandir=\$${prefix}/share/man
+ ./configure --prefix=/usr --mandir=\$${prefix}/share/man \
+ --host=$(DEB_HOST_GNU_TYPE)
touch configure-stamp
build: configure-stamp build-stamp