summaryrefslogtreecommitdiffstats
path: root/src/picomodel.mk
diff options
context:
space:
mode:
authorMartin Gerhardy <martin.gerhardy@gmail.com>2012-12-20 12:14:07 (GMT)
committerMartin Gerhardy <martin.gerhardy@gmail.com>2012-12-20 12:17:53 (GMT)
commit5a671b04f874ac483a31c6e1985446bb324e8772 (patch)
tree11aa38daebf18e345c56f8412754b124001c4fe3 /src/picomodel.mk
parent36a946f527aab7fa7817bee1ca9f743921e1390b (diff)
downloadmxe-5a671b04f874ac483a31c6e1985446bb324e8772.zip
mxe-5a671b04f874ac483a31c6e1985446bb324e8772.tar.gz
mxe-5a671b04f874ac483a31c6e1985446bb324e8772.tar.bz2
* added new package picomodel
Diffstat (limited to 'src/picomodel.mk')
-rw-r--r--src/picomodel.mk25
1 files changed, 25 insertions, 0 deletions
diff --git a/src/picomodel.mk b/src/picomodel.mk
new file mode 100644
index 0000000..53fd6da
--- /dev/null
+++ b/src/picomodel.mk
@@ -0,0 +1,25 @@
+# This file is part of MXE.
+# See index.html for further information.
+
+PKG := picomodel
+$(PKG)_IGNORE :=
+$(PKG)_CHECKSUM := dda03a87ec16ce7fa08be8342490e26bd25c101b
+$(PKG)_SUBDIR := picomodel-$($(PKG)_VERSION)
+$(PKG)_FILE := picomodel-$($(PKG)_VERSION).tar.bz2
+$(PKG)_URL := http://picomodel.googlecode.com/files/$($(PKG)_FILE)
+$(PKG)_DEPS := gcc
+
+define $(PKG)_UPDATE
+ $(WGET) -q -O- 'https://github.com/ufoai/picomodel/commits/master' | \
+ $(SED) -n 's#.*<span class="sha">\([^<]\{7\}\)[^<]\{3\}<.*#\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
+