summaryrefslogtreecommitdiffstats
path: root/src/tre.mk
blob: 2c0130c5e27a60994f5bcaaa8daf5c69b5e0737b (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
# TRE

PKG            := tre
$(PKG)_VERSION := 0.7.5
$(PKG)_SUBDIR  := tre-$($(PKG)_VERSION)
$(PKG)_FILE    := tre-$($(PKG)_VERSION).tar.bz2
$(PKG)_WEBSITE := http://laurikari.net/tre/
$(PKG)_URL     := http://laurikari.net/tre/$($(PKG)_FILE)
$(PKG)_DEPS    := gcc

define $(PKG)_UPDATE
    wget -q -O- 'http://laurikari.net/tre/download.html' | \
    $(SED) -n 's,.*tre-\([a-z0-9][^>]*\)\.tar.*,\1,p' | \
    head -1
endef

define $(PKG)_BUILD
    cd '$(1)' && ./configure \
        --host='$(TARGET)' \
        --disable-shared \
        --prefix='$(PREFIX)/$(TARGET)' \
        --disable-nls
    $(MAKE) -C '$(1)' -j '$(JOBS)' install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS=
endef