53 lines
1.4 KiB
Bash
53 lines
1.4 KiB
Bash
# Template file for 'fox'
|
|
pkgname=fox
|
|
version=1.6.57
|
|
revision=1
|
|
build_style=gnu-configure
|
|
configure_args="--enable-release --with-xft=yes --with-opengl=yes --with-xim
|
|
--with-xshm --with-shape --with-xcursor --with-xrender --with-xrandr
|
|
--with-xfixes --with-xinput"
|
|
makedepends="glu-devel libXcursor-devel libXft-devel libXi-devel libXrandr-devel
|
|
tiff-devel"
|
|
short_desc="Free Objects for X: GUI Toolkit for C++"
|
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
|
homepage="http://www.fox-toolkit.org/"
|
|
license="LGPL-2.1-or-later, MIT"
|
|
distfiles="http://fox-toolkit.org/ftp/fox-$version.tar.gz"
|
|
checksum=65ef15de9e0f3a396dc36d9ea29c158b78fad47f7184780357b929c94d458923
|
|
|
|
CPPFLAGS="-I${XBPS_CROSS_BASE}/usr/include/freetype2"
|
|
|
|
pre_configure() {
|
|
sed -i "/strtoll.\(cpp\|obj\)/d; s/strtoll.lo//" src/Makefile.in
|
|
sed -i "/vsscanf.\(cpp\|obj\)/d; s/vsscanf.lo//" src/Makefile.in
|
|
rm src/strtoll.cpp src/vsscanf.cpp
|
|
}
|
|
|
|
pre_build() {
|
|
sed -i "s#CXXFLAGS =.*#\0 $CXXFLAGS#" $(find -name Makefile)
|
|
}
|
|
|
|
post_install() {
|
|
vlicense LICENSE_ADDENDUM
|
|
}
|
|
|
|
fox-devel_package() {
|
|
depends="${makedepends} fox-${version}_${revision}"
|
|
short_desc+=" - development files"
|
|
pkg_install() {
|
|
vmove usr/bin/fox-config
|
|
vmove usr/include
|
|
vmove usr/lib/pkgconfig
|
|
vmove usr/share/doc
|
|
vmove "usr/lib/*.a"
|
|
vmove "usr/lib/*.so"
|
|
}
|
|
}
|
|
|
|
fox-utils_package() {
|
|
short_desc+=" - included utilities"
|
|
pkg_install() {
|
|
vmove usr/bin
|
|
vmove usr/share
|
|
}
|
|
}
|