Hello,

I would like to link libfreetype statically in the navit package. Navit uses 
the autoconf build system. For details see http://wiki.maemo.org/Navit

Can anybody tell, what is the right way in a debian/rules file to statically 
link libfreetype (debian/rules for navit is attached) which is compiled into a 
custom directory /opt/selfcompiled/libfreetype-2.3.11 ?

Thanks,
Rainer

-- 
Rainer Dorsch
Lärchenstr. 6
D-72135 Dettenhausen
07157-734133
email: rdor...@web.de
jabber: rdor...@jabber.org
GPG Fingerprint: 5966 C54C 2B3C 42CC 1F4F  8F59 E3A8 C538 7519 141E
Full GPG key: http://pgp.mit.edu/
#!/usr/bin/make -f

# Uncomment this to turn on verbose mode. 
#export DH_VERBOSE=1

include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/autotools.mk

DEB_DESTDIR = $(CURDIR)/debian/tmp

#let's help configure to figure out our host/build system
DEB_HOST_ARCH   ?= $(shell dpkg-architecture -qDEB_HOST_ARCH)
DEB_HOST_GNU_TYPE   ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
DEB_BUILD_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
ifeq ($(DEB_BUILD_GNU_TYPE), $(DEB_HOST_GNU_TYPE))
  DEB_CONFIGURE_EXTRA_FLAGS += --build $(DEB_HOST_GNU_TYPE)
else
  DEB_CONFIGURE_EXTRA_FLAGS += --build $(DEB_BUILD_GNU_TYPE) --host $(DEB_HOST_GNU_TYPE)
endif

DEB_CONFIGURE_EXTRA_FLAGS += --prefix=/opt/navit

# scale all gui icons
DEB_CONFIGURE_EXTRA_FLAGS += --enable-svg2png-scaling="32 48 64" \
                             --enable-svg2png-scaling-flag="16 24 32" \
                             --enable-svg2png-scaling-nav="16 32 48 64"

# Force svg2png conversion using rsvg-convert since it is the most reliable
# ATM
DEB_CONFIGURE_EXTRA_FLAGS += --with-svg2png-use-rsvg-convert

# Enable GUIs we want
DEB_CONFIGURE_EXTRA_FLAGS += --enable-gui-internal \
	     --enable-hildon \
	     --disable-gui-sdl \
	     --enable-gui-qml

# Disable python binding
DEB_CONFIGURE_EXTRA_FLAGS += --disable-binding-python

# Broken switches
# gd (run fails)
DEB_CONFIGURE_EXTRA_FLAGS += --disable-graphics-gd --disable-graphics-sdl

# don't build the samplemap - we don't want to download
# stuff while building...
DEB_CONFIGURE_EXTRA_FLAGS += --disable-samplemap

# Disable garmin
DEB_CONFIGURE_EXTRA_FLAGS += --disable-garmin

# no gpsd and  no gypsy-lib in maemo
DEB_CONFIGURE_EXTRA_FLAGS += --disable-vehicle-gpsd \
             --enable-vehicle-gypsy \
             --enable-vehicle-maemo

# Avoid floating point calculation for armel
ifeq ($(DEB_HOST_ARCH), armel)
  DEB_CONFIGURE_EXTRA_FLAGS += --enable-avoid-float
endif

# Enable maps cache
DEB_CONFIGURE_EXTRA_FLAGS +=  --enable-cache-size=10485760

#let's take care of optimization + debug builds
CFLAGS += -Wall -g
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
        CFLAGS += -O0
else
        CFLAGS += -O2
endif

post-patches::
		AUTOMAKE=automake-1.10 ACLOCAL=aclocal-1.10  autoreconf --install -I m4

clean::
	# Add here commands to clean up after the build process.
	find $(CURDIR) -name Makefile.in -print0 | xargs -0 rm -f
	find $(CURDIR)/intl -mindepth 1 -name VERSION -o -type f -print0 | xargs -0 rm -f
	find $(CURDIR)/po -mindepth 1 -name '*.po.in' -o -name Makefile.am -o -print0 | xargs -0 rm -rf
	find $(CURDIR) -name .libs -type d -print0 | xargs -0 rm -rf
	find $(CURDIR) -name .deps -type d -print0 | xargs -0 rm -rf
	rm -f ABOUT-NLS INSTALL aclocal.m4 compile config.guess \
	      config.h.in config.rpath config.sub configure depcomp \
	      install-sh missing mkinstalldirs ltmain.sh
	rm -rf autom4te.cache m4



Attachment: signature.asc
Description: This is a digitally signed message part.

_______________________________________________
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers

Reply via email to