39 lines
1.1 KiB
Bash
39 lines
1.1 KiB
Bash
# Template file for 'ol'
|
|
pkgname=ol
|
|
version=2.5.1
|
|
revision=1
|
|
build_style=gnu-makefile
|
|
make_use_env=yes
|
|
make_build_args="HAS_SOCKETS=1 HAS_DLOPEN=1 OLVM_FFI=1"
|
|
hostmakedepends="xxd"
|
|
short_desc="Purely functional dialect of Lisp"
|
|
maintainer="rc-05 <rc23@email.it>"
|
|
license="LGPL-3.0-or-later, MIT"
|
|
homepage="https://yuriy-chumak.github.io/ol/"
|
|
changelog="https://raw.githubusercontent.com/yuriy-chumak/ol/master/doc/CHANGELOG.md"
|
|
distfiles="
|
|
https://github.com/yuriy-chumak/ol/archive/${version}.tar.gz
|
|
https://github.com/yuriy-chumak/libol-opengl/archive/refs/tags/${version}.tar.gz>libopengl-${version}.tar.gz"
|
|
checksum="d9fe66bd15cf9c9c30bf45b97e5825c2101b518fc27c671c08a95798eec3c510
|
|
5ccb4e056319e16e3825a7c05d8aa456ce0e87a3111597a2177cc63a67978ffb"
|
|
|
|
if [[ "$XBPS_TARGET_WORDSIZE" -eq 32 ]]; then
|
|
make_check_args="HAS_64CDEFS=0"
|
|
else
|
|
make_check_args="HAS_32CDEFS=0"
|
|
fi
|
|
|
|
post_extract() {
|
|
# collect project files:
|
|
mv -v ol-${version}/* .
|
|
mv -v ol-${version}/.* .
|
|
rmdir ol-${version}
|
|
# move OpenGL submodule to the proper location:
|
|
mv -v libol-opengl-${version}/* ./libraries/OpenGL/
|
|
rmdir libol-opengl-${version}
|
|
}
|
|
|
|
post_install() {
|
|
vlicense LICENSE
|
|
}
|