aboutsummaryrefslogtreecommitdiffstats
path: root/testing/libantlr3c
diff options
context:
space:
mode:
authorCarlo Landmeter <clandmeter@gmail.com>2015-03-31 22:56:47 +0000
committerCarlo Landmeter <clandmeter@gmail.com>2015-03-31 22:58:09 +0000
commit2771f3523169f7a13536e3edf3669c44d13ffa3d (patch)
tree5c1f35ca16f8fb511c55bfe234d6239ad53b2aee /testing/libantlr3c
parent3673cacf6d5ded37782e79be8de1adae64338a70 (diff)
downloadaports-2771f3523169f7a13536e3edf3669c44d13ffa3d.tar.bz2
aports-2771f3523169f7a13536e3edf3669c44d13ffa3d.tar.xz
testing/libantlr3c: new aport
Diffstat (limited to 'testing/libantlr3c')
-rw-r--r--testing/libantlr3c/APKBUILD53
1 files changed, 53 insertions, 0 deletions
diff --git a/testing/libantlr3c/APKBUILD b/testing/libantlr3c/APKBUILD
new file mode 100644
index 0000000000..7a1c009f20
--- /dev/null
+++ b/testing/libantlr3c/APKBUILD
@@ -0,0 +1,53 @@
+# Contributor: Carlo Landmeter <clandmeter@gmail.com>
+# Maintainer:
+pkgname=libantlr3c
+pkgver=3.4
+pkgrel=0
+pkgdesc="C runtime for the ANTLR parsing library"
+url="http://www.antlr.org/"
+arch="all"
+license="BSD"
+depends=""
+depends_dev=""
+makedepends="$depends_dev"
+install=""
+subpackages="$pkgname-dev"
+source="http://www.antlr3.org/download/C/libantlr3c-$pkgver.tar.gz"
+
+_builddir="$srcdir"/libantlr3c-$pkgver
+prepare() {
+ local i
+ cd "$_builddir"
+ for i in $source; do
+ case $i in
+ *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
+ esac
+ done
+ update_config_sub || return 1
+}
+
+build() {
+ cd "$_builddir"
+ [ "$CARCH" = "x86_64" ] && _cfgopt=--enable-64bit
+ ./configure \
+ --build=$CBUILD \
+ --host=$CHOST \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --mandir=/usr/share/man \
+ --infodir=/usr/share/info \
+ --localstatedir=/var \
+ ${_cfgopt} \
+ || return 1
+ make || return 1
+}
+
+package() {
+ cd "$_builddir"
+ make DESTDIR="$pkgdir" install || return 1
+ rm -f "$pkgdir"/usr/lib/*.la
+}
+
+md5sums="08b1420129d5dccd0f4461cedf2a0d7d libantlr3c-3.4.tar.gz"
+sha256sums="ca914a97f1a2d2f2c8e1fca12d3df65310ff0286d35c48b7ae5f11dcc8b2eb52 libantlr3c-3.4.tar.gz"
+sha512sums="8edb243d745ff5bf3b15940f124d1255a9ca965cb656a73a558aed7fa07effcd7620f23dc692e5d5169a03200254836dd57af3ce444ba225281a5b721497e211 libantlr3c-3.4.tar.gz"