From a71894a6a2bc108bb3a7b09ffa71d002e787cee6 Mon Sep 17 00:00:00 2001 From: Christian Neukirchen Date: Sat, 2 Jan 2016 17:38:53 +0100 Subject: [PATCH] New package: cparser-1.22.0 --- srcpkgs/cparser/template | 41 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 srcpkgs/cparser/template diff --git a/srcpkgs/cparser/template b/srcpkgs/cparser/template new file mode 100644 index 00000000000..d0623c57302 --- /dev/null +++ b/srcpkgs/cparser/template @@ -0,0 +1,41 @@ +# Template file for 'cparser' +pkgname=cparser +version=1.22.0 +revision=1 +wrksrc="${pkgname}-${pkgname}-${version}" +makedepends="libfirm-devel" +depends="gcc" # to link and assemble +short_desc="C99 parser (with GNU extensions) and libfirm frontend" +maintainer="Christian Neukirchen " +license="GPL-2" +homepage="http://libfirm.org/" +distfiles="https://github.com/MatzeB/${pkgname}/archive/${pkgname}-${version}.tar.gz" +checksum=0965aa23d8ed7d4cce309806fec2d2c18ad20a74a084340baed0dc874b24175b + +post_extract() { + rmdir libfirm +} + +do_configure() { + cat <config.mak +variant = release +CFLAGS_release = $CFLAGS +LINKFLAGS_release = $LDFLAGS +V = 1 +CC = $CC +FIRM_CPPFLAGS = +FIRM_LIBS = -lfirm -lm +COMPILER_INCLUDE_DIR = -DCOMPILER_INCLUDE_DIR=\"/usr/lib/${pkgname}/include\" +EOF +} + +do_build() { + make ${makejobs} +} + +do_install() { + vbin build/release/cparser + vman cparser.1 + vmkdir usr/lib/${pkgname} + vcopy include usr/lib/${pkgname} +}