diff options
author | Mark Brand <mabrand@mabrand.nl> | 2015-09-26 10:20:33 (GMT) |
---|---|---|
committer | Mark Brand <mabrand@mabrand.nl> | 2015-09-27 23:55:27 (GMT) |
commit | bfed636462f892c49f5bdae7b4303cc11500d0d8 (patch) | |
tree | 316fa6f0f5b378d275db3712c2ab01f2d74a41eb /src/unrtf.mk | |
parent | 8910ca8364c5d2a18d974ffabdc31e7753f11372 (diff) | |
download | mxe-bfed636462f892c49f5bdae7b4303cc11500d0d8.zip mxe-bfed636462f892c49f5bdae7b4303cc11500d0d8.tar.gz mxe-bfed636462f892c49f5bdae7b4303cc11500d0d8.tar.bz2 |
new package: unrtf
Diffstat (limited to 'src/unrtf.mk')
-rw-r--r-- | src/unrtf.mk | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/src/unrtf.mk b/src/unrtf.mk new file mode 100644 index 0000000..850cc09 --- /dev/null +++ b/src/unrtf.mk @@ -0,0 +1,24 @@ +# This file is part of MXE. +# See index.html for further information. + +PKG := unrtf +$(PKG)_VERSION := 0.21.9 +$(PKG)_CHECKSUM := 22a37826f96d754e335fb69f8036c068c00dd01ee9edd9461a36df0085fb8ddd +$(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION) +$(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.gz +$(PKG)_URL := http://ftp.gnu.org/gnu/$(PKG)/$($(PKG)_FILE) +$(PKG)_DEPS := gcc libiconv + +define $(PKG)_UPDATE + $(WGET) -q -O- 'http://git.savannah.gnu.org/cgit/unrtf.git/refs/' | \ + $(SED) -n "s,.*<a href='/cgit/unrtf.git/tag/?id=v\([0-9.]*\)'>.*,\1,p" | \ + head -1 +endef + +define $(PKG)_BUILD + cd '$(1)' && ./bootstrap + cd '$(1)' && ./configure \ + $(MXE_CONFIGURE_OPTS) \ + LIBS='-liconv -lws2_32' + $(MAKE) -C '$(1)' -j '$(JOBS)' install +endef |