diff options
author | Volker Grabsch <vog@notjusthosting.com> | 2009-03-01 13:31:56 (GMT) |
---|---|---|
committer | Volker Grabsch <vog@notjusthosting.com> | 2009-03-01 13:31:56 (GMT) |
commit | ff15dfd61a21abb7fefb2002c5df432bd943cbd8 (patch) | |
tree | 0f47d8f80ab0ee05d903d55ce1696f667840ee60 /src/old.mk | |
parent | 78ccfaaa6503d81ae2a1166ea455ac722647de8f (diff) | |
download | mxe-ff15dfd61a21abb7fefb2002c5df432bd943cbd8.zip mxe-ff15dfd61a21abb7fefb2002c5df432bd943cbd8.tar.gz mxe-ff15dfd61a21abb7fefb2002c5df432bd943cbd8.tar.bz2 |
new package: old
Diffstat (limited to 'src/old.mk')
-rw-r--r-- | src/old.mk | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/src/old.mk b/src/old.mk new file mode 100644 index 0000000..7caa060 --- /dev/null +++ b/src/old.mk @@ -0,0 +1,26 @@ +# old +# http://blitiri.com.ar/p/old/ + +PKG := old +$(PKG)_VERSION := 0.17 +$(PKG)_SUBDIR := old-$($(PKG)_VERSION) +$(PKG)_FILE := old-$($(PKG)_VERSION).tar.bz2 +$(PKG)_URL := http://blitiri.com.ar/p/old/files/$($(PKG)_VERSION)/$($(PKG)_FILE) +$(PKG)_DEPS := gcc + +define $(PKG)_UPDATE + wget -q -O- 'http://blitiri.com.ar/p/old/' | \ + grep 'old-' | \ + $(SED) -n 's,.*old-\([0-9][^>]*\)\.tar.*,\1,p' | \ + head -1 +endef + +define $(PKG)_BUILD + cd '$(1)' && $(TARGET)-gcc -O3 -Iinclude -c -o libold.o lib/libold.c + cd '$(1)' && $(TARGET)-ar cr libold.a libold.o + $(TARGET)-ranlib '$(1)/libold.a' + install -d '$(PREFIX)/$(TARGET)/lib' + install -m644 '$(1)/libold.a' '$(PREFIX)/$(TARGET)/lib/' + install -d '$(PREFIX)/$(TARGET)/include' + install -m644 '$(1)/lib/old.h' '$(PREFIX)/$(TARGET)/include/' +endef |