summaryrefslogtreecommitdiff
path: root/debian/scripts/choose-configs
blob: 1ad21fc6a7d81216294cd7c1be5ff6b4c6c9507c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# Script to choose which configurations are to be built depending on the value
# of the DEB_BUILD_ARCH variable.
#
# Copyright © 2006 Thierry Reding <thierry@gilfi.de>

##############################################################################
## architecture-specific configurations ######################################

# choose an architecture-specific build of swx11 and GLU if a matching
# configuration exists
#ifneq ($(wildcard configs/debian-swx11+glu-$(DEB_BUILD_ARCH)),)
#	SWX11_GLU_CONFIGS := debian-swx11+glu-$(DEB_BUILD_ARCH)
#else
#	SWX11_GLU_CONFIGS := debian-swx11+glu-any
#endif

# same for static builds
#ifneq ($(wildcard configs/debian-swx11+glu-static-$(DEB_BUILD_ARCH)),)
#	SWX11_GLU_CONFIGS += debian-swx11+glu-static-$(DEB_BUILD_ARCH)
#else
#	SWX11_GLU_CONFIGS += debian-swx11+glu-static-any
#endif

SWX11_GLU_CONFIGS := swx11+glu swx11+glu-static

# and for the GLX/DRI-enabled libGL
ifneq ($(wildcard configs/debian-indirect-$(DEB_BUILD_ARCH)),)
	DRI_CONFIGS := debian-indirect-$(DEB_BUILD_ARCH)
else
  ifneq ($(wildcard configs/debian-dri-$(DEB_BUILD_ARCH)),)
	DRI_CONFIGS := debian-dri-$(DEB_BUILD_ARCH)
  else
	DRI_CONFIGS := debian-dri-any
  endif
endif

##############################################################################
## CPU-optimized configurations ##############################################

ifneq (,$(filter $(DEB_BUILD_ARCH), i386 kfreebsd-i386)) 
	SWX11_GLU_CONFIGS += swx11+glu-i386-i686
#	DRI_CONFIGS += debian-dri-i386-i686
endif

#ifeq ($(DEB_BUILD_ARCH), alpha)
#	SWX11_GLU_CONFIGS += debian-swx11+glu-alpha-ev5
#endif

#ifeq ($(DEB_BUILD_ARCH), powerpc)
#	SWX11_GLU_CONFIGS += debian-swx11+glu-powerpc-603
#endif

#ifeq ($(DEB_BUILD_ARCH), sparc)
#	SWX11_GLU_CONFIGS += debian-swx11+glu-sparc-ultrasparc
#endif

# vim: ft=make