36 lines
852 B
Bash
36 lines
852 B
Bash
# Template file for 'glm'
|
|
pkgname=glm
|
|
version=0.9.9.6
|
|
revision=1
|
|
archs=noarch
|
|
wrksrc=glm
|
|
build_style=cmake
|
|
configure_args="-DGLM_TEST_ENABLE=OFF"
|
|
hostmakedepends="dos2unix unzip"
|
|
short_desc="C++ mathematics library for graphics programming"
|
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
|
license="MIT"
|
|
homepage="http://glm.g-truc.net"
|
|
distfiles="https://github.com/g-truc/glm/releases/download/${version}/glm-${version}.zip"
|
|
checksum=9db7339c3b8766184419cfe7942d668fecabe9013ccfec8136b39e11718817d0
|
|
|
|
# No longer has install target
|
|
# Install manually
|
|
do_install() {
|
|
local i
|
|
vmkdir usr/include
|
|
for i in glm ; do
|
|
vcopy $i usr/include
|
|
done
|
|
vmkdir usr/lib
|
|
vcopy build/glm/libglm_* usr/lib
|
|
}
|
|
|
|
post_install() {
|
|
local f
|
|
for f in $(find ${DESTDIR}/usr/include -type f); do
|
|
dos2unix "$f"
|
|
done
|
|
sed -n '88,110p' manual.md > LICENSE
|
|
vlicense LICENSE
|
|
}
|