define the version in a variable and split the options onto separate lines.
[AROS-Contrib.git] / development / libs / libxml2 / mmakefile.src
blob48177dd2c3cf3742453b4ebed91242f824e8ee7c
1 # Copyright 2008-2019, The AROS Development Team. All rights reserved.
2 # $Id$
4 include $(SRCDIR)/config/aros-contrib.cfg
6 #MM- contrib-development : development-libxml2
7 #MM- development-libxml2 : workbench-libs-z development-libiconv
9 XML2_VERS := 2.7.8
11 REPOSITORIES := ftp://xmlsoft.org/libxml2 \
12  http://bbgentoo.ilb.ru/distfiles \
13  https://ftp.osuosl.org/pub/blfs/conglomeration/libxml2 \
14  https://download.videolan.org/contrib/libxml2
16 XML2_OPTIONS = \
17     --disable-shared \
18     --with-http=no \
19     --with-ftp=no \
20     --with-modules=no \
21     --with-mem-debug=no \
22     --with-iconv=no \
23     --with-debug=no \
24     --with-run-debug=no \
25     --enable-shared=no \
26     --with-threads=no \
27     --with-python=no \
28     --libdir=$(AROS_LIB)
30 XML2_CFLAGS=
31 ifneq (x86_64,$(AROS_TARGET_CPU))
32 XML2_CFLAGS+=$(OPTIMIZATION_CFLAGS)
33 endif
35 %fetch_and_build_gnu_development package=libxml2 version=$(XML2_VERS) patch=yes \
36     package_repo=$(REPOSITORIES) suffixes="tar.gz"\
37     extracflags="$(XML2_CFLAGS)" extraoptions="$(XML2_OPTIONS)" nlsflag=no xflag=no