8a3d023a4b
Closes: #6827 [via git-merge-pr]
42 lines
1.2 KiB
Bash
42 lines
1.2 KiB
Bash
# Template file for 'fltk'
|
|
pkgname=fltk
|
|
version=1.3.4
|
|
revision=1
|
|
build_style=gnu-configure
|
|
configure_args="--enable-threads --enable-xft --enable-shared"
|
|
hostmakedepends="man-db"
|
|
makedepends="libjpeg-turbo-devel libpng-devel MesaLib-devel alsa-lib-devel
|
|
freetype-devel libXinerama-devel libXft-devel"
|
|
short_desc="Cross-platform C++ GUI toolkit"
|
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
|
license="LGPL-2.1"
|
|
homepage="http://www.fltk.org/"
|
|
distfiles="http://fltk.org/pub/fltk/${version}/fltk-${version}-source.tar.gz"
|
|
checksum=c8ab01c4e860d53e11d40dc28f98d2fe9c85aaf6dbb5af50fd6e66afec3dc58f
|
|
|
|
pre_build() {
|
|
sed -i '/DIRS =/s,test,,' Makefile
|
|
}
|
|
post_build() {
|
|
sed -i fltk-config \
|
|
-e's;-specs=/void-packages/common/environment/configure/gccspecs/hardened-cc1 ;;' \
|
|
-e's;-specs=/void-packages/common/environment/configure/gccspecs/hardened-ld ;;'
|
|
}
|
|
|
|
post_install() {
|
|
rm -rf ${DESTDIR}/usr/share/man/cat[13]
|
|
rm -f ${DESTDIR}/usr/lib/*.a
|
|
}
|
|
|
|
fltk-devel_package() {
|
|
depends="${makedepends} fltk-${version}_${revision}"
|
|
short_desc+=" - development files"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove usr/bin/fltk-config
|
|
vmove usr/share/man/man1/fltk-config.1
|
|
vmove usr/share/man/man3
|
|
vmove usr/share/doc
|
|
vmove usr/lib/*.so
|
|
}
|
|
}
|