From 48efb149a63614586a5224b149568f30ac7baeca Mon Sep 17 00:00:00 2001 From: lemmi Date: Wed, 3 Aug 2016 20:16:11 +0200 Subject: [PATCH] New package: enblend-enfuse-4.2 --- srcpkgs/enblend-enfuse/template | 38 +++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 srcpkgs/enblend-enfuse/template diff --git a/srcpkgs/enblend-enfuse/template b/srcpkgs/enblend-enfuse/template new file mode 100644 index 00000000000..009542b14ce --- /dev/null +++ b/srcpkgs/enblend-enfuse/template @@ -0,0 +1,38 @@ +# Template file for 'enblend-enfuse' +pkgname=enblend-enfuse +version=4.2 +revision=1 +build_style="gnu-configure" +configure_args="--enable-openmp --with-tcmalloc" +hostmakedepends="pkg-config perl automake" +makedepends="libjpeg-turbo-devel libpng-devel tiff-devel gperftools-devel + gsl-devel lcms2-devel libopenexr-devel vigra-devel libgomp-devel" +short_desc="Tools for for combining multiple images" +maintainer="lemmi " +license="GPL-2" +homepage="http://enblend.sourceforge.net/" +distfiles="${SOURCEFORGE_SITE}/enblend/${pkgname}/${pkgname}-${version}/${pkgname}-${version}.tar.gz" +checksum=8703e324939ebd70d76afd350e56800f5ea2c053a040a5f5218b2a1a4300bd48 + +case "$XBPS_TARGET_MACHINE" in + *-musl) makedepends+=" libglob-devel";; +esac + +pre_configure() { + # can not build documentataion for the lack of latex packages + sed -i -e '/latex/d' aclocal.m4 + sed -i -e '/Documentation/,+46d' configure.ac + autoreconf -fi +} + +pre_build() { + case "$XBPS_TARGET_MACHINE" in + *-musl) + sed -i '/LIBS =/s/$/ -lglob/' Makefile src/Makefile + sed -i '/#include /c \ +\#include \ +\#define glob g_glob\ +\#define globfree g_globfree' src/filespec.cc + ;; + esac +}