1 # Maintainer: imotec <info(at)imotec(dot)nl>
5 pkgdesc="Dev extensions from debian for antlr2."
7 url="http://www.antlr2.org/"
9 depends=('java-runtime' 'sh')
10 makedepends=('java-environment' 'sh')
11 provides=("antlr2-dev")
12 source=("http://www.antlr2.org/download/antlr-${pkgver}.tar.gz"
15 md5sums=('01cc9a2a454dd33dcd8c856ec89af090'
16 '8574c93f40e6477e83c29f9b07de49da'
17 '920430b9b0215411a13b6c66473cfba7')
22 mkdir -p $pkgdir/usr/bin
23 mkdir -p $pkgdir/usr/lib
27 cd "${srcdir}/antlr-${pkgver}"
28 patch -Np0 -i ${srcdir}/gcc4.4.patch
31 ./configure --prefix=/usr \
36 make -C lib/cpp CXXFLAGS="+ -fPIC -DPIC"
42 cp "$srcdir/antlr-config" .
43 chmod 755 ./antlr-config
45 cp "${srcdir}/antlr-${pkgver}/lib/cpp/src/libantlr.a" ./libantlr-pic.a