PageRenderTime 56ms CodeModel.GetById 30ms app.highlight 21ms RepoModel.GetById 1ms app.codeStats 0ms

/tools/cross-build/cross.mk

http://ftk.googlecode.com/
Makefile | 163 lines | 145 code | 18 blank | 0 comment | 71 complexity | 1841c3020db6a8358d2c91d28774b5ae MD5 | raw file
  1all: check zlib png jpeg $(TSLIB) freetype $(CAIRO) libftk
  2all_clean:  zlib_clean png_clean jpeg_clean  tslib_clean freetype_clean libftk_clean
  3
  4all_dfb: check zlib png jpeg $(TSLIB) freetype directfb directfb_examples $(CAIRO) libftk
  5all_dfb_clean:  zlib_clean png_clean jpeg_clean tslib_clean freetype_clean directfb_clean directfb_examples_clean libftk_clean
  6
  7check:
  8	if [ ! -e packages ]; then mkdir packages;fi
  9
 10packages/zlib-1.2.5.tar.gz:
 11	cd packages && wget http://www.limodev.cn/ftk/zlib-1.2.5.tar.gz
 12zlib-1.2.5: packages/zlib-1.2.5.tar.gz
 13	tar xf packages/zlib-1.2.5.tar.gz
 14zlib: zlib-1.2.5
 15	export CC=$(TARGET_CC) PREFIX=$(PREFIX) && \
 16	cd zlib-1.2.5 && \
 17	./configure --prefix=$(PREFIX) --shared &&\
 18	make clean; make && make install DESTDIR=${STAGING} && \
 19	make install DESTDIR=/ 
 20zlib_clean:
 21	cd zlib-1.2.5 && make clean
 22
 23packages/libpng-1.4.7.tar.gz:
 24	cd packages && wget http://www.limodev.cn/ftk/libpng-1.4.7.tar.gz
 25libpng-1.4.7: packages/libpng-1.4.7.tar.gz
 26	tar xf packages/libpng-1.4.7.tar.gz
 27png: libpng-1.4.7
 28	mkdir libpng-1.4.7/$(ARCH); cd libpng-1.4.7/$(ARCH) && \
 29	../configure $(HOST_PARAM) --prefix=$(PREFIX)  &&\
 30	make clean; make && make install DESTDIR=${STAGING} && \
 31	make install DESTDIR=/ 
 32png_clean:
 33	rm -rf libpng-1.4.7/$(ARCH)
 34
 35packages/jpegsrc.v7.tar.gz:
 36	cd packages && wget http://www.limodev.cn/ftk//jpegsrc.v7.tar.gz
 37jpegsrc.v7: packages/jpegsrc.v7.tar.gz
 38	tar xf packages/jpegsrc.v7.tar.gz
 39jpeg: jpegsrc.v7
 40	mkdir jpeg-7/$(ARCH); cd jpeg-7/$(ARCH) && \
 41	../configure $(HOST_PARAM) --prefix=$(PREFIX)  &&\
 42	make clean; make && make install DESTDIR=${STAGING} && \
 43	make install DESTDIR=/ 
 44jpeg_clean:
 45	rm -rf jpeg-7/$(ARCH)
 46
 47packages/tslib-1.0.tar.bz2:
 48	cd packages && wget http://www.limodev.cn/ftk/tslib-1.0.tar.bz2
 49tslib-1.0: packages/tslib-1.0.tar.bz2
 50	tar xf packages/tslib-1.0.tar.bz2
 51tslib: tslib-1.0
 52	cd tslib-1.0 && ./autogen.sh; cd -;\
 53	mkdir tslib-1.0/$(ARCH); cd tslib-1.0/$(ARCH) && \
 54	CC=$(TARGET_CC) ../configure $(HOST_PARAM) --prefix=$(PREFIX) -sysconfdir=$(PREFIX)/etc  ac_cv_func_malloc_0_nonnull=yes &&\
 55	make clean; make && make install DESTDIR=${STAGING} && \
 56	make install DESTDIR=/ 
 57
 58tslib_clean:
 59	rm -rf tslib-1.0/$(ARCH)
 60tslib_source_clean:
 61	rm -rf tslib-1.0
 62
 63packages/freetype-2.3.9.tar.gz:
 64	cd packages && wget http://ftp.twaren.net/Unix/NonGNU/freetype/freetype-2.3.9.tar.gz
 65freetype-2.3.9: packages/freetype-2.3.9.tar.gz
 66	tar xf packages/freetype-2.3.9.tar.gz
 67freetype: freetype-2.3.9
 68	mkdir freetype-2.3.9/$(ARCH); cd freetype-2.3.9/$(ARCH) && \
 69	../configure $(HOST_PARAM) --prefix=$(PREFIX)  &&\
 70	make clean; make && make install DESTDIR=${STAGING} && \
 71	make install DESTDIR=/ 
 72freetype_clean:
 73	rm -rf freetype-2.3.9/$(ARCH)
 74
 75packages/DirectFB-1.2.9.tar.gz:
 76	cd packages && wget http://www.directfb.org/downloads/Core/DirectFB-1.2/DirectFB-1.2.9.tar.gz
 77DirectFB-1.2.9: packages/DirectFB-1.2.9.tar.gz
 78	tar xf packages/DirectFB-1.2.9.tar.gz
 79directfb: DirectFB-1.2.9
 80	mkdir DirectFB-1.2.9/$(ARCH); cd DirectFB-1.2.9/$(ARCH) && \
 81	../configure $(HOST_PARAM) --prefix=$(PREFIX) --with-inputdrivers="keyboard,linuxinput,tslib" --enable-unique --enable-freetype --enable-png --enable-jpeg --enable-zlib --enable-fbdev --enable-debug-support --with-gfxdrivers= &&\
 82	make clean; make && make install DESTDIR=${STAGING} && make install DESTDIR=/ 
 83directfb_clean:
 84	rm -rf DirectFB-1.2.9/$(ARCH)
 85
 86packages/DirectFB-examples-1.2.0.tar.gz:
 87	cd packages && wget http://www.directfb.org/downloads/Extras/DirectFB-examples-1.2.0.tar.gz
 88
 89DirectFB-examples-1.2.0: packages/DirectFB-examples-1.2.0.tar.gz
 90	tar xf packages/DirectFB-examples-1.2.0.tar.gz
 91directfb_examples:DirectFB-examples-1.2.0
 92	mkdir DirectFB-examples-1.2.0/$(ARCH); cd DirectFB-examples-1.2.0/$(ARCH) && \
 93	../configure $(HOST_PARAM) --prefix=$(PREFIX) && \
 94	make clean; make && make install DESTDIR=${STAGING} && make install DESTDIR=/
 95directfb_examples_clean:
 96	rm -rf DirectFB-examples-1.2.0/$(ARCH)
 97
 98packages/expat-2.0.1.tar.gz:
 99	cd packages && wget http://downloads.sourceforge.net/project/expat/expat/2.0.1/expat-2.0.1.tar.gz?use_mirror=nchc
100expat-2.0.1: packages/expat-2.0.1.tar.gz
101	tar xf packages/expat-2.0.1.tar.gz
102expat:expat-2.0.1
103	cd expat* && mkdir $(ARCH); cd $(ARCH) && \
104	../configure $(HOST_PARAM) --prefix=$(PREFIX) && \
105	make clean; make && make install DESTDIR=${STAGING} && \
106	make install DESTDIR=/ 
107expat_clean:
108	cd expat* && rm -fr $(ARCH)
109
110packages/fontconfig-2.8.0.tar.gz:
111	cd packages && wget http://www.fontconfig.org/release/fontconfig-2.8.0.tar.gz
112fontconfig-2.8.0:packages/fontconfig-2.8.0.tar.gz
113	tar xf packages/fontconfig-2.8.0.tar.gz
114fontconfig: fontconfig-2.8.0 expat 
115	cd fontconfig* && mkdir $(ARCH); cd $(ARCH) && \
116	../configure --disable-libxml2 --with-arch=$(ARCH)-linux $(HOST_PARAM) --prefix=$(PREFIX) && \
117	make clean; make && make install DESTDIR=${STAGING} && \
118	make install DESTDIR=/ 
119fontconfig_clean:
120	cd fontconfig* && rm -fr $(ARCH)
121
122packages/pixman-0.22.2.tar.gz:
123	cd packages && wget http://cairographics.org/releases/pixman-0.22.2.tar.gz
124pixman-0.22.2:packages/pixman-0.22.2.tar.gz
125	tar xf packages/pixman-0.22.2.tar.gz
126pixman:pixman-0.22.2
127	cd pixman* && mkdir $(ARCH); cd $(ARCH) && \
128	../configure --disable-gtk $(HOST_PARAM) --prefix=$(PREFIX) && \
129	make clean; make && make install DESTDIR=${STAGING} && \
130	make install DESTDIR=/ 
131pixman_clean:
132	cd pixman* && rm -fr $(ARCH)
133
134packages/cairo-1.10.2.tar.gz:
135	cd packages && wget http://cairographics.org/releases/cairo-1.10.2.tar.gz
136cairo-1.10.2:packages/cairo-1.10.2.tar.gz
137	tar xf packages/cairo-1.10.2.tar.gz
138cairo: cairo-1.10.2 pixman fontconfig
139	cd cairo* && mkdir $(ARCH); cd $(ARCH) && \
140	../configure  --enable-ft   --disable-svg  --disable-pdf  --disable-ps \
141	--disable-directfb  --disable-xlib  --disable-xlib-xrender --disable-gobject \
142	$(HOST_PARAM) --prefix=$(PREFIX) && \
143	make clean; make && make install DESTDIR=${STAGING} && \
144	make install DESTDIR=/ 
145cairo_clean:
146	cd cairo* && rm -fr $(ARCH)
147
148libftk:
149	cd ftk* && . ./autogen.sh; \
150	mkdir $(ARCH);  cd $(ARCH) && \
151	../configure $(FTK_CONF_OPTION) $(WITH_BACKEND) ac_cv_func_realloc_0_nonnull=yes ac_cv_func_malloc_0_nonnull=yes $(HOST_PARAM) --prefix=$(PREFIX)  &&\
152	make clean; make && make install DESTDIR=${STAGING} && \
153	make install DESTDIR=/ 
154libftk_clean:
155	cd ftk* && rm -rf $(ARCH)
156ftkc:
157	cd ftk* && cd $(ARCH) && \
158	make && make install DESTDIR=${STAGING} && \
159	make install DESTDIR=/ 
160libftk_clean:
161	cd ftk* && rm -rf $(ARCH)
162
163