summaryrefslogtreecommitdiffstats
path: root/src/old.mk
diff options
context:
space:
mode:
authorVolker Grabsch <vog@notjusthosting.com>2009-03-01 13:31:56 (GMT)
committerVolker Grabsch <vog@notjusthosting.com>2009-03-01 13:31:56 (GMT)
commitff15dfd61a21abb7fefb2002c5df432bd943cbd8 (patch)
tree0f47d8f80ab0ee05d903d55ce1696f667840ee60 /src/old.mk
parent78ccfaaa6503d81ae2a1166ea455ac722647de8f (diff)
downloadmxe-ff15dfd61a21abb7fefb2002c5df432bd943cbd8.zip
mxe-ff15dfd61a21abb7fefb2002c5df432bd943cbd8.tar.gz
mxe-ff15dfd61a21abb7fefb2002c5df432bd943cbd8.tar.bz2
new package: old
Diffstat (limited to 'src/old.mk')
-rw-r--r--src/old.mk26
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