1 # Maintainer: kevku <kevku@msn.com>
2 pkgname=libbackend-elements
5 pkgdesc="A collection of elementary building blocks for implementing compiler backends in c++"
7 makedepends=('build' 'boost-libs' 'libcult')
8 url="http://www.kolpackov.net/projects/libbackend-elements"
10 source=("ftp://kolpackov.net/pub/projects/$pkgname/1.7/$pkgname-$pkgver.tar.bz2")
11 md5sums=('1b7548faf0d20f90cb754b73ee3bd5b0')
14 cd "$srcdir/$pkgname-$pkgver"
16 mkdir -p build/{ld,cxx/gnu,import/libboost,import/libcult}
18 cat >> build/cxx/configuration-dynamic.make <<- EOF
23 cxx_pp_extra_options :=
24 cxx_extra_options := ${CXXFLAGS} -I/usr/include/boost
25 cxx_ld_extra_options := ${LDFLAGS}
27 cxx_extra_lib_paths :=
30 cat >> build/cxx/gnu/configuration-dynamic.make <<- EOF
33 cxx_gnu_optimization_options :=
37 cat >> build/import/libboost/configuration-dynamic.make <<- EOF
38 libboost_installed := y
42 cat >> build/import/libcult/configuration-dynamic.make <<- EOF
43 libcult_installed := y
46 cat >> build/ld/configuration-lib-dynamic.make <<- EOF
54 cd "$srcdir/$pkgname-$pkgver"
55 find backend-elements -iname "*.cxx" \
56 -o -iname "makefile" \
57 -o -iname "*.o" -o -iname "*.d" \
58 -o -iname "*.m4" -o -iname "*.l" \
59 -o -iname "*.cpp-options" -o -iname "*.so" | xargs rm -f
60 rm -rf backend-elements/arch
61 mkdir -p $pkgdir/usr/include
62 cp -r backend-elements $pkgdir/usr/include