3 include /usr/share/cdbs/1/rules/debhelper.mk
4 include /usr/share/cdbs/1/class/autotools.mk
6 DEB_CONFIGURE_EXTRA_FLAGS := --enable-software-16-x11 \
7 --enable-software-x11 \
8 --disable-scale-smooth \
10 --enable-no-dither-mask \
11 --enable-small-dither-mask \
13 --disable-xrender-x11 \
14 --disable-image-loader-tiff \
15 --disable-image-loader-edb \
16 --disable-image-loader-gif \
17 --disable-image-loader-xpm \
18 --disable-image-loader-svg \
19 --disable-convert-yuv \
20 --disable-convert-8-rgb-332 \
21 --disable-convert-8-rgb-666 \
22 --disable-convert-8-rgb-232 \
23 --disable-convert-8-rgb-222 \
24 --disable-convert-8-rgb-221 \
25 --disable-convert-8-rgb-121 \
26 --disable-convert-8-rgb-111 \
27 --disable-convert-16-bgr-565 \
28 --disable-convert-16-rgb-555 \
29 --disable-convert-16-rgb-444 \
30 --disable-convert-16-rgb-ipq \
31 --disable-convert-24-rgb-888 \
32 --disable-convert-24-bgr-888 \
33 --disable-convert-32-rgb-8888 \
34 --disable-convert-32-rgbx-8888 \
35 --disable-convert-32-bgr-8888 \
36 --disable-convert-32-bgrx-8888 \
37 --disable-convert-32-rgb-rot-0 \
38 --disable-convert-32-rgb-rot-180 \
39 --disable-convert-32-rgb-rot-270 \
40 --disable-convert-32-rgb-rot-90 \
43 CFLAGS+=-I/usr/X11R6/include
45 DEB_BUILD_ARCH?=$(shell dpkg-architecture -qDEB_BUILD_ARCH)
47 ifeq ($(DEB_BUILD_ARCH),armel)
48 COMMON_CFLAGS=-DNDEBUG=1 -fomit-frame-pointer -O2 -ffast-math -funsafe-math-optimizations -fno-math-errno -fsingle-precision-constant
49 N770_CFLAGS=-mcpu=arm926ej-s
50 N8x0_CFLAGS=-mfpu=vfp -mfloat-abi=softfp -mcpu=arm1136jf-s
51 ifneq ($(DEB_BUILD_OPTIONS),)
52 ifneq (,$(findstring n8x0,$(DEB_BUILD_OPTIONS)))
53 SPECIFIC_CFLAGS=$(N8x0_CFLAGS)
55 ifneq (,$(findstring n770,$(DEB_BUILD_OPTIONS)))
56 SPECIFIC_CFLAGS=$(N770_CFLAGS)
60 ifeq ($(SPECIFIC_CFLAGS),)
61 ifeq (0,$(shell test -e /etc/osso_software_version; echo $$?))
62 SW_VERSION?=$(shell cat /etc/osso_software_version|cut -d_ -f2)
63 ifneq (,$(findstring $(SW_VERSION),OSSO1.1 2008SE DIABLO))
64 SPECIFIC_CFLAGS=$(N8x0_CFLAGS)
67 ifeq ($(SPECIFIC_CFLAGS),)
68 # Our last hope is to look at the value returned by `sb-conf current`
69 SB_CURRENT?=$(shell sb-conf current|cut -d_ -f1)
70 ifneq (,$(findstring $(SB_CURRENT),GREGALE BORA CHINOOK DIABLO))
71 ifeq ($(SB_CURRENT),GREGALE)
72 SPECIFIC_CFLAGS=$(N770_CFLAGS)
74 SPECIFIC_CFLAGS=$(N8x0_CFLAGS)
83 CFLAGS+=$(COMMON_CFLAGS) $(SPECIFIC_CFLAGS)