ea97ab2e7d
%ci:no-build
42 lines
1.4 KiB
Bash
42 lines
1.4 KiB
Bash
TERMUX_PKG_HOMEPAGE=https://www.povray.org/
|
|
TERMUX_PKG_DESCRIPTION="The Persistence of Vision Raytracer"
|
|
TERMUX_PKG_LICENSE="AGPL-V3"
|
|
TERMUX_PKG_MAINTAINER="@termux"
|
|
TERMUX_PKG_VERSION=3.8.0-beta.2
|
|
TERMUX_PKG_REVISION=1
|
|
TERMUX_PKG_SRCURL=https://github.com/POV-Ray/povray/releases/download/v${TERMUX_PKG_VERSION}/povunix-v${TERMUX_PKG_VERSION}-src.tar.gz
|
|
TERMUX_PKG_SHA256=4717c9bed114deec47cf04a8175cc4060dafc159f26e7896480a60f4411ca5ad
|
|
TERMUX_PKG_DEPENDS="boost, libjpeg-turbo, libpng, libtiff, zlib"
|
|
TERMUX_PKG_BUILD_DEPENDS="boost-headers"
|
|
|
|
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
|
|
--disable-debug
|
|
--disable-dependency-tracking
|
|
--disable-optimiz
|
|
--disable-optimiz-arch
|
|
--disable-strip
|
|
--enable-io-restrictions
|
|
--with-boost=$TERMUX_PREFIX/lib
|
|
--with-boost-libdir=$TERMUX_PREFIX/lib
|
|
--without-libmkl
|
|
--without-libsdl
|
|
--without-openexr
|
|
--without-x
|
|
ax_cv_c_compiler_vendor=clang
|
|
ax_cv_cxx_compiler_vendor=clang
|
|
COMPILED_BY=Termux
|
|
"
|
|
|
|
termux_step_create_debscripts() {
|
|
echo "#!$TERMUX_PREFIX/bin/sh" > postinst
|
|
echo "povconfuser=\$HOME/.povray/3.8" >> postinst
|
|
echo "mkdir -p \$povconfuser/" >> postinst
|
|
echo "for f in povray.conf povray.ini; do" >> postinst
|
|
echo " if [ ! -f \$povconfuser/\$f ]; then" >> postinst
|
|
echo " cp \$TERMUX_PREFIX/etc/povray/3.8/\$f \$povconfuser/" >> postinst
|
|
echo " fi" >> postinst
|
|
echo "done" >> postinst
|
|
echo "exit 0" >> postinst
|
|
chmod 0755 postinst
|
|
}
|