summaryrefslogtreecommitdiffstats
path: root/src/picomodel.mk
blob: 53fd6da6fe31cf4be753b9a568b62c702308ebc9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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