# Makefile # cairo-dfb added by CSS 5/4/2006 # This version of cairo is for use with the DirectFB layer # This is distinct from the "cairo" package originally in the BSP # WARNING - Adding both flavors of cairo to the BSP may not work. # The most recent version of the cairo libraries uses git instead of cvs # we are sticking with a snapshot from late April 2006 # change "autogen.sh.stale" to "autogen.sh" and rebuild to get more detail # CSS upgraded to the latest git version on 5/16/06 # used "git clone git://git.cairographics.org/git/cairo" to get source # The $VER below is still 'cvs' since the BSP harvest # script requires this special string # TBD Harvest needs to be cleaned up ... PACKAGE=cairo BASENAME=cairo SOURCE=cairo #VER=1.2.4 #ARCHIVE=$(TOP)/archive/$(PACKAGE)-$(VER)$(CVSDATE).tar.gz #SCM_URI:="git://anongit.freedesktop.org/git/cairo\#$(VER)" #SOURCE_BASE:=$(shell $(TOP)/scripts/bh-scmfetch -b $(SCM_URI)) #CONFIG:=./autogen.sh VER=1.2.4 ARCHIVE=$(TOP)/archive/$(PACKAGE)-$(VER).tar.gz SCM_URI:="http://cairographics.org/releases/$(SOURCE)-$(VER).tar.gz" SOURCE_BASE:=$(shell $(TOP)/scripts/bh-scmfetch -b $(SCM_URI)) #CONFIG:=./autogen.sh CONFIG:=aclocal ; libtoolize --force ; autoheader ; automake ; autoconf ; ./configure #CONFIG:=./configure export PKG_CONFIG_PATH=$(TOOLS_TARGET)/usr/lib/pkgconfig D=$(TOP)/download P=$(TOP)/packages/$(PACKAGE) B=$(TOP)/build/$(PACKAGE) X=$B/$(SOURCE) source_s1=$(SOURCE_BASE).tar.gz #url_s1=$(MIRROR_SOURCEFORGE)/expat/expat-1.95.8.tar.gz #CSS change to GIT download_s1=$D/$(source_s1) download_s1=$D/$(source_s1) SOURCES:=s1 TARGETS=$(ARCHIVE) tools FORCE ifeq ($(TOP),) TARGETS=notop endif #start: # echo scm_uri $(SCM_URI) # echo ver $(VER) # echo source_base $(SOURCE_BASE) # echo source_base $(shell $(TOP)/scripts/bh-scmfetch -v -n $(SCM_URI)) .PHONY: all all: $(TARGETS) .PHONY: notop notop: $(error TOP macro must be set) .SECONDARY: $(download_s1) $(SOURCES) prepare configure build install $(download_s1): s1 $(SOURCES): $(TOP)/scripts/bh-scmfetch $(SCM_URI) prepare: $(download_s1) @if [ -d $X ] ; then rm -rf $X ; fi @bh-unpack $(download_s1) ln -s $(SOURCE_BASE) $X # ( cd $X ; cat $P/companion_font.patch | patch -p1 ) touch $@ configure: prepare ( cd $X; \ export PATH=$(TOOLS_TARGET)/usr/bin:$(PATH) ; \ export CC=$(CROSS_COMPILE)gcc ; \ export CXX=$(CROSS_COMPILE)g++ ; \ export AR="$(CROSS_COMPILE)ar" ; \ export RANLIB=$(CROSS_COMPILE)ranlib ; \ export STRIP=$(CROSS_COMPILE)strip ; \ export CFLAGS="-I$(TOOLS_TARGET)/usr/include -I$(TOOLS_TARGET)/usr/include/glib-2.0"; \ export LDFLAGS="-L$(TOOLS_TARGET)/usr/lib -Wl,-rpath,$(TOOLS_TARGET)/usr/lib"; \ export PKG_CONFIG_PATH=$(PKG_CONFIG_PATH) ; \ export ax_cv_c_float_words_bigendian=no; \ $(CONFIG)\ --host=arm-linux\ --without-x\ --disable-directfb\ --disable-xlib\ --disable-xcb\ --disable-win32\ --disable-glitz\ --disable-svg\ --disable-ps\ --disable-pdf\ --disable-some-floating-point\ --prefix=/usr ) touch $@ #CSS - Removed from autogen args 5/16/06 --disable-ps\ #CSS - Removed from autogen args 5/16/06 --disable-pdf\ build: configure $(MAKE) -C $X touch $@ install: build if [ -d $B/root ] ; \ then rm -rf $B/root ; fi fakeroot $(MAKE) -C $X DESTDIR=$B/root install touch $@ $(ARCHIVE): install fakeroot tar zcf $(ARCHIVE) -C $B/root . tools: $(ARCHIVE) @tar zmxf $(ARCHIVE) -C $(TOOLS_TARGET) touch $@ cleanup: -rm -rf $X FORCE: @true