summaryrefslogtreecommitdiffstats
path: root/debian
diff options
context:
space:
mode:
Diffstat (limited to 'debian')
-rw-r--r--debian/libgl1-mesa-dri.install2
-rw-r--r--debian/libgl1-mesa-glx.install2
-rw-r--r--debian/libgl1-mesa-swx11-dev.install3
-rw-r--r--debian/libgl1-mesa-swx11.install2
-rw-r--r--debian/libglu1-mesa-dev.install1
-rw-r--r--debian/libglu1-mesa.install2
-rw-r--r--debian/libosmesa6-dev.install4
-rw-r--r--debian/libosmesa6.install2
-rw-r--r--debian/patches/01_fix-makefile.patch15
-rw-r--r--debian/patches/series1
-rwxr-xr-xdebian/rules14
11 files changed, 41 insertions, 7 deletions
diff --git a/debian/libgl1-mesa-dri.install b/debian/libgl1-mesa-dri.install
index 55500c81209..f3e8ada53ac 100644
--- a/debian/libgl1-mesa-dri.install
+++ b/debian/libgl1-mesa-dri.install
@@ -1 +1 @@
-usr/lib/dri/*.so
+usr/libglx/dri/*.so usr/lib/dri
diff --git a/debian/libgl1-mesa-glx.install b/debian/libgl1-mesa-glx.install
index 3fc3ba6696e..270e569baa4 100644
--- a/debian/libgl1-mesa-glx.install
+++ b/debian/libgl1-mesa-glx.install
@@ -1 +1 @@
-usr/lib/libGL.so.1*
+usr/libglx/libGL.so.* usr/lib
diff --git a/debian/libgl1-mesa-swx11-dev.install b/debian/libgl1-mesa-swx11-dev.install
index e69de29bb2d..2258776adea 100644
--- a/debian/libgl1-mesa-swx11-dev.install
+++ b/debian/libgl1-mesa-swx11-dev.install
@@ -0,0 +1,3 @@
+usr/include/GL/glx*.h
+usr/lib/libGL.a
+usr/lib/libGL.so
diff --git a/debian/libgl1-mesa-swx11.install b/debian/libgl1-mesa-swx11.install
index e69de29bb2d..26237d51434 100644
--- a/debian/libgl1-mesa-swx11.install
+++ b/debian/libgl1-mesa-swx11.install
@@ -0,0 +1,2 @@
+usr/lib/libGL.so.*
+usr/lib/libOSMesa.*
diff --git a/debian/libglu1-mesa-dev.install b/debian/libglu1-mesa-dev.install
index abada7c1aec..78ac2b01eda 100644
--- a/debian/libglu1-mesa-dev.install
+++ b/debian/libglu1-mesa-dev.install
@@ -1,3 +1,4 @@
usr/include/GL/glu.h
usr/include/GL/glu_mangle.h
+usr/lib/libGLU.a
usr/lib/libGLU.so
diff --git a/debian/libglu1-mesa.install b/debian/libglu1-mesa.install
index d252083d81e..9ad0953c1ca 100644
--- a/debian/libglu1-mesa.install
+++ b/debian/libglu1-mesa.install
@@ -1 +1 @@
-usr/lib/libGLU.so.1*
+usr/lib/libGLU.so.*
diff --git a/debian/libosmesa6-dev.install b/debian/libosmesa6-dev.install
index e69de29bb2d..e92cc0d05bb 100644
--- a/debian/libosmesa6-dev.install
+++ b/debian/libosmesa6-dev.install
@@ -0,0 +1,4 @@
+usr/lib/libOSMesa16.a
+usr/lib/libOSMesa16.so
+usr/lib/libOSMesa32.a
+usr/lib/libOSMesa32.so
diff --git a/debian/libosmesa6.install b/debian/libosmesa6.install
index e69de29bb2d..dbf33f54a7d 100644
--- a/debian/libosmesa6.install
+++ b/debian/libosmesa6.install
@@ -0,0 +1,2 @@
+usr/lib/libOSMesa16.so.*
+usr/lib/libOSMesa32.so.*
diff --git a/debian/patches/01_fix-makefile.patch b/debian/patches/01_fix-makefile.patch
new file mode 100644
index 00000000000..f013c46e1c0
--- /dev/null
+++ b/debian/patches/01_fix-makefile.patch
@@ -0,0 +1,15 @@
+--- a/src/mesa/Makefile
++++ b/src/mesa/Makefile
+@@ -154,7 +154,11 @@
+ $(INSTALL) -d $(INSTALL_DIR)/include/GL
+ $(INSTALL) -d $(INSTALL_DIR)/$(LIB_DIR)
+ $(INSTALL) -m 644 $(TOP)/include/GL/*.h $(INSTALL_DIR)/include/GL
+- $(COPY_LIBS) $(TOP)/$(LIB_DIR)/libGL.* $(INSTALL_DIR)/$(LIB_DIR)
++ @if [ "${DRIVER_DIRS}" != "osmesa" ]; then \
++ $(COPY_LIBS) $(TOP)/$(LIB_DIR)/lib$(GL_LIB).* $(INSTALL_DIR)/$(LIB_DIR); \
++ else \
++ $(COPY_LIBS) $(TOP)/$(LIB_DIR)/lib$(OSMESA_LIB).* $(INSTALL_DIR)/$(LIB_DIR); \
++ fi
+ @if [ "${DRIVER_DIRS}" = "dri" ] ; then \
+ cd drivers/dri ; $(MAKE) install ; \
+ fi
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 00000000000..6840f95c944
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+01_fix-makefile.patch
diff --git a/debian/rules b/debian/rules
index 0b0e60f3438..966d25ed8b8 100755
--- a/debian/rules
+++ b/debian/rules
@@ -9,6 +9,9 @@
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
+QUILT_STAMPFN ?= debian/stamp/patch
+include /usr/share/quilt/quilt.make
+
CFLAGS = -Wall -g
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
CFLAGS += -O0
@@ -34,7 +37,8 @@ CONFIGS = debian \
debian-osmesa16 \
debian-osmesa16-static \
debian-osmesa32 \
- debian-osmesa32-static
+ debian-osmesa32-static \
+ debian-static
STAMP = $(STAMPDIR)/$(DEB_BUILD_GNU_TYPE)
BUILD_STAMPS = $(addprefix $(STAMP)-build-, $(CONFIGS))
@@ -44,7 +48,7 @@ debian/stamp:
dh_testdir
mkdir -p debian/stamp
-build: debian/stamp $(BUILD_STAMPS)
+build: debian/stamp patch $(BUILD_STAMPS)
$(STAMP)-build-%:
dh_testdir
mkdir -p $(DEB_BUILD_DIR)/$*
@@ -57,15 +61,17 @@ pre-install:
dh_testdir
dh_testroot
dh_clean -k --exclude ./Makefile.orig --exclude configs/CVS/Root.bak
+ rm -rf $(INSTALL_STAMPS)
dh_installdirs
install: build pre-install $(INSTALL_STAMPS)
-$(STAMP)-install-%:
+$(STAMP)-install-%: $(STAMP)-build-%
# Add here commands to install the package into debian/tmp
cd $(DEB_BUILD_DIR)/$* && $(MAKE) install INSTALL_DIR=$(CURDIR)/debian/tmp/usr
+ touch $@
-clean:
+clean: unpatch
dh_testdir
dh_testroot
rm -rf $(DEB_BUILD_DIR) debian/stamp