summaryrefslogtreecommitdiffstats
path: root/src/mingwrt.mk
blob: c4230ba0a9f63f41e54d4526ae47a081f9120039 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# MinGW Runtime

PKG            := mingwrt
$(PKG)_VERSION := 3.15.2-mingw32
$(PKG)_SUBDIR  := .
$(PKG)_FILE    := mingwrt-$($(PKG)_VERSION)-dev.tar.gz
$(PKG)_WEBSITE := http://mingw.sourceforge.net/
$(PKG)_URL     := http://$(SOURCEFORGE_MIRROR)/mingw/$($(PKG)_FILE)
$(PKG)_DEPS    :=

define $(PKG)_UPDATE
    wget -q -O- 'http://sourceforge.net/project/showfiles.php?group_id=2435&package_id=11598' | \
    grep 'mingwrt-' | \
    $(SED) -n 's,.*mingwrt-\([0-9][^>]*\)-dev\.tar.*,\1,p' | \
    head -1
endef

define $(PKG)_BUILD
    $(INSTALL) -d '$(PREFIX)/$(TARGET)'
    cd '$(1)' && \
        cp -rpv include lib '$(PREFIX)/$(TARGET)'
endef