mxe/src/gtksourceviewmm.mk

33 lines
1.2 KiB
Makefile
Raw Normal View History

2010-09-30 11:38:20 +01:00
# This file is part of mingw-cross-env.
# See doc/index.html for further information.
# GtkSourceViewmm
PKG := gtksourceviewmm
$(PKG)_IGNORE :=
$(PKG)_VERSION := 2.10.1
$(PKG)_CHECKSUM := 7f6fb046427054d85c791a4b1fc0f742a3313c8a
$(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION)
$(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.gz
$(PKG)_WEBSITE := http://projects.gnome.org/gtksourceviewmm/
2010-09-30 11:38:20 +01:00
$(PKG)_URL := http://ftp.gnome.org/pub/gnome/sources/gtksourceviewmm/$(call SHORT_PKG_VERSION,$(PKG))/$($(PKG)_FILE)
2011-04-23 14:59:36 +01:00
$(PKG)_DEPS := gcc gtkmm2 gtksourceview
2010-09-30 11:38:20 +01:00
define $(PKG)_UPDATE
wget -q -O- 'http://git.gnome.org/cgit/gtksourceviewmm/refs/tags' | \
grep '<a href=' | \
$(SED) -n "s,.*<a href='[^']*/tag/?id=gtksourceviewmm-\\([0-9][^']*\\)'.*,\\1,p" | \
grep -v '^2\.9[0-9]\.' | \
2010-09-30 11:38:20 +01:00
head -1
endef
define $(PKG)_BUILD
# wine confuses the cross-compiling detection, so set it explicitly
$(SED) -i 's,cross_compiling=no,cross_compiling=yes,' '$(1)/configure'
cd '$(1)' && ./configure \
--host='$(TARGET)' \
--prefix='$(PREFIX)/$(TARGET)' \
2010-09-30 11:58:48 +01:00
--disable-shared \
MAKE=$(MAKE)
2010-09-30 11:38:20 +01:00
$(MAKE) -C '$(1)' -j '$(JOBS)' install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS=
endef