void-packages/srcpkgs/enblend-enfuse/template

37 lines
1.1 KiB
Bash

# Template file for 'enblend-enfuse'
pkgname=enblend-enfuse
version=4.2
revision=9
build_style=gnu-configure
configure_args="--enable-openmp --with-tcmalloc --with-latex=false HELP2MAN=:"
hostmakedepends="pkg-config perl automake perl-TimeDate"
makedepends="libjpeg-turbo-devel libpng-devel tiff-devel gperftools
gsl-devel lcms2-devel libopenexr-devel vigra-devel libgomp-devel"
short_desc="Tools for for combining multiple images"
maintainer="lemmi <lemmi@nerd2nerd.org>"
license="GPL-2.0-or-later"
homepage="http://enblend.sourceforge.net/"
changelog="http://hg.code.sf.net/p/enblend/code/file/tip/NEWS"
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() {
autoreconf -fi
}
pre_build() {
case "$XBPS_TARGET_MACHINE" in
*-musl)
sed -i '/LIBS =/s/$/ -lglob/' Makefile src/Makefile
sed -i '/#include <glob.h>/c \
\#include <libglob/glob.h>\
\#define glob g_glob\
\#define globfree g_globfree' src/filespec.cc
;;
esac
}