diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/atk.mk | 27 | ||||
-rw-r--r-- | src/cairo.mk | 25 | ||||
-rw-r--r-- | src/gtk.mk | 47 | ||||
-rw-r--r-- | src/jasper.mk | 27 | ||||
-rw-r--r-- | src/pango.mk | 33 | ||||
-rw-r--r-- | src/pixman.mk | 24 |
6 files changed, 183 insertions, 0 deletions
diff --git a/src/atk.mk b/src/atk.mk new file mode 100644 index 0000000..e8abbbd --- /dev/null +++ b/src/atk.mk @@ -0,0 +1,27 @@ +# ATK +# http://www.gtk.org/ + +PKG := atk +$(PKG)_VERSION := 1.24.0 +$(PKG)_SUBDIR := atk-$($(PKG)_VERSION) +$(PKG)_FILE := atk-$($(PKG)_VERSION).tar.bz2 +$(PKG)_URL := http://ftp.gnome.org/pub/gnome/sources/atk/$(word 1,$(subst ., ,$($(PKG)_VERSION))).$(word 2,$(subst ., ,$($(PKG)_VERSION)))/$($(PKG)_FILE) +$(PKG)_DEPS := gcc glib gettext + +define $(PKG)_UPDATE + wget -q -O- 'http://www.gtk.org/download-windows.html' | \ + grep 'atk-' | \ + $(SED) -n 's,.*atk-\([1-9][^>]*\)\.tar.*,\1,p' | \ + head -1 +endef + +define $(PKG)_BUILD + cd '$(1)' && ./configure \ + --host='$(TARGET)' \ + --disable-shared \ + --prefix='$(PREFIX)/$(TARGET)' \ + --disable-glibtest \ + --disable-gtk-doc + $(MAKE) -C '$(1)' -j '$(JOBS)' bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS= + $(MAKE) -C '$(1)' -j 1 install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS= +endef diff --git a/src/cairo.mk b/src/cairo.mk new file mode 100644 index 0000000..c5008de --- /dev/null +++ b/src/cairo.mk @@ -0,0 +1,25 @@ +# cairo +# http://cairographics.org/ + +PKG := cairo +$(PKG)_VERSION := 1.8.6 +$(PKG)_SUBDIR := cairo-$($(PKG)_VERSION) +$(PKG)_FILE := cairo-$($(PKG)_VERSION).tar.gz +$(PKG)_URL := http://cairographics.org/releases/$($(PKG)_FILE) +$(PKG)_DEPS := gcc zlib libpng fontconfig freetype pthreads + +define $(PKG)_UPDATE + wget -q -O- 'http://cairographics.org/releases/' | \ + grep 'LATEST-cairo-' | \ + $(SED) -n 's,.*"LATEST-cairo-\([1-9][^"]*\)".*,\1,p' | \ + head -1 +endef + +define $(PKG)_BUILD + cd '$(1)' && ./configure \ + --host='$(TARGET)' \ + --disable-shared \ + --prefix='$(PREFIX)/$(TARGET)' \ + --disable-gtk-doc + $(MAKE) -C '$(1)' -j '$(JOBS)' install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS= +endef diff --git a/src/gtk.mk b/src/gtk.mk new file mode 100644 index 0000000..a68567d --- /dev/null +++ b/src/gtk.mk @@ -0,0 +1,47 @@ +# GTK+ +# http://www.gtk.org/ + +PKG := gtk +$(PKG)_VERSION := 2.14.7 +$(PKG)_SUBDIR := gtk+-$($(PKG)_VERSION) +$(PKG)_FILE := gtk+-$($(PKG)_VERSION).tar.bz2 +$(PKG)_URL := http://ftp.gnome.org/pub/gnome/sources/gtk+/$(word 1,$(subst ., ,$($(PKG)_VERSION))).$(word 2,$(subst ., ,$($(PKG)_VERSION)))/$($(PKG)_FILE) +$(PKG)_DEPS := gcc gettext libpng jpeg tiff jasper glib atk pango cairo + +define $(PKG)_UPDATE + wget -q -O- 'http://www.gtk.org/download-windows.html' | \ + grep 'gtk+-' | \ + $(SED) -n 's,.*gtk+-\([2-9][^>]*\)\.tar.*,\1,p' | \ + head -1 +endef + +define $(PKG)_BUILD + sed 's,^\(Libs:.*\)@GTK_EXTRA_LIBS@,\1@GTK_DEP_LIBS@,' -i '$(1)/gtk+-2.0.pc.in' + sed 's,^\(gtkbuiltincache\.h:\),_disabled_\1,' -i '$(1)/gtk/Makefile.in' + sed 's,^\(install-data-local:.*\) install-libtool-import-lib,\1,' -i '$(1)/modules/other/gail/libgail-util/Makefile.in' + sed 's,\(BUILT_SOURCES.*=.*\)test-inline-pixbufs.h,\1,' -i '$(1)/demos/Makefile.in' + sed 's,"[^"]*must build as DLL[^"]*","(disabled warning)",' -i '$(1)/configure' + sed 's,enable_static=no,enable_static=yes,' -i '$(1)/configure' + sed 's,enable_shared=yes,enable_shared=no,' -i '$(1)/configure' + sed 's,\(STATIC_LIB_DEPS="[^"]*\) \$$LIBJPEG,\1 $$LIBJASPER $$LIBJPEG,' -i '$(1)/configure' + cd '$(1)' && ./configure \ + --host='$(TARGET)' \ + --disable-shared \ + --prefix='$(PREFIX)/$(TARGET)' \ + --enable-explicit-deps \ + --disable-gdiplus \ + --disable-glibtest \ + --disable-modules \ + --disable-cups \ + --disable-test-print-backend \ + --disable-gtk-doc \ + --disable-man \ + --with-libpng \ + --with-libjpeg \ + --with-libtiff \ + --with-libjasper \ + --with-included-loaders \ + --with-included-immodules \ + --without-x + $(MAKE) -C '$(1)' -j '$(JOBS)' install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS= +endef diff --git a/src/jasper.mk b/src/jasper.mk new file mode 100644 index 0000000..4ab0f28 --- /dev/null +++ b/src/jasper.mk @@ -0,0 +1,27 @@ +# JasPer +# http://www.ece.uvic.ca/~mdadams/jasper/ + +PKG := jasper +$(PKG)_VERSION := 1.900.1 +$(PKG)_SUBDIR := jasper-$($(PKG)_VERSION) +$(PKG)_FILE := jasper-$($(PKG)_VERSION).zip +$(PKG)_URL := http://www.ece.uvic.ca/~mdadams/jasper/software/$($(PKG)_FILE) +$(PKG)_DEPS := gcc jpeg + +define $(PKG)_UPDATE + wget -q -O- 'http://www.ece.uvic.ca/~mdadams/jasper/' | \ + grep 'jasper-' | \ + $(SED) -n 's,.*jasper-\([0-9][^>]*\)\.zip.*,\1,p' | \ + head -1 +endef + +define $(PKG)_BUILD + cd '$(1)' && ./configure \ + --host='$(TARGET)' \ + --disable-shared \ + --prefix='$(PREFIX)/$(TARGET)' \ + --enable-libjpeg \ + --disable-opengl \ + --without-x + $(MAKE) -C '$(1)' -j '$(JOBS)' install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS= +endef diff --git a/src/pango.mk b/src/pango.mk new file mode 100644 index 0000000..a4d9d66 --- /dev/null +++ b/src/pango.mk @@ -0,0 +1,33 @@ +# Pango +# http://www.pango.org/ + +PKG := pango +$(PKG)_VERSION := 1.22.4 +$(PKG)_SUBDIR := pango-$($(PKG)_VERSION) +$(PKG)_FILE := pango-$($(PKG)_VERSION).tar.bz2 +$(PKG)_URL := http://ftp.gnome.org/pub/gnome/sources/pango/$(word 1,$(subst ., ,$($(PKG)_VERSION))).$(word 2,$(subst ., ,$($(PKG)_VERSION)))/$($(PKG)_FILE) +$(PKG)_DEPS := gcc fontconfig freetype cairo glib + +define $(PKG)_UPDATE + wget -q -O- 'http://www.gtk.org/download-windows.html' | \ + grep 'pango-' | \ + $(SED) -n 's,.*pango-\([1-9][^>]*\)\.tar.*,\1,p' | \ + head -1 +endef + +define $(PKG)_BUILD + sed 's,"[^"]*must build as DLL[^"]*","(disabled warning)",' -i '$(1)/configure' + sed 's,enable_static=no,enable_static=yes,' -i '$(1)/configure' + sed 's,enable_shared=yes,enable_shared=no,' -i '$(1)/configure' + sed 's,^install-data-local:.*,install-data-local:,' -i '$(1)/modules/Makefile.in' + cd '$(1)' && ./configure \ + --host='$(TARGET)' \ + --disable-shared \ + --prefix='$(PREFIX)/$(TARGET)' \ + --disable-gtk-doc \ + --without-x \ + --enable-explicit-deps \ + --with-included-modules \ + --without-dynamic-modules + $(MAKE) -C '$(1)' -j '$(JOBS)' install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS= +endef diff --git a/src/pixman.mk b/src/pixman.mk new file mode 100644 index 0000000..8a57ee9 --- /dev/null +++ b/src/pixman.mk @@ -0,0 +1,24 @@ +# pixman +# http://cairographics.org/ + +PKG := pixman +$(PKG)_VERSION := 0.14.0 +$(PKG)_SUBDIR := pixman-$($(PKG)_VERSION) +$(PKG)_FILE := pixman-$($(PKG)_VERSION).tar.gz +$(PKG)_URL := http://cairographics.org/releases/$($(PKG)_FILE) +$(PKG)_DEPS := gcc + +define $(PKG)_UPDATE + wget -q -O- 'http://cairographics.org/releases/' | \ + grep 'LATEST-pixman-' | \ + $(SED) -n 's,.*"LATEST-pixman-\([0-9][^"]*\)".*,\1,p' | \ + head -1 +endef + +define $(PKG)_BUILD + cd '$(1)' && ./configure \ + --host='$(TARGET)' \ + --disable-shared \ + --prefix='$(PREFIX)/$(TARGET)' + $(MAKE) -C '$(1)' -j '$(JOBS)' install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS= +endef |