diff options
author | Thierry Reding <[email protected]> | 2006-10-16 08:58:05 +0000 |
---|---|---|
committer | Thierry Reding <[email protected]> | 2006-10-16 08:58:05 +0000 |
commit | 55cf480c0b017e9ac7b1792cad64d89edcbe83ec (patch) | |
tree | 89c18dafaa2bedcc32526e7853406ccc2e946d47 /debian/rules | |
parent | 84db6912f0866a2e3e4255001024ec2de78d7d27 (diff) |
Drop the libgl1-mesa-swx11-dbg package until there's a decision as to whether
it is really needed.
Allow more than one type of optimization libraries to be built for any given
architecture. Currently optimization configurations are provided for i386
[i686], alpha [ev5], amd64, powerpc [603], ppc64 and sparc [ultrasparc].
However, only i686 and amd64 are enabled for now for safety.
Add the libgl1-mesa-swx11-i686 for i686 optimized libraries.
Drop the debian-common configuration because it is no longer used.
Don't build libGLU in all configurations, only when needed.
Diffstat (limited to 'debian/rules')
-rwxr-xr-x | debian/rules | 48 |
1 files changed, 37 insertions, 11 deletions
diff --git a/debian/rules b/debian/rules index b3b1e133ba4..c0b75b16511 100755 --- a/debian/rules +++ b/debian/rules @@ -1,10 +1,6 @@ #!/usr/bin/make -f -# -*- makefile -*- -# Sample debian/rules that uses debhelper. -# This file was originally written by Joey Hess and Craig Small. -# As a special exception, when this file is copied by dh-make into a -# dh-make output file, you may use that output file without restriction. -# This special exception was added by Craig Small in version 0.37 of dh-make. +# debian/rules for the Debian mesa package +# Copyright © 2006 Thierry Reding <[email protected]> # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 @@ -31,8 +27,7 @@ DEB_BUILD_DIR ?= $(CURDIR)/obj-$(DEB_BUILD_GNU_TYPE) export DEB_BUILD_ARCH # build the following configurations -CONFIGS = debian \ - debian-arch \ +CONFIGS = debian-swx11+glu \ debian-dri-arch \ debian-osmesa16 \ debian-osmesa16-static \ @@ -40,6 +35,36 @@ CONFIGS = debian \ debian-osmesa32-static \ debian-static +# additional configurations optimized for CPU's supported by the build +# architecture +ifeq ($(DEB_BUILD_ARCH), i386) + CONFIGS += debian-i386-i686 +endif + +#ifeq ($(DEB_BUILD_ARCH), alpha) +# CONFIGS += debian-alpha-ev5 +#endif + +ifeq ($(DEB_BUILD_ARCH), amd64) + CONFIGS += debian-amd64 +endif + +#ifeq ($(DEB_BUILD_ARCH), powerpc) +# CONFIGS += debian-powerpc-603 +#endif + +#ifeq ($(DEB_BUILD_ARCH), ppc64) +# CONFIGS += debian-ppc64 +#endif + +#ifeq ($(DEB_BUILD_ARCH), sparc) +# CONFIGS += debian-sparc-ultrasparc +#endif + +# Use the following to automatically build all optimized configurations +# available for the build architecture. Use with caution =) +#CONFIGS += $(subst configs/,,$(wildcard configs/debian-$(DEB_BUILD_ARCH)*)) + STAMP = $(STAMP_DIR)/$(DEB_BUILD_GNU_TYPE) BUILD_STAMPS = $(addprefix $(STAMP)-build-, $(CONFIGS)) INSTALL_STAMPS = $(addprefix $(STAMP)-install-, $(CONFIGS)) @@ -50,7 +75,9 @@ $(STAMP_DIR): $(QUILT_STAMPFN): $(STAMP_DIR) + build: $(BUILD_STAMPS) + $(STAMP)-build-%: patch dh_testdir mkdir -p $(DEB_BUILD_DIR)/$* @@ -65,9 +92,8 @@ pre-install: 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) +install: pre-install $(INSTALL_STAMPS) $(STAMP)-install-%: $(STAMP)-build-% # Add here commands to install the package into debian/tmp @@ -77,8 +103,8 @@ $(STAMP)-install-%: $(STAMP)-build-% clean: unpatch dh_testdir dh_testroot - rm -rf $(DEB_BUILD_DIR) $(STAMP_DIR) dh_clean --exclude ./Makefile.orig --exclude configs/CVS/Root.bak + rm -rf $(DEB_BUILD_DIR) $(STAMP_DIR) # Build architecture-independent files here. binary-indep: build install |