45 lines
1.3 KiB
Bash
45 lines
1.3 KiB
Bash
# Template file for 'fltk'
|
|
pkgname=fltk
|
|
version=1.3.6
|
|
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="Orphaned <orphan@voidlinux.org>"
|
|
license="custom:LGPL-2.0-only WITH FLTK-exception"
|
|
homepage="https://www.fltk.org/"
|
|
distfiles="https://fltk.org/pub/fltk/${version}/fltk-${version}-source.tar.gz"
|
|
checksum=9aac75ef9e9b7bd7b5338a4c0d4dd536e6c22ea7b15ea622aa1d8f1fa30d37ab
|
|
|
|
pre_build() {
|
|
vsed -i '/DIRS =/s,test,,' Makefile
|
|
}
|
|
|
|
post_build() {
|
|
vsed -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]
|
|
vlicense COPYING
|
|
}
|
|
|
|
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
|
|
vmove usr/lib/*.a
|
|
}
|
|
}
|