1 # Maintainer: kevku <kevku@msn.com>
5 pkgdesc="An open-source, cross-platform W3C XML Schema to C++ data binding compiler"
7 url="http://www.codesynthesis.com/products/xsd"
9 depends=('boost-libs' 'libxsd-frontend' 'libbackend-elements' 'zlib')
10 makedepends=('build' 'boost')
11 source=("http://www.codesynthesis.com/download/$pkgname/3.3/$pkgname-$pkgver.tar.bz2"
12 "3.3.0-disable_examples_and_tests.patch"
13 "3.3.0-fix_include.patch"
14 "3.3.0-fix_tests.patch"
15 "3.3.0-xsdcxx-rename.patch")
16 md5sums=('3723c74d320dd1e23afcc07510ed0306'
17 'b8545d9d37d31a731c9fea425b3730b0'
18 '5e8e993f015bee8fa1f99bc416943031'
19 '1f346b4b4a54c7b78b51f2fe81ef8e7f'
20 '99df6f9149504acd3276306f7f33367e')
23 cd $srcdir/$pkgname-$pkgver
24 patch -Np1 -i "$srcdir/$pkgver-disable_examples_and_tests.patch"
25 patch -Np1 -i "$srcdir/$pkgver-xsdcxx-rename.patch"
26 patch -Np1 -i "$srcdir/$pkgver-fix_include.patch"
27 patch -Np1 -i "$srcdir/$pkgver-fix_tests.patch"
31 build/import/lib{ace,boost,cult,backend-elements,xerces-c,xqilla,xsd-frontend,z}
33 cat >> build/configuration-dynamic.make <<- EOF
39 xsd_with_boost_date_time := y
40 xsd_with_boost_serialization := y
43 cat >> build/cxx/configuration-dynamic.make <<- EOF
48 cxx_pp_extra_options :=
49 cxx_extra_options := ${CXXFLAGS} -I/usr/include/boost
50 cxx_ld_extra_options := ${LDFLAGS}
52 cxx_extra_lib_paths :=
55 cat >> build/cxx/gnu/configuration-dynamic.make <<- EOF
58 cxx_gnu_optimization_options :=
61 cat >> build/import/libace/configuration-dynamic.make <<- EOF
65 cat >> build/import/libbackend-elements/configuration-dynamic.make <<- EOF
66 libbackend_elements_installed := y
69 cat >> build/import/libboost/configuration-dynamic.make <<- EOF
70 libboost_installed := y
75 cat >> build/import/libcult/configuration-dynamic.make <<- EOF
76 libcult_installed := y
79 cat >> build/import/libxerces-c/configuration-dynamic.make <<- EOF
80 libxerces_c_installed := y
83 cat >> build/import/libxqilla/configuration-dynamic.make <<- EOF
84 libxqilla_installed := y
87 cat >> build/import/libxsd-frontend/configuration-dynamic.make <<- EOF
88 libxsd_frontend_installed := y
91 cat >> build/import/libz/configuration-dynamic.make <<- EOF
99 cd $srcdir/$pkgname-$pkgver/
100 make install_prefix="$pkgdir/usr" install
101 # Renaming binary/manpage to avoid collision with mono-2.0's xsd/xsd2
102 mv $pkgdir/usr/bin/xsd{,cxx}
103 mv $pkgdir/usr/share/man/man1/xsd{,cxx}.1