4 #ROOT_DIR=/Users/darco/Projects/GTK
6 PREFIX_DIR=$(ROOT_DIR)/output
7 PACKAGETMP_DIR=$(ROOT_DIR)/pkg_out
11 GETTEXT_DIR=$(ROOT_DIR)/gettext-$(GETTEXT_VER)
12 GETTEXT_DL=http://mirrors.kernel.org/gnu/gettext/gettext-$(GETTEXT_VER).tar.gz
15 LIBICONV_DIR=$(ROOT_DIR)/libiconv-$(LIBICONV_VER)
16 LIBICONV_DL=http://mirrors.kernel.org/gnu/libiconv/libiconv-$(GETTEXT_VER).tar.gz
20 GLIB_DIR=$(ROOT_DIR)/glib-$(GLIB_VER)
21 GLIB_DL=http://ftp.gtk.org/pub/gtk/v2.8/glib-$(GLIB_VER).tar.gz
25 PANGO_DIR=$(ROOT_DIR)/pango-$(PANGO_VER)
26 PANGO_DL=http://ftp.gtk.org/pub/gtk/v2.8/pango-$(PANGO_VER).tar.gz
29 CAIRO_DIR=$(ROOT_DIR)/cairo-$(CAIRO_VER)
30 CAIRO_DL=http://cairographics.org/releases/cairo-$(CAIRO_VER).tar.gz
34 ATK_DIR=$(ROOT_DIR)/atk-$(ATK_VER)
35 ATK_DL=http://ftp.gtk.org/pub/gtk/v2.8/atk-$(ATK_VER).tar.gz
39 GTK_DIR=$(ROOT_DIR)/gtk+-$(GTK_VER)
40 GTK_DL=http://ftp.gtk.org/pub/gtk/v2.8/gtk+-$(GTK_VER).tar.gz
43 LIBPNG_DIR=$(ROOT_DIR)/libpng-$(LIBPNG_VER)
46 LIBJPEG_DIR=$(ROOT_DIR)/jpeg-$(LIBJPEG_VER)
49 LIBTIFF_DIR=$(ROOT_DIR)/tiff-v$(LIBTIFF_VER)
51 LIBSIGC_DIR=$(ROOT_DIR)/libsigc++-1.2.4
52 #LIBSIGC2_DIR=$(ROOT_DIR)/libsigc++-2.0.5
55 LIBSIGC2_DIR=$(ROOT_DIR)/libsigc++-$(LIBSIGC2_VER)
56 LIBSIGC2_DL=http://ftp.gnome.org/pub/GNOME/sources/libsigc++/2.0/libsigc++-$(LIBSIGC2_VER).tar.gz
61 GLIBMM_DIR=$(ROOT_DIR)/glibmm-$(GLIBMM_VER)
62 GLIBMM_DL=http://ftp.gnome.org/pub/GNOME/sources/glibmm/2.8/glibmm-$(GLIBMM_VER).tar.gz
66 GTKMM_DIR=$(ROOT_DIR)/gtkmm-$(GTKMM_VER)
67 GTKMM_DL=http://ftp.gnome.org/pub/GNOME/sources/gtkmm/2.8/gtkmm-$(GTKMM_VER).tar.gz
70 LIBXML2_DIR=$(ROOT_DIR)/libxml2-$(LIBXML2_VER)
73 LIBXMLPP_DIR=$(ROOT_DIR)/libxml++-$(LIBXMLPP_VER)
74 LIBXMLPP_DL=http://ftp.gnome.org/pub/GNOME/sources/libxml++/1.0/libxml++-$(LIBXMLPP_VER).tar.gz
78 FONTCONFIG_DIR=$(ROOT_DIR)/fontconfig-$(FONTCONFIG_VER)
80 INSTALL_PREFIX=/usr/local
84 TEMP_FILE=$(ROOT_DIR)/tempfile.xxx
85 PKG_CONFIG_PATH=$(PREFIX_DIR)/lib/pkgconfig:/usr/X11R6/lib/pkgconfig:/usr/lib/pkgconfig
86 PREFIX_SYMBOL=@PREFIX@
88 #export DYLD_LIBRARY_PATH=$(PREFIX_DIR)/lib:/lib:/usr/local/lib:/lib:/usr/lib
90 export LD_PREBIND_ALLOW_OVERLAP=1
91 export LD_PREBIND_ALL_TWOLEVEL_MODULES=1
92 export MACOSX_DEPLOYMENT_TARGET=10.4
96 #MAKE=export MACOSX_DEPLOYMENT_TARGET=$(MACOSX_DEPLOYMENT_TARGET) && make
114 ARCHFLAGS=-arch i386 -arch ppc
116 OFLAGS=-faltivec -maltivec
119 CFLAGS=-I$(PREFIX_DIR)/include -no-cpp-precomp -prebind $(OFLAGS) $(ARCHFLAGS)
126 #LDFLAGS=-L$(PREFIX_DIR)/lib -prebind -flat_namespace -fcoalesce-templates
127 #LDFLAGS=-L$(PREFIX_DIR)/lib -prebind -prebind_allow_overlap -prebind_all_twolevel_modules -twolevel_namespace -undefined dynamic_lookup
128 LDFLAGS=-L$(PREFIX_DIR)/lib -prebind -prebind_all_twolevel_modules -twolevel_namespace -bind_at_load -undefined dynamic_lookup
131 DESTDIR_FIX=for filename in `$(FIND) . | $(GREP) Makefile | $(GREP) -v -e Makefile.am -e Makefile.in` ; do { echo Patching $$filename ... && sed 's:LIBDIR=\\"$$(libdir)\\":LIBDIR=\\"$(INSTALL_PREFIX)/lib\\":g;s:DATA_PREFIX=\\"$$(prefix)\\":DATA_PREFIX=\\"$(INSTALL_PREFIX)\\":g; s:LOCALEDIR=\\"$$(localedir)\\":LOCALEDIR=\\"$(INSTALL_PREFIX)/share/locale\\":g; s:LOCALE_ALIAS_PATH=\\"$$(aliaspath)\\":LOCALE_ALIAS_PATH=\\"$(INSTALL_PREFIX)/share/locale\\":g;s:SYSCONFDIR=\\"$$(sysconfdir)\\":SYSCONFDIR=\\"$(INSTALL_PREFIX)/etc\\":g;' < $$filename > $(TEMP_FILE) && cp $(TEMP_FILE) $$filename ; } ; done ;
134 CONFIG_FLAGS=--prefix=$(PREFIX_DIR) --disable-static --enable-shared "CC=$(CC)" "CXX=$(CXX)" "CXXCPP=$(CXXCPP)" "CPP=$(CPP)" "PKG_CONFIG_PATH=$(PKG_CONFIG_PATH)" "LDFLAGS=$(LDFLAGS)" "MACOSX_DEPLOYMENT_TARGET=$(MACOSX_DEPLOYMENT_TARGET)"
137 all: gettext glib libpng libjpeg cairo pango atk gtk libsigc2 glibmm gtkmm libxmlpp
139 packages: gettext-pkg glib-pkg pango-pkg atk-pkg libpng-pkg libjpeg-pkg cairo-pkg gtk-pkg libsigc2-pkg glibmm-pkg gtkmm-pkg libxmlpp-pkg
141 clean: gettext-clean glib-clean pango-clean atk-clean libpng-clean libjpeg-clean cairo-clean gtk-clean libsigc-clean libsigc2-clean glibmm-clean gtkmm-clean libxmlpp-clean
148 $(STRIP) $(PREFIX_DIR)/lib/*.dylib
154 sudo for file in "'`'"cat bin/uninstall_gtk_list.txt"'`'"\n\
159 " > $(PREFIX_DIR)/bin/uninstall_gtk
160 $(CHMOD) +x $(PREFIX_DIR)/bin/uninstall_gtk
161 cd $(PREFIX_DIR) && find . | tac > bin/uninstall_gtk_list.txt
163 #PACKAGE_PREP="for filename in `find . | $(GREP) -e '\.la' -e '\.pc' -e '[-]config' -e '\.loaders' -e '\.immodules'` ; do [ -d $$filename ] || { $(GREP) -l '$(ROOT_DIR)' $$filename && $(SED) 's;$(PREFIX_DIR);@PREFIX@;g;s:-L$(ROOT_DIR)/gettext-0.11.5/intl::g;' < $$filename > $(TEMP_FILE) && $(CP) $(TEMP_FILE) $$filename ;} ; done; $(RM) $(TEMP_FILE)"
165 PACKAGE_PREP=for filename in `find | $(GREP) -e '\.la' -e '\.pc' -e '[-]config' -e '\.loaders' -e '\.immodules'` ; do [ -d $$filename ] || { $(SED) 's;$(PACKAGETMP_DIR);@PREFIX@;g;s;$(PREFIX_DIR);@PREFIX@;g;s:-L$(ROOT_DIR)/gettext-0.11.5/intl::g;' < $$filename > $(TEMP_FILE) && $(CP) $(TEMP_FILE) $$filename && echo $$filename ;} ; done; $(RM) $(TEMP_FILE) ; $(RM) -R share/doc
167 package-prep: setup-uninstall
168 -cd $(PREFIX_DIR) && $(PACKAGE_PREP)
169 # -cd $(PREFIX_DIR) && for filename in `$(CAT) $(PREFIX_DIR)/bin/uninstall_gtk_list.txt | $(GREP) -e "\.la" -e "\.pc" -e -config -e "\.loaders" -e "\.immodules"` ;\
170 # do [ -d $$filename ] || { \
171 # $(GREP) -l "$(ROOT_DIR)" $$filename && \
172 # $(SED) "s;$(PREFIX_DIR);@PREFIX@;g;s:-L$(ROOT_DIR)/gettext-0.11.5/intl::g;" \
173 # < $$filename > $(TEMP_FILE) && \
174 # $(CP) $(TEMP_FILE) $$filename \
180 $(PACKAGE) $(PREFIX_DIR) gtkmm.info -r PkgResource -bzip
181 # -[ -d gtkmm.xpm ] && mv gtkmm.xpm gtkmm.pkg
183 gettext: gettext-$(GETTEXT_VER)
184 cd $(GETTEXT_DIR) && ./configure $(CONFIG_FLAGS) "LDFLAGS=$(LDFLAGS) -L$(GETTEXT_DIR)/intl" --with-libiconv-prefix=/usr/lib
185 # $(SED) "s/__USER_LABEL_PREFIX__/_/g;" < $(GETTEXT_DIR)/intl/libgnuintl.h > $(TEMP_FILE)
186 # $(CP) $(TEMP_FILE) $(GETTEXT_DIR)/intl/libgnuintl.h
188 #cd $(GETTEXT_DIR) && $(DESTDIR_FIX)
189 $(MAKE) -C $(GETTEXT_DIR)
190 $(MAKE) -C $(GETTEXT_DIR) install
193 $(RM) -r $(ROOT_DIR)/pkg_out
194 $(MAKE) -C $(GETTEXT_DIR) install-strip prefix=$(ROOT_DIR)/pkg_out
195 -cd $(ROOT_DIR)/pkg_out && $(PACKAGE_PREP)
196 $(SED) "s/@PACKAGE@/gettext/g;s/@VERSION@/$(GETTEXT_VER)/;" < package.info > gettext.info
197 $(PACKAGE) $(ROOT_DIR)/pkg_out gettext.info -r PkgResource -bzip
198 $(RM) -r $(ROOT_DIR)/pkg_out
199 mv $(ROOT_DIR)/gettext.pkg packages
202 $(MAKE) -C $(GETTEXT_DIR) clean
204 gettext-$(GETTEXT_VER):
205 $(CURL) $(GETTEXT_DL) -o gettext-$(GETTEXT_VER).tar.gz
206 $(UNTARZ) gettext-$(GETTEXT_VER).tar.gz
209 cd $(LIBICONV_DIR) && ./configure $(CONFIG_FLAGS)
210 cd $(LIBICONV_DIR) && $(DESTDIR_FIX)
211 $(MAKE) -C $(LIBICONV_DIR)
212 $(MAKE) -C $(LIBICONV_DIR) install
215 $(MAKE) -C $(LIBICONV_DIR) clean
217 glib: glib-$(GLIB_VER)
218 cd $(GLIB_DIR) && ./configure $(CONFIG_FLAGS)
219 cd $(GLIB_DIR) && $(DESTDIR_FIX)
220 $(MAKE) -C $(GLIB_DIR)
221 $(MAKE) -C $(GLIB_DIR) install
224 $(RM) -r $(ROOT_DIR)/pkg_out
225 $(MAKE) -C $(GLIB_DIR) install-strip prefix=$(ROOT_DIR)/pkg_out
226 -cd $(ROOT_DIR)/pkg_out && $(PACKAGE_PREP)
227 $(SED) "s/@PACKAGE@/glib/g;s/@VERSION@/$(GLIB_VER)/;" < package.info > glib.info
228 $(PACKAGE) $(ROOT_DIR)/pkg_out glib.info -r PkgResource -bzip
229 $(RM) -r $(ROOT_DIR)/pkg_out
230 mv $(ROOT_DIR)/glib.pkg packages
233 $(MAKE) -C $(GLIB_DIR) clean
236 $(CURL) $(GLIB_DL) -o glib-$(GLIB_VER).tar.gz
237 $(UNTARZ) glib-$(GLIB_VER).tar.gz
242 cairo: cairo-$(CAIRO_VER)
243 cd $(CAIRO_DIR) && ./configure $(CONFIG_FLAGS)
244 cd $(CAIRO_DIR) && $(DESTDIR_FIX)
245 $(MAKE) -C $(CAIRO_DIR)
246 $(MAKE) -C $(CAIRO_DIR) install
249 $(RM) -r $(ROOT_DIR)/pkg_out
250 $(MAKE) -C $(CAIRO_DIR) install-strip prefix=$(ROOT_DIR)/pkg_out
251 -cd $(ROOT_DIR)/pkg_out && $(PACKAGE_PREP)
252 $(SED) "s/@PACKAGE@/cairo/g;s/@VERSION@/$(CAIRO_VER)/;" < package.info > cairo.info
253 $(PACKAGE) $(ROOT_DIR)/pkg_out cairo.info -r PkgResource -bzip
254 $(RM) -r $(ROOT_DIR)/pkg_out
255 mv $(ROOT_DIR)/cairo.pkg packages
258 $(MAKE) -C $(CAIRO_DIR) clean
261 $(CURL) $(CAIRO_DL) -o cairo-$(CAIRO_VER).tar.gz
262 $(UNTARZ) cairo-$(CAIRO_VER).tar.gz
267 pango: pango-$(PANGO_VER)
268 cd $(PANGO_DIR) && ./configure $(CONFIG_FLAGS)
269 cd $(PANGO_DIR) && $(DESTDIR_FIX)
270 $(MAKE) -C $(PANGO_DIR)
271 $(MAKE) -C $(PANGO_DIR) install
274 $(RM) -r $(ROOT_DIR)/pkg_out
275 $(MAKE) -C $(PANGO_DIR) install-strip prefix=$(ROOT_DIR)/pkg_out
276 -cd $(ROOT_DIR)/pkg_out && $(PACKAGE_PREP)
277 $(SED) "s/@PACKAGE@/pango/g;s/@VERSION@/$(PANGO_VER)/;" < package.info > pango.info
278 $(PACKAGE) $(ROOT_DIR)/pkg_out pango.info -r PkgResource -bzip
279 $(RM) -r $(ROOT_DIR)/pkg_out
280 mv $(ROOT_DIR)/pango.pkg packages
283 $(MAKE) -C $(PANGO_DIR) clean
286 $(CURL) $(PANGO_DL) -o pango-$(PANGO_VER).tar.gz
287 $(UNTARZ) pango-$(PANGO_VER).tar.gz
290 cd $(ATK_DIR) && ./configure $(CONFIG_FLAGS)
291 cd $(ATK_DIR) && $(DESTDIR_FIX)
292 $(MAKE) -C $(ATK_DIR)
293 $(MAKE) -C $(ATK_DIR) install
296 $(RM) -r $(ROOT_DIR)/pkg_out
297 $(MAKE) -C $(ATK_DIR) install-strip prefix=$(ROOT_DIR)/pkg_out
298 -cd $(ROOT_DIR)/pkg_out && $(PACKAGE_PREP)
299 $(SED) "s/@PACKAGE@/atk/g;s/@VERSION@/$(ATK_VER)/;" < package.info > atk.info
300 $(PACKAGE) $(ROOT_DIR)/pkg_out atk.info -r PkgResource -bzip
301 $(RM) -r $(ROOT_DIR)/pkg_out
302 mv $(ROOT_DIR)/atk.pkg packages
305 $(MAKE) -C $(ATK_DIR) clean
308 $(CURL) $(ATK_DL) -o atk-$(ATK_VER).tar.gz
309 $(UNTARZ) atk-$(ATK_VER).tar.gz
312 $(MAKE) -C $(LIBPNG_DIR) -f makefile.macosx prefix=$(PREFIX_DIR)
313 $(MAKE) -C $(LIBPNG_DIR) -f makefile.macosx install prefix=$(PREFIX_DIR)
314 $(MV) $(PREFIX_DIR)/lib/libpng.dylib $(PREFIX_DIR)/lib/libpng.dylib.xxx
317 $(RM) -r $(ROOT_DIR)/pkg_out
318 $(MKDIR) $(ROOT_DIR)/pkg_out
319 $(MAKE) -C $(LIBPNG_DIR) -f makefile.macosx install prefix=$(ROOT_DIR)/pkg_out
320 -cd $(ROOT_DIR)/pkg_out && $(PACKAGE_PREP)
321 $(SED) "s/@PACKAGE@/libpng/g;s/@VERSION@/$(LIBPNG_VER)/;" < package.info > libpng.info
322 $(PACKAGE) $(ROOT_DIR)/pkg_out libpng.info -r PkgResource -bzip
323 $(RM) -r $(ROOT_DIR)/pkg_out
324 mv $(ROOT_DIR)/libpng.pkg packages
327 $(MAKE) -C $(LIBPNG_DIR) -f makefile.macosx clean
331 -$(MV) $(PREFIX_DIR)/lib/libjpeg.dylib.xxx $(PREFIX_DIR)/lib/libjpeg.dylib
332 -$(MV) $(PREFIX_DIR)/lib/libpng.dylib.xxx $(PREFIX_DIR)/lib/libpng.dylib
333 $(SED) -i bak "s/ libjpeg.dylib//" $(PREFIX_DIR)/lib/libjpeg.la
334 cd $(GTK_DIR) && ./configure $(CONFIG_FLAGS) LIBS="-L/usr/X11R6/lib -lfontconfig -lxinerama" --without-libtiff
335 -$(MV) $(PREFIX_DIR)/lib/libjpeg.dylib $(PREFIX_DIR)/lib/libjpeg.dylib.xxx
336 -$(MV) $(PREFIX_DIR)/lib/libpng.dylib $(PREFIX_DIR)/lib/libpng.dylib.xxx
337 cd $(GTK_DIR) && $(DESTDIR_FIX)
338 $(MAKE) -C $(GTK_DIR)
339 $(MAKE) -C $(GTK_DIR) install
340 $(SED) -i bak "s:dependency_libs='':dependency_libs='-L/usr/X11R6/lib -lX11 -lXinerama':" $(PREFIX_DIR)/lib/libgdk-x11-2.0.la
343 $(RM) -r $(ROOT_DIR)/pkg_out
344 $(MAKE) -C $(GTK_DIR) install-strip prefix=$(ROOT_DIR)/pkg_out
345 -cd $(ROOT_DIR)/pkg_out && $(PACKAGE_PREP)
346 $(SED) "s/@PACKAGE@/gtk/g;s/@VERSION@/$(GTK_VER)/;" < package.info > gtk.info
347 $(PACKAGE) $(ROOT_DIR)/pkg_out gtk.info -r PkgResource -bzip
348 #$(RM) -r $(ROOT_DIR)/pkg_out
349 mv $(ROOT_DIR)/gtk.pkg packages
352 $(MAKE) -C $(GTK_DIR) clean
355 $(CURL) $(GTK_DL) -o gtk-$(GTK_VER).tar.gz
356 $(UNTARZ) gtk-$(GTK_VER).tar.gz
359 cd $(LIBJPEG_DIR) && ./configure $(CONFIG_FLAGS)
360 $(MAKE) -C $(LIBJPEG_DIR)
361 $(MAKE) -C $(LIBJPEG_DIR) install
362 $(MV) $(PREFIX_DIR)/lib/libjpeg.dylib $(PREFIX_DIR)/lib/libjpeg.dylib.xxx
363 # $(RM) $(PREFIX_DIR)/lib/libjpeg.dylib
366 $(RM) -r $(ROOT_DIR)/pkg_out
367 $(MKDIR) $(ROOT_DIR)/pkg_out
368 $(MKDIR) $(ROOT_DIR)/pkg_out/include
369 $(MKDIR) $(ROOT_DIR)/pkg_out/lib
370 $(MKDIR) $(ROOT_DIR)/pkg_out/bin
371 $(MKDIR) $(ROOT_DIR)/pkg_out/man
372 $(MKDIR) $(ROOT_DIR)/pkg_out/man/man1
373 $(MKDIR) $(ROOT_DIR)/pkg_out/share
374 $(MAKE) -C $(LIBJPEG_DIR) install prefix=$(ROOT_DIR)/pkg_out
375 -cd $(ROOT_DIR)/pkg_out && $(PACKAGE_PREP)
376 $(SED) "s/@PACKAGE@/libjpeg/g;s/@VERSION@/$(LIBJPEG_VER)/;" < package.info > libjpeg.info
377 $(PACKAGE) $(ROOT_DIR)/pkg_out libjpeg.info -r PkgResource -bzip
378 $(RM) -r $(ROOT_DIR)/pkg_out
379 mv $(ROOT_DIR)/libjpeg.pkg packages
382 $(MAKE) -C $(LIBJPEG_DIR) clean
386 MAKE=make && cd $(LIBTIFF_DIR) && ./configure --prefix=$(PREFIX_DIR) --noninteractive --with-CC="$(CC3)" --with-CFLAGS="$(CFLAGS)"
387 $(MAKE) -C $(LIBTIFF_DIR) -e
388 $(MAKE) -C $(LIBTIFF_DIR) install
391 $(RM) -r $(ROOT_DIR)/pkg_out
392 $(MAKE) -C $(LIBTIFF_DIR) install-strip prefix=$(ROOT_DIR)/pkg_out
393 -cd $(ROOT_DIR)/pkg_out && $(PACKAGE_PREP)
394 $(SED) "s/@PACKAGE@/libtiff/g;s/@VERSION@/$(LIBTIFF_VER)/;" < package.info > libtiff.info
395 $(PACKAGE) $(ROOT_DIR)/pkg_out libtiff.info -r PkgResource -bzip
396 $(RM) -r $(ROOT_DIR)/pkg_out
397 mv $(ROOT_DIR)/libtiff.pkg packages
400 $(MAKE) -C $(LIBTIFF_DIR) clean
402 #LDFLAGS=-L$(PREFIX_DIR)/lib -prebind -flat_namespace # -fcoalesce-templates
405 #cd $(LIBSIGC_DIR) && ./configure $(CONFIG_FLAGS) LDFLAGS="$(LDFLAGS) -lstdc++ -lsupc++" "CC=g++ $(CFLAGS)"
406 cd $(LIBSIGC_DIR) && ./configure $(CONFIG_FLAGS) LDFLAGS="$(LDFLAGS) -lstdc++" "CC=g++ $(CFLAGS)"
407 $(MAKE) -C $(LIBSIGC_DIR)
408 $(MAKE) -C $(LIBSIGC_DIR) install
411 $(RM) -r $(ROOT_DIR)/pkg_out
412 $(MAKE) -C $(LIBSIGC_DIR) install-strip prefix=$(ROOT_DIR)/pkg_out
413 -cd $(ROOT_DIR)/pkg_out && $(PACKAGE_PREP)
414 $(SED) "s/@PACKAGE@/libsigc/g;s/@VERSION@/$(LIBSIGC_VER)/;" < package.info > libsigc.info
415 $(PACKAGE) $(ROOT_DIR)/pkg_out libsigc.info -r PkgResource -bzip
416 $(RM) -r $(ROOT_DIR)/pkg_out
417 mv $(ROOT_DIR)/libsigc.pkg packages
420 $(MAKE) -C $(LIBSIGC_DIR) clean
423 glibmm: glibmm-$(GLIBMM_VER)
424 #cd $(GLIBMM_DIR) && ./configure $(CONFIG_FLAGS) "LDFLAGS=$(LDFLAGS) -L/usr/X11R6/lib -lXinerama -lstdc++ -lsupc++" "CC=g++ $(CFLAGS)"
425 cd $(GLIBMM_DIR) && ./configure $(CONFIG_FLAGS) "LDFLAGS=$(LDFLAGS) -L/usr/X11R6/lib -lXinerama -lstdc++" "CC=g++ $(CFLAGS)"
426 cd $(GLIBMM_DIR) && $(DESTDIR_FIX)
427 $(MAKE) -C $(GLIBMM_DIR)
428 $(MAKE) -C $(GLIBMM_DIR) install
431 $(RM) -r $(ROOT_DIR)/pkg_out
432 $(MAKE) -C $(GLIBMM_DIR) install-strip prefix=$(ROOT_DIR)/pkg_out
433 -cd $(ROOT_DIR)/pkg_out && $(PACKAGE_PREP)
434 $(SED) "s/@PACKAGE@/glibmm/g;s/@VERSION@/$(GLIBMM_VER)/;" < package.info > glibmm.info
435 $(PACKAGE) $(ROOT_DIR)/pkg_out glibmm.info -r PkgResource -bzip
436 $(RM) -r $(ROOT_DIR)/pkg_out
437 mv $(ROOT_DIR)/glibmm.pkg packages
440 $(MAKE) -C $(GLIBMM_DIR) clean
442 glibmm-$(GLIBMM_VER):
443 $(CURL) $(GLIBMM_DL) -o glibmm-$(GLIBMM_VER).tar.gz
444 $(UNTARZ) glibmm-$(GLIBMM_VER).tar.gz
447 gtkmm: gtkmm-$(GTKMM_VER)
448 #cd $(GTKMM_DIR) && ./configure $(CONFIG_FLAGS) "LDFLAGS=$(LDFLAGS) -L/usr/X11R6/lib -lXinerama -lstdc++ -lsupc++" "CC=g++ $(CFLAGS)"
449 cd $(GTKMM_DIR) && ./configure $(CONFIG_FLAGS) "LDFLAGS=$(LDFLAGS) -L/usr/X11R6/lib -lXinerama -lstdc++" "CC=g++ $(CFLAGS)"
450 cd $(GTKMM_DIR) && $(DESTDIR_FIX)
451 $(MAKE) -C $(GTKMM_DIR)
452 $(MAKE) -C $(GTKMM_DIR) install
455 $(RM) -r $(ROOT_DIR)/pkg_out
456 $(MAKE) -C $(GTKMM_DIR) install-strip prefix=$(ROOT_DIR)/pkg_out
457 -cd $(ROOT_DIR)/pkg_out && $(PACKAGE_PREP)
458 $(SED) "s/@PACKAGE@/gtkmm/g;s/@VERSION@/$(GTKMM_VER)/;" < package.info > gtkmm.info
459 $(PACKAGE) $(ROOT_DIR)/pkg_out gtkmm.info -r PkgResource -bzip
460 $(RM) -r $(ROOT_DIR)/pkg_out
461 mv $(ROOT_DIR)/gtkmm.pkg packages
464 $(MAKE) -C $(GTKMM_DIR) clean
467 $(CURL) $(GTKMM_DL) -o gtkmm-$(GTKMM_VER).tar.gz
468 $(UNTARZ) gtkmm-$(GTKMM_VER).tar.gz
471 libsigc2: libsigc++-$(LIBSIGC2_VER)
472 #cd $(LIBSIGC2_DIR) && ./configure $(CONFIG_FLAGS) LDFLAGS="$(LDFLAGS) -lstdc++ -lsupc++" "CC=g++ $(CFLAGS)"
473 cd $(LIBSIGC2_DIR) && ./configure $(CONFIG_FLAGS) LDFLAGS="$(LDFLAGS) -lstdc++" "CC=g++ $(CFLAGS)"
474 $(MAKE) -C $(LIBSIGC2_DIR)
475 $(MAKE) -C $(LIBSIGC2_DIR) install
478 $(RM) -r $(ROOT_DIR)/pkg_out
479 $(MAKE) -C $(LIBSIGC2_DIR) install-strip prefix=$(ROOT_DIR)/pkg_out
480 -cd $(ROOT_DIR)/pkg_out && $(PACKAGE_PREP)
481 $(SED) "s/@PACKAGE@/libsigc2/g;s/@VERSION@/$(LIBSIGC2_VER)/;" < package.info > libsigc2.info
482 $(PACKAGE) $(ROOT_DIR)/pkg_out libsigc2.info -r PkgResource -bzip
483 $(RM) -r $(ROOT_DIR)/pkg_out
484 mv $(ROOT_DIR)/libsigc2.pkg packages
487 $(MAKE) -C $(LIBSIGC2_DIR) clean
489 libsigc++-$(LIBSIGC2_VER):
490 $(CURL) $(LIBSIGC2_DL) -o libsigc2-$(LIBSIGC2_VER).tar.gz
491 $(UNTARZ) libsigc2-$(LIBSIGC2_VER).tar.gz
493 LDFLAGS=-L$(PREFIX_DIR)/lib -prebind -prebind_all_twolevel_modules -twolevel_namespace -bind_at_load
494 CONFIG_FLAGS=--prefix=$(PREFIX_DIR) --disable-static --enable-shared "CC=$(CC)" "CXX=$(CXX)" "CXXCPP=$(CXXCPP)" "PKG_CONFIG_PATH=$(PKG_CONFIG_PATH)" "LDFLAGS=$(LDFLAGS)" "MACOSX_DEPLOYMENT_TARGET=$(MACOSX_DEPLOYMENT_TARGET)"
497 cd $(LIBXML2_DIR) && ./configure $(CONFIG_FLAGS)
498 cd $(LIBXML2_DIR) && $(DESTDIR_FIX)
499 $(MAKE) -C $(LIBXML2_DIR)
500 $(MAKE) -C $(LIBXML2_DIR) install
503 $(RM) -r $(ROOT_DIR)/pkg_out
504 $(MAKE) -C $(LIBXML2_DIR) install-strip prefix=$(ROOT_DIR)/pkg_out
505 -cd $(ROOT_DIR)/pkg_out && $(PACKAGE_PREP)
506 $(SED) "s/@PACKAGE@/libxml2/g;s/@VERSION@/$(LIBXML2_VER)/;" < package.info > libxml2.info
507 $(PACKAGE) $(ROOT_DIR)/pkg_out libxml2.info -r PkgResource -bzip
508 $(RM) -r $(ROOT_DIR)/pkg_out
509 mv $(ROOT_DIR)/libxml2.pkg packages
512 $(MAKE) -C $(LIBXML2_DIR) clean
516 cd $(FONTCONFIG_DIR) && ./configure $(CONFIG_FLAGS) --disable-docs --without-docdir HASDOCBOOK=no
517 cd $(FONTCONFIG_DIR) && $(DESTDIR_FIX)
518 $(MAKE) -C $(FONTCONFIG_DIR)
519 $(MAKE) -C $(FONTCONFIG_DIR) install
522 $(RM) -r $(ROOT_DIR)/pkg_out
523 $(MAKE) -C $(FONTCONFIG_DIR) install-strip prefix=$(ROOT_DIR)/pkg_out
524 -cd $(ROOT_DIR)/pkg_out && $(PACKAGE_PREP)
525 $(SED) "s/@PACKAGE@/fontconfig/g;s/@VERSION@/$(FONTCONFIG_VER)/;" < package.info > fontconfig.info
526 $(PACKAGE) $(ROOT_DIR)/pkg_out fontconfig.info -r PkgResource -bzip
527 $(RM) -r $(ROOT_DIR)/pkg_out
528 mv $(ROOT_DIR)/fontconfig.pkg packages
531 $(MAKE) -C $(FONTCONFIG_DIR) clean
533 LDFLAGS=-L$(PREFIX_DIR)/lib -prebind -prebind_all_twolevel_modules -twolevel_namespace -bind_at_load
534 CONFIG_FLAGS=--prefix=$(PREFIX_DIR) --disable-static --enable-shared "CC=$(CC)" "CXX=$(CXX)" "CXXCPP=$(CXXCPP)" "PKG_CONFIG_PATH=$(PKG_CONFIG_PATH)" "LDFLAGS=$(LDFLAGS)" "MACOSX_DEPLOYMENT_TARGET=$(MACOSX_DEPLOYMENT_TARGET)"
536 libxmlpp: $(LIBXMLPP_DIR)
537 cd $(LIBXMLPP_DIR) && ./configure $(CONFIG_FLAGS)
538 cd $(LIBXMLPP_DIR) && $(DESTDIR_FIX)
539 $(MAKE) -C $(LIBXMLPP_DIR)
540 $(MAKE) -C $(LIBXMLPP_DIR) install
543 $(RM) -r $(ROOT_DIR)/pkg_out
544 $(MAKE) -C $(LIBXMLPP_DIR) install-strip prefix=$(ROOT_DIR)/pkg_out
545 -cd $(ROOT_DIR)/pkg_out && $(PACKAGE_PREP)
546 $(SED) "s/@PACKAGE@/libxmlpp/g;s/@VERSION@/$(LIBXMLPP_VER)/;" < package.info > libxmlpp.info
547 $(PACKAGE) $(ROOT_DIR)/pkg_out libxmlpp.info -r PkgResource -bzip
548 $(RM) -r $(ROOT_DIR)/pkg_out
549 mv $(ROOT_DIR)/libxmlpp.pkg packages
552 $(MAKE) -C $(LIBXMLPP_DIR) clean
555 $(CURL) $(LIBXMLPP_DL) -o libxmlpp-$(LIBXMLPP_VER).tar.gz
556 $(UNTARZ) libxmlpp-$(LIBXMLPP_VER).tar.gz