blob: 2acb3b0d0304fc39c78eaf6008a0967349866e55 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
# This file is part of mingw-cross-env.
# See doc/index.html for further information.
# Mini-XML
PKG := mxml
$(PKG)_IGNORE :=
$(PKG)_VERSION := 2.6
$(PKG)_CHECKSUM := df180bd2e3890c97fa8a05dd131f9285468cffe1
$(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION)
$(PKG)_FILE := $($(PKG)_SUBDIR).tar.gz
$(PKG)_WEBSITE := http://www.minixml.org/
$(PKG)_URL := http://ftp.easysw.com/pub/$(PKG)/$($(PKG)_VERSION)/$($(PKG)_FILE)
$(PKG)_DEPS := gcc pthreads
define $(PKG)_UPDATE
wget -q -O- 'http://ftp.easysw.com/pub/mxml/?C=M;O=D' | \
$(SED) -n 's,.*<a href="\([0-9][^"]*\)/.*,\1,p' | \
head -1
endef
define $(PKG)_BUILD
cd '$(1)' && ./configure \
--host='$(TARGET)' \
--disable-shared \
--prefix='$(PREFIX)/$(TARGET)' \
--enable-threads
$(MAKE) -C '$(1)' -j '$(JOBS)' libmxml.a
$(MAKE) -C '$(1)' -j 1 install-libmxml.a
$(INSTALL) -d '$(PREFIX)/$(TARGET)/include'
$(INSTALL) -m644 '$(1)/mxml.h' '$(PREFIX)/$(TARGET)/include/'
$(INSTALL) -d '$(PREFIX)/$(TARGET)/lib/pkgconfig'
$(INSTALL) -m644 '$(1)/mxml.pc' '$(PREFIX)/$(TARGET)/lib/pkgconfig/'
'$(TARGET)-gcc' \
-W -Wall -Werror -ansi -pedantic \
'$(2).c' -o '$(PREFIX)/$(TARGET)/bin/test-mxml.exe' \
`'$(TARGET)-pkg-config' mxml --cflags --libs`
endef
|