diff options
author | Volker Grabsch <vog@notjusthosting.com> | 2008-11-08 17:42:21 (GMT) |
---|---|---|
committer | Volker Grabsch <vog@notjusthosting.com> | 2008-11-08 17:42:21 (GMT) |
commit | b6720b8999567b0bfd0d69806845978bf2e3ba60 (patch) | |
tree | 4d4c1e5adbe73f61d5aa8ebedc2ce0bd78b501ca /src/pdcurses.mk | |
parent | 97b99df398aba9048dbf4552dbb8730e39d2cdee (diff) | |
download | mxe-b6720b8999567b0bfd0d69806845978bf2e3ba60.zip mxe-b6720b8999567b0bfd0d69806845978bf2e3ba60.tar.gz mxe-b6720b8999567b0bfd0d69806845978bf2e3ba60.tar.bz2 |
translated package: pdcurses
Diffstat (limited to 'src/pdcurses.mk')
-rw-r--r-- | src/pdcurses.mk | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/src/pdcurses.mk b/src/pdcurses.mk new file mode 100644 index 0000000..65a5bff --- /dev/null +++ b/src/pdcurses.mk @@ -0,0 +1,33 @@ +# PDcurses +# http://pdcurses.sourceforge.net/ + +PKG := pdcurses +$(PKG)_VERSION := 3.3 +$(PKG)_SUBDIR := PDCurses-$($(PKG)_VERSION) +$(PKG)_FILE := PDCurses-$($(PKG)_VERSION).tar.gz +$(PKG)_URL := http://$(SOURCEFORGE_MIRROR)/pdcurses/$($(PKG)_FILE) +$(PKG)_DEPS := gcc + +define $(PKG)_UPDATE + wget -q -O- 'http://sourceforge.net/project/showfiles.php?group_id=30480&package_id=22452' | \ + grep 'PDCurses-' | \ + $(SED) -n 's,.*PDCurses-\([0-9][^>]*\)\.tar.*,\1,p' | \ + head -1 +endef + +define $(PKG)_BUILD + $(SED) 's,copy,cp,' -i '$(2)/win32/mingwin32.mak' + $(MAKE) -C '$(2)' -j '$(JOBS)' libs -f '$(2)/win32/mingwin32.mak' \ + CC='$(TARGET)-gcc' \ + LIBEXE='$(TARGET)-ar' \ + DLL=N \ + PDCURSES_SRCDIR=. \ + WIDE=Y \ + UTF8=Y + $(TARGET)-ranlib '$(2)/pdcurses.a' '$(2)/panel.a' + install -d '$(PREFIX)/$(TARGET)/include/' + install -m644 '$(2)/curses.h' '$(2)/panel.h' '$(2)/term.h' '$(PREFIX)/$(TARGET)/include/' + install -d '$(PREFIX)/$(TARGET)/lib/' + install -m644 '$(2)/pdcurses.a' '$(PREFIX)/$(TARGET)/lib/libpdcurses.a' + install -m644 '$(2)/panel.a' '$(PREFIX)/$(TARGET)/lib/libpanel.a' +endef |