summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorRod Kay2016-07-03 09:33:31 +1000
committerRod Kay2016-07-03 09:33:31 +1000
commite1431e55cb07b3dba200873de44711373e83f144 (patch)
treeef495ff8330c9c8e4b29721d21dda71475fcdb4e
parent541917f4f405de6486aa374fb0dcadbcf9ffe0b1 (diff)
downloadaur-e1431e55cb07b3dba200873de44711373e83f144.tar.gz
Add 'Makefile.archy' back in.
-rw-r--r--.SRCINFO14
-rw-r--r--Makefile.archy153
-rw-r--r--PKGBUILD268
-rw-r--r--generic_gpr.in19
4 files changed, 348 insertions, 106 deletions
diff --git a/.SRCINFO b/.SRCINFO
index f21d6d68d3b..8730d3d9e43 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,20 +1,20 @@
# Generated by mksrcinfo v8
-# Sat Jul 2 00:14:29 UTC 2016
+# Sat Jul 2 23:33:06 UTC 2016
pkgbase = xmlada
pkgdesc = A full XML suite for Ada
pkgver = 2016
- pkgrel = 2
+ pkgrel = 1
url = http://libre.adacore.com/libre/tools/xmlada/
arch = i686
arch = x86_64
license = GPL
depends = gcc-ada
source = http://mirrors.cdn.adacore.com/art/57399978c7a447658e0affc0
- source = patch-aclocal.m4
- source = patch-Makefile.in
- sha1sums = a9c840d9d05ed865aa7c960d9f27cf7cd93e12b9
- sha1sums = 20fa4ccacd2cebd2b0b349dc11371730a50a0fd2
- sha1sums = 33ac945685c79befd86c3c4f6093202a5e7b209a
+ source = Makefile.archy
+ source = generic_gpr.in
+ md5sums = 631957d2f55277f1d58a68186fbf5022
+ md5sums = 6f4761c7b3374c27828ba573f0463069
+ md5sums = cde06f485e180f4cc82bcdb450d36153
pkgname = xmlada
diff --git a/Makefile.archy b/Makefile.archy
new file mode 100644
index 00000000000..b5a3a0cfcbf
--- /dev/null
+++ b/Makefile.archy
@@ -0,0 +1,153 @@
+ADALIB!= gnatls -v | grep adalib | awk '{print $$1}'
+
+STATIC_FLAGS= -gnatQ -O2 -gnatn -gnatp -gnatA -j${PROCESSORS}
+DYNAMIC_FLAGS= -fPIC ${STATIC_FLAGS}
+
+LIBVER=2016
+CURRENT_FOLDER=$(shell pwd)
+
+#
+# unicode depends on nothing
+#
+
+unicode/lib/static/libxmlada_unicode.a: unicode/dummy_unicode.adb
+ @echo building static $@ library
+ @rm -f $@
+ gnatmake -c $^ -D unicode/obj/static ${STATIC_FLAGS}
+ rm unicode/obj/static/dummy*
+ ar cq $@ unicode/obj/static/*.o
+ ranlib $@
+
+unicode/lib/relocatable/libxmlada_unicode.so: unicode/dummy_unicode.adb
+ @echo building shared library $@
+ @rm -f $@ $@.${LIBVER}
+ gnatmake -c $^ -D unicode/obj/relocatable ${DYNAMIC_FLAGS}
+ rm unicode/obj/relocatable/dummy*
+ gcc -shared -Wl,-rpath,${PREFIX}/lib/xmlada/relocatable \
+ -L${ADALIB} -lgnat -Wl,-rpath,${ADALIB} \
+ -o $@.${LIBVER} -Wl,-soname,$@.${LIBVER} \
+ unicode/obj/relocatable/*.o
+ cd unicode/lib/relocatable && ln -s ./libxmlada_unicode.so.${LIBVER} libxmlada_unicode.so
+
+#
+# input sources depends on unicode
+#
+
+input_sources/lib/static/libxmlada_input_sources.a: input_sources/dummy_input_sources.adb unicode/lib/static/libxmlada_unicode.a
+ @echo building static $@ library
+ @rm -f $@
+ gnatmake -c input_sources/dummy_input_sources.adb -D input_sources/obj/static -aOunicode/obj/static -aIunicode ${STATIC_FLAGS}
+ rm input_sources/obj/static/dummy*
+ ar cq $@ input_sources/obj/static/*.o
+ ranlib $@
+
+input_sources/lib/relocatable/libxmlada_input_sources.so: input_sources/dummy_input_sources.adb unicode/lib/relocatable/libxmlada_unicode.so
+ @echo building shared library $@
+ @rm -f $@ $@.${LIBVER}
+ gnatmake -c input_sources/dummy_input_sources.adb -D input_sources/obj/relocatable -aOunicode/obj/relocatable -aIunicode ${DYNAMIC_FLAGS}
+ rm input_sources/obj/relocatable/dummy*
+ gcc -shared -Wl,-rpath,${PREFIX}/lib/xmlada/relocatable \
+ -L${ADALIB} -lgnat -Wl,-rpath,${ADALIB} \
+ -Lunicode/lib/relocatable -lxmlada_unicode \
+ -o $@.${LIBVER} -Wl,-soname,$@.${LIBVER} \
+ input_sources/obj/relocatable/*.o
+ cd input_sources/lib/relocatable && ln -s ./libxmlada_input_sources.so.${LIBVER} libxmlada_input_sources.so
+
+#
+# sax depends on input sources and unicode (sufficent to limit to I.S)
+#
+
+sax/lib/static/libxmlada_sax.a: sax/dummy_sax.adb input_sources/lib/static/libxmlada_input_sources.a
+ @echo building static $@ library
+ @rm -f $@
+ mkdir -p sax/obj/static
+ mkdir -p sax/lib/static
+ gnatmake -c sax/dummy_sax.adb -D sax/obj/static -aOunicode/obj/static -aOinput_sources/obj/static -aIunicode -aIinput_sources ${STATIC_FLAGS}
+ rm sax/obj/static/dummy*
+ ar cq $@ sax/obj/static/*.o
+ ranlib $@
+
+sax/lib/relocatable/libxmlada_sax.so: sax/dummy_sax.adb input_sources/lib/relocatable/libxmlada_input_sources.so
+ @echo building shared library $@
+ @rm -f $@ $@.${LIBVER}
+ mkdir -p sax/obj/relocatable
+ mkdir -p sax/lib/relocatable
+ gnatmake -c sax/dummy_sax.adb -D sax/obj/relocatable -aOunicode/obj/relocatable -aOinput_sources/obj/relocatable -aIunicode -aIinput_sources ${DYNAMIC_FLAGS}
+ rm sax/obj/relocatable/dummy*
+ gcc -shared -Wl,-rpath,${PREFIX}/lib/xmlada/relocatable \
+ -L${ADALIB} -lgnat -Wl,-rpath,${ADALIB} \
+ -Lunicode/lib/relocatable -lxmlada_unicode \
+ -Linput_sources/lib/relocatable -lxmlada_input_sources \
+ -o $@.${LIBVER} -Wl,-soname,$@.${LIBVER} \
+ sax/obj/relocatable/*.o
+ cd sax/lib/relocatable && ln -s ./libxmlada_sax.so.${LIBVER} libxmlada_sax.so
+
+#
+# dom depends on three other libraries (sufficent to limit to sax)
+#
+
+dom/lib/static/libxmlada_dom.a: dom/dummy_dom.adb sax/lib/static/libxmlada_sax.a
+ @echo building static $@ library
+ @rm -f $@
+ gnatmake -c dom/dummy_dom.adb -D dom/obj/static -aOunicode/obj/static -aOinput_sources/obj/static -aOsax/obj/static -aIunicode -aIinput_sources -aIsax ${STATIC_FLAGS}
+ rm dom/obj/static/dummy*
+ ar cq $@ dom/obj/static/*.o
+ ranlib $@
+
+dom/lib/relocatable/libxmlada_dom.so: dom/dummy_dom.adb sax/lib/relocatable/libxmlada_sax.so
+ @echo building shared library $@
+ @rm -f $@ $@.${LIBVER}
+ gnatmake -c dom/dummy_dom.adb -D dom/obj/relocatable -aOunicode/obj/relocatable -aOinput_sources/obj/relocatable -aOsax/obj/relocatable -aIunicode -aIinput_sources -aIsax ${DYNAMIC_FLAGS}
+ rm dom/obj/relocatable/dummy*
+ gcc -shared -Wl,-rpath,${PREFIX}/lib/xmlada/relocatable \
+ -L${ADALIB} -lgnat -Wl,-rpath,${ADALIB} \
+ -Lunicode/lib/relocatable -lxmlada_unicode \
+ -Linput_sources/lib/relocatable -lxmlada_input_sources \
+ -Lsax/lib/relocatable -lxmlada_sax \
+ -o $@.${LIBVER} -Wl,-soname,$@.${LIBVER} \
+ dom/obj/relocatable/*.o
+ cd dom/lib/relocatable && ln -s ./libxmlada_dom.so.${LIBVER} libxmlada_dom.so
+
+#
+# schema depends on four other libraries (sufficent to limit to dom)
+#
+
+schema/lib/static/libxmlada_schema.a: schema/dummy_schema.adb dom/lib/static/libxmlada_dom.a
+ @echo building static $@ library
+ @rm -f $@
+ mkdir -p schema/obj/static
+ mkdir -p schema/lib/static
+ gnatmake -c schema/dummy_schema.adb -D schema/obj/static -aOunicode/obj/static -aOinput_sources/obj/static -aOsax/obj/static -aOdom/obj/static -aIunicode -aIinput_sources -aIsax -aIdom ${STATIC_FLAGS}
+ rm schema/obj/static/dummy*
+ ar cq $@ schema/obj/static/*.o
+ ranlib $@
+
+schema/lib/relocatable/libxmlada_schema.so: schema/dummy_schema.adb dom/lib/relocatable/libxmlada_dom.so
+ @echo building shared library $@
+ @rm -f $@ $@.${LIBVER}
+ mkdir -p schema/obj/relocatable
+ mkdir -p schema/lib/relocatable
+ gnatmake -c schema/dummy_schema.adb -D schema/obj/relocatable -aOunicode/obj/relocatable -aOinput_sources/obj/relocatable -aOsax/obj/relocatable -aOdom/obj/relocatable -aIunicode -aIinput_sources -aIsax -aIdom ${DYNAMIC_FLAGS}
+ rm schema/obj/relocatable/dummy*
+ gcc -shared -Wl,-rpath,${PREFIX}/lib/xmlada/relocatable \
+ -L${ADALIB} -lgnat -Wl,-rpath,${ADALIB} \
+ -Lunicode/lib/relocatable -lxmlada_unicode \
+ -Linput_sources/lib/relocatable -lxmlada_input_sources \
+ -Lsax/lib/relocatable -lxmlada_sax \
+ -Ldom/lib/relocatable -lxmlada_dom \
+ -o $@.${LIBVER} -Wl,-soname,$@.${LIBVER} \
+ schema/obj/relocatable/*.o
+ cd schema/lib/relocatable && ln -s ./libxmlada_schema.so.${LIBVER} libxmlada_schema.so
+
+
+all: schema/lib/static/libxmlada_schema.a schema/lib/relocatable/libxmlada_schema.so
+
+.PHONY: all
+
+
+#
+# Sphinx documentation
+#
+
+gen-docs:
+ ${MAKE} -e -C docs html
diff --git a/PKGBUILD b/PKGBUILD
index 38e2d4ebd71..b7ca1b299ca 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -4,7 +4,7 @@
pkgname=xmlada
pkgver=2016
-pkgrel=2
+pkgrel=1
pkgdesc="A full XML suite for Ada"
arch=('i686' 'x86_64')
@@ -14,60 +14,151 @@ license=('GPL')
depends=("gcc-ada")
source=(http://mirrors.cdn.adacore.com/art/57399978c7a447658e0affc0
- patch-aclocal.m4
- patch-Makefile.in)
+ Makefile.archy
+ generic_gpr.in)
-sha1sums=('a9c840d9d05ed865aa7c960d9f27cf7cd93e12b9'
- '20fa4ccacd2cebd2b0b349dc11371730a50a0fd2'
- '33ac945685c79befd86c3c4f6093202a5e7b209a')
+md5sums=('631957d2f55277f1d58a68186fbf5022'
+ '6f4761c7b3374c27828ba573f0463069'
+ 'cde06f485e180f4cc82bcdb450d36153')
+GREP=grep
+AWK=gawk
+ECHO=echo
+SORT=sort
+MKDIR=mkdir
+INSTALL_DATA=install
+INSTALL_SCRIPT=install
+RM=rm
+FIND=find
+PRINTF=printf
+SED=sed
+REINPLACE_CMD=sed
+
prepare()
{
+ WRKSRC=$srcdir/$pkgname-gpl-$pkgver-src
+ FILESDIR=$srcdir
+
+ DUNICODE=$WRKSRC/unicode/dummy_unicode.adb
+ DINPSRC=${WRKSRC}/input_sources/dummy_input_sources.adb
+ DSAX=${WRKSRC}/sax/dummy_sax.adb
+ DDOM=${WRKSRC}/dom/dummy_dom.adb
+ DSCHEMA=${WRKSRC}/schema/dummy_schema.adb
+
cd $srcdir/$pkgname-gpl-$pkgver-src
-
- patch -p0 -i ../patch-aclocal.m4
- patch -p0 -i ../patch-Makefile.in
+ # dummy-unicode:
+ ${GREP} --no-filename ^package ${WRKSRC}/unicode/unicode-*.ads | \
+ ${AWK} '{print "with " $$2 ";"}' | ${SORT} > ${DUNICODE}
+ ${ECHO} 'procedure dummy_unicode is' >> ${DUNICODE}
+ ${ECHO} 'begin' >> ${DUNICODE}
+ ${ECHO} ' null;' >> ${DUNICODE}
+ ${ECHO} 'end dummy_unicode;' >> ${DUNICODE}
+
+ sed 's/ is;/;/g' ${DUNICODE} > tmp
+ sed 's/with package/with/g' tmp > ${DUNICODE}
+
+ # dummy-input_sources:
+ ${GREP} --no-filename ^package ${WRKSRC}/input_sources/input_sources-*.ads | \
+ ${AWK} '{print "with " $$2 ";"}' | ${SORT} > ${DINPSRC}
+ ${ECHO} 'procedure dummy_input_sources is' >> ${DINPSRC}
+ ${ECHO} 'begin' >> ${DINPSRC}
+ ${ECHO} ' null;' >> ${DINPSRC}
+ ${ECHO} 'end dummy_input_sources;' >> ${DINPSRC}
+
+ sed 's/ is;/;/g' ${DINPSRC} > tmp
+ sed 's/with package/with/g' tmp > ${DINPSRC}
+
+ # dummy-sax:
+ ${GREP} --no-filename ^package ${WRKSRC}/sax/sax-*.ads | \
+ ${AWK} '{print "with " $$2 ";"}' | ${SORT} > ${DSAX}
+ ${ECHO} 'procedure dummy_sax is' >> ${DSAX}
+ ${ECHO} 'begin' >> ${DSAX}
+ ${ECHO} ' null;' >> ${DSAX}
+ ${ECHO} 'end dummy_sax;' >> ${DSAX}
+
+ sed 's/ is;/;/g' ${DSAX} > tmp
+ sed 's/with package/with/g' tmp > ${DSAX}
+
+ # dummy-dom:
+ ${GREP} --no-filename ^package ${WRKSRC}/dom/dom-*.ads | \
+ ${AWK} '{print "with " $$2 ";"}' | ${SORT} > ${DDOM}
+ ${ECHO} 'procedure dummy_dom is' >> ${DDOM}
+ ${ECHO} 'begin' >> ${DDOM}
+ ${ECHO} ' null;' >> ${DDOM}
+ ${ECHO} 'end dummy_dom;' >> ${DDOM}
+
+ sed 's/ is;/;/g' ${DDOM} > tmp
+ sed 's/with package/with/g' tmp > ${DDOM}
+
+ # dummy-schema:
+ ${GREP} --no-filename ^package ${WRKSRC}/schema/schema-*.ads | \
+ ${AWK} '{print "with " $$2 ";"}' | ${SORT} > ${DSCHEMA}
+ ${ECHO} 'procedure dummy_schema is' >> ${DSCHEMA}
+ ${ECHO} 'begin' >> ${DSCHEMA}
+ ${ECHO} ' null;' >> ${DSCHEMA}
+ ${ECHO} 'end dummy_schema;' >> ${DSCHEMA}
+
+ sed 's/ is;/;/g' ${DSCHEMA} > tmp
+ sed 's/with package/with/g' tmp > ${DSCHEMA}
+
+
+ # vital gpr files are missing from GPL 2015, recreate them
+ #
+
+ PORTVERSION="2016"
+
+ FIND1=$(cd ${WRKSRC}/unicode && find * -maxdepth 0 \( -name "unicode*.ads" -o -name "unicode*.adb" \) -exec printf ', "%s"' {} \; )
+ FIND2=$(cd ${WRKSRC}/input_sources && find * -maxdepth 0 \( -name "input*.ad[bs]" -o -name "input_sources.ads" \) -exec printf ', "%s"' {} \; )
+ FIND3=$(cd ${WRKSRC}/sax && find * -maxdepth 0 -name "sax-*.ad[bs]" -exec printf ', "%s"' {} \; )
+ FIND4=$(cd ${WRKSRC}/dom && find * -maxdepth 0 -name "dom-*.ad[bs]" -exec printf ', "%s"' {} \; )
+ FIND5=$(cd ${WRKSRC}/schema && find * -maxdepth 0 \( -name "schema*.ad[bs]" -o -name "schema.ads" \) -exec printf ', "%s"' {} \; )
+
+
+ ${SED} -e '/^with/d' -e 's|@ZONE@|unicode|' \
+ -e "s|@FILES@|${FIND1}|" \
+ -e 's|@VERSION@|2016|' ${FILESDIR}/generic_gpr.in \
+ > ${WRKSRC}/distrib/xmlada_unicode.gpr
+
+ ${SED} -e 's|@DEPENDS@|unicode|' -e 's|@ZONE@|input_sources|' \
+ -e "s|@FILES@|${FIND2}|" \
+ -e 's|@VERSION@|2016|' ${FILESDIR}/generic_gpr.in \
+ > ${WRKSRC}/distrib/xmlada_input_sources.gpr
+
+ ${SED} -e 's|@DEPENDS@|input_sources|' -e 's|@ZONE@|sax|' \
+ -e "s|@FILES@|${FIND3}|" \
+ -e 's|@VERSION@|2016|' ${FILESDIR}/generic_gpr.in \
+ > ${WRKSRC}/distrib/xmlada_sax.gpr
+
+ ${SED} -e 's|@DEPENDS@|sax|' -e 's|@ZONE@|dom|' \
+ -e "s|@FILES@|${FIND4}|" \
+ -e 's|@VERSION@|2016|' ${FILESDIR}/generic_gpr.in \
+ > ${WRKSRC}/distrib/xmlada_dom.gpr
+
+ ${SED} -e 's|@DEPENDS@|dom|' -e 's|@ZONE@|schema|' \
+ -e "s|@FILES@|${FIND5}|" \
+ -e 's|@VERSION@|2016|' ${FILESDIR}/generic_gpr.in \
+ > ${WRKSRC}/distrib/xmlada_schema.gpr
+
+ # Since we want to pull in all 5 libs, we only need to specify schema
+ #
+ ${REINPLACE_CMD} -i -e '/unicode/d' ${WRKSRC}/distrib/xmlada.gpr
}
-build()
+build()
{
cd $srcdir/$pkgname-gpl-$pkgver-src
- autoconf
./configure --prefix=/usr
- make static relocatable
-
-
- rm -fr lib
- mkdir -p lib/xmlada/xmlada_dom.relocatable
-
- cp ./dom/lib/relocatable/libxmlada_dom.so lib/xmlada/xmlada_dom.relocatable
- cp ./dom/lib/relocatable/libxmlada_dom.so.2016 lib/xmlada/xmlada_dom.relocatable
- cp ./input_sources/lib/relocatable/libxmlada_input_sources.so lib/xmlada/xmlada_input.relocatable
- cp ./input_sources/lib/relocatable/libxmlada_input_sources.so.2016 lib/xmlada/xmlada_input.relocatable
- cp ./sax/lib/relocatable/libxmlada_sax.so lib/xmlada/xmlada_sax.relocatable
- cp ./sax/lib/relocatable/libxmlada_sax.so.2016 lib/xmlada/xmlada_sax.relocatable
- cp ./schema/lib/relocatable/libxmlada_schema.so lib/xmlada/xmlada_schema.relocatable
- cp ./schema/lib/relocatable/libxmlada_schema.so.2016 lib/xmlada/xmlada_schema.relocatable
- cp ./unicode/lib/relocatable/libxmlada_unicode.so lib/xmlada/xmlada_unicode.relocatable
- cp ./unicode/lib/relocatable/libxmlada_unicode.so.2016 lib/xmlada/xmlada_unicode.relocatable
-
- ln -s xmlada/xmlada_dom.relocatable/libxmlada_dom.so.2016 lib/libxmlada_dom.so.2016
- ln -s xmlada/xmlada_input.relocatable/libxmlada_input_sources.so.2016 lib/libxmlada_input_sources.so.2016
- ln -s xmlada/xmlada_sax.relocatable/libxmlada_sax.so.2016 lib/libxmlada_sax.so.2016
- ln -s xmlada/xmlada_schema.relocatable/libxmlada_schema.so.2016 lib/libxmlada_schema.so.2016
- ln -s xmlada/xmlada_unicode.relocatable/libxmlada_unicode.so.2016 lib/libxmlada_unicode.so.2016
-}
+ PROCESSORS=5 make -f ../Makefile.archy all
+}
-INSTALL_DATA=install
-INSTALL_SCRIPT=install
package()
{
@@ -78,73 +169,52 @@ package()
WRKSRC=$srcdir/$pkgname-gpl-$pkgver-src
- mkdir -p \
+ ${MKDIR} -p \
${STAGEDIR}${PREFIX}/bin \
${STAGEDIR}${PREFIX}/include/xmlada \
${STAGEDIR}${PREFIX}/lib/gnat \
- ${STAGEDIR}${PREFIX}/share/gps/plug-ins \
- ${STAGEDIR}${PREFIX}/lib/xmlada/xmlada_dom.relocatable \
- ${STAGEDIR}${PREFIX}/lib/xmlada/xmlada_input.relocatable \
- ${STAGEDIR}${PREFIX}/lib/xmlada/xmlada_sax.relocatable \
- ${STAGEDIR}${PREFIX}/lib/xmlada/xmlada_schema.relocatable \
- ${STAGEDIR}${PREFIX}/lib/xmlada/xmlada_unicode.relocatable \
- ${STAGEDIR}${PREFIX}/lib/xmlada/xmlada_dom.static \
- ${STAGEDIR}${PREFIX}/lib/xmlada/xmlada_input.static \
- ${STAGEDIR}${PREFIX}/lib/xmlada/xmlada_sax.static \
- ${STAGEDIR}${PREFIX}/lib/xmlada/xmlada_schema.static \
- ${STAGEDIR}${PREFIX}/lib/xmlada/xmlada_unicode.static \
- ${STAGEDIR}${PREFIX}/include/xmlada/xmlada_dom.relocatable \
- ${STAGEDIR}${PREFIX}/include/xmlada/xmlada_input.relocatable \
- ${STAGEDIR}${PREFIX}/include/xmlada/xmlada_sax.relocatable \
- ${STAGEDIR}${PREFIX}/include/xmlada/xmlada_schema.relocatable \
- ${STAGEDIR}${PREFIX}/include/xmlada/xmlada_unicode.relocatable \
- ${STAGEDIR}${PREFIX}/include/xmlada/xmlada_dom.static \
- ${STAGEDIR}${PREFIX}/include/xmlada/xmlada_input.static \
- ${STAGEDIR}${PREFIX}/include/xmlada/xmlada_sax.static \
- ${STAGEDIR}${PREFIX}/include/xmlada/xmlada_schema.static \
- ${STAGEDIR}${PREFIX}/include/xmlada/xmlada_unicode.static
-
+ ${STAGEDIR}${PREFIX}/lib/xmlada/relocatable \
+ ${STAGEDIR}${PREFIX}/lib/xmlada/static \
+ ${STAGEDIR}${PREFIX}/share/gps/plug-ins
# ${STAGEDIR}${DOCSDIR}
-
- ${INSTALL_DATA} ${WRKSRC}/dom/*.ad[bs] ${STAGEDIR}${PREFIX}/include/xmlada/xmlada_dom.relocatable
- ${INSTALL_DATA} ${WRKSRC}/input_sources/*.ad[bs] ${STAGEDIR}${PREFIX}/include/xmlada/xmlada_input.relocatable
- ${INSTALL_DATA} ${WRKSRC}/sax/*.ad[bs] ${STAGEDIR}${PREFIX}/include/xmlada/xmlada_sax.relocatable
- ${INSTALL_DATA} ${WRKSRC}/schema/*.ad[bs] ${STAGEDIR}${PREFIX}/include/xmlada/xmlada_schema.relocatable
- ${INSTALL_DATA} ${WRKSRC}/unicode/*.ad[bs] ${STAGEDIR}${PREFIX}/include/xmlada/xmlada_unicode.relocatable
-
- ${INSTALL_DATA} ${WRKSRC}/dom/*.ad[bs] ${STAGEDIR}${PREFIX}/include/xmlada/xmlada_dom.static
- ${INSTALL_DATA} ${WRKSRC}/input_sources/*.ad[bs] ${STAGEDIR}${PREFIX}/include/xmlada/xmlada_input.static
- ${INSTALL_DATA} ${WRKSRC}/sax/*.ad[bs] ${STAGEDIR}${PREFIX}/include/xmlada/xmlada_sax.static
- ${INSTALL_DATA} ${WRKSRC}/schema/*.ad[bs] ${STAGEDIR}${PREFIX}/include/xmlada/xmlada_schema.static
- ${INSTALL_DATA} ${WRKSRC}/unicode/*.ad[bs] ${STAGEDIR}${PREFIX}/include/xmlada/xmlada_unicode.static
-
- ${INSTALL_DATA} ${WRKSRC}/dom/lib/relocatable/* ${STAGEDIR}${PREFIX}/lib/xmlada/xmlada_dom.relocatable
- ${INSTALL_DATA} ${WRKSRC}/input_sources/lib/relocatable/* ${STAGEDIR}${PREFIX}/lib/xmlada/xmlada_input.relocatable
- ${INSTALL_DATA} ${WRKSRC}/sax/lib/relocatable/* ${STAGEDIR}${PREFIX}/lib/xmlada/xmlada_sax.relocatable
- ${INSTALL_DATA} ${WRKSRC}/schema/lib/relocatable/* ${STAGEDIR}${PREFIX}/lib/xmlada/xmlada_schema.relocatable
- ${INSTALL_DATA} ${WRKSRC}/unicode/lib/relocatable/* ${STAGEDIR}${PREFIX}/lib/xmlada/xmlada_unicode.relocatable
-
- ${INSTALL_DATA} ${WRKSRC}/dom/lib/static/* ${STAGEDIR}${PREFIX}/lib/xmlada/xmlada_dom.static
- ${INSTALL_DATA} ${WRKSRC}/input_sources/lib/static/* ${STAGEDIR}${PREFIX}/lib/xmlada/xmlada_input.static
- ${INSTALL_DATA} ${WRKSRC}/sax/lib/static/* ${STAGEDIR}${PREFIX}/lib/xmlada/xmlada_sax.static
- ${INSTALL_DATA} ${WRKSRC}/schema/lib/static/* ${STAGEDIR}${PREFIX}/lib/xmlada/xmlada_schema.static
- ${INSTALL_DATA} ${WRKSRC}/unicode/lib/static/* ${STAGEDIR}${PREFIX}/lib/xmlada/xmlada_unicode.static
-
-
- ${INSTALL_DATA} \
- ${WRKSRC}/distrib/xml*.gpr \
- ${WRKSRC}/dom/xml*.gpr \
- ${WRKSRC}/input_sources/xml*.gpr \
- ${WRKSRC}/sax/xml*.gpr \
- ${WRKSRC}/schema/xml*.gpr \
- ${WRKSRC}/unicode/xml*.gpr \
+ ${INSTALL_DATA} ${WRKSRC}/dom/*.ad[bs] \
+ ${WRKSRC}/input_sources/*.ad[bs] \
+ ${WRKSRC}/sax/*.ad[bs] \
+ ${WRKSRC}/schema/*.ad[bs] \
+ ${WRKSRC}/unicode/*.ad[bs] \
+ ${STAGEDIR}${PREFIX}/include/xmlada
+
+ ${RM} ${STAGEDIR}${PREFIX}/include/xmlada/dummy_*.adb
+
+ ${INSTALL_DATA} \
+ ${WRKSRC}/dom/obj/relocatable/*.ali \
+ ${WRKSRC}/input_sources/obj/relocatable/*.ali \
+ ${WRKSRC}/sax/obj/relocatable/*.ali \
+ ${WRKSRC}/schema/obj/relocatable/*.ali \
+ ${WRKSRC}/unicode/obj/relocatable/*.ali \
+ ${STAGEDIR}${PREFIX}/lib/xmlada/relocatable
+
+ cp -av \
+ ${WRKSRC}/dom/lib/relocatable/* \
+ ${WRKSRC}/input_sources/lib/relocatable/* \
+ ${WRKSRC}/sax/lib/relocatable/* \
+ ${WRKSRC}/schema/lib/relocatable/* \
+ ${WRKSRC}/unicode/lib/relocatable/* \
+ ${STAGEDIR}${PREFIX}/lib/xmlada/relocatable
+
+ ${INSTALL_DATA} ${WRKSRC}/dom/obj/static/*.ali \
+ ${WRKSRC}/input_sources/obj/static/*.ali \
+ ${WRKSRC}/sax/obj/static/*.ali \
+ ${WRKSRC}/schema/obj/static/*.ali \
+ ${WRKSRC}/unicode/obj/static/*.ali \
+ ${WRKSRC}/dom/lib/static/* \
+ ${WRKSRC}/input_sources/lib/static/* \
+ ${WRKSRC}/sax/lib/static/* \
+ ${WRKSRC}/schema/lib/static/* \
+ ${WRKSRC}/unicode/lib/static/* \
+ ${STAGEDIR}${PREFIX}/lib/xmlada/static
+
+ ${INSTALL_DATA} ${WRKSRC}/distrib/xml*.gpr \
${STAGEDIR}${PREFIX}/lib/gnat
-
-
- mv lib/libxmlada_dom.so.2016 ${STAGEDIR}${PREFIX}/lib
- mv lib/libxmlada_input_sources.so.2016 ${STAGEDIR}${PREFIX}/lib
- mv lib/libxmlada_sax.so.2016 ${STAGEDIR}${PREFIX}/lib
- mv lib/libxmlada_schema.so.2016 ${STAGEDIR}${PREFIX}/lib
- mv lib/libxmlada_unicode.so.2016 ${STAGEDIR}${PREFIX}/lib
}
diff --git a/generic_gpr.in b/generic_gpr.in
new file mode 100644
index 00000000000..f3ed30face7
--- /dev/null
+++ b/generic_gpr.in
@@ -0,0 +1,19 @@
+with "xmlada_@DEPENDS@";
+project XmlAda_@ZONE@ is
+ for Library_Name use "xmlada_@ZONE@";
+ Version := "@VERSION@";
+ So_Ext := ".so";
+
+ type Xmlada_Kind_Type is ("static", "relocatable");
+ Xmlada_Kind : Xmlada_Kind_Type := external ("LIBRARY_TYPE", "static");
+ Libdir := "../../lib/xmlada/" & Xmlada_Kind;
+
+ for Library_Kind use Xmlada_Kind;
+ for Library_Dir use Libdir;
+ for Library_Version use
+ "lib" & Project'Library_Name & So_Ext & "." & Version;
+ for Source_Dirs use ("../../include/xmlada");
+ for Source_Files use ("@ZONE@.ads"@FILES@);
+ for Externally_Built use "true";
+
+end XmlAda_@ZONE@;