void-packages/srcpkgs/xspringies/template
2021-08-22 16:38:22 +07:00

25 lines
786 B
Bash

# Template file for 'xspringies'
pkgname=xspringies
version=1.12
revision=5
makedepends="libX11-devel"
short_desc="Mass and spring simulation system"
maintainer="Leah Neukirchen <leah@vuxu.org>"
license="GPL-1.0-or-later"
homepage="https://web.archive.org/web/20170303034329/http://www.cs.rutgers.edu/~decarlo/software.html"
distfiles="http://distcache.freebsd.org/ports-distfiles/${pkgname}-${version}.tar.Z>${pkgname}-${version}.tar.gz"
checksum=08a3e9f60d1f1e15d38d62dd62baab18f6ad57ee139b0ef41452be66e4ad6a28
post_extract() {
vsed -i '/^CFLAGS/s/=/+=/' Makefile.std
}
do_build() {
make ${makejobs} -f Makefile.std DDIR=/usr/ LIBS="$LDFLAGS -lm -lX11"
}
do_install() {
vbin xspringies
vmkdir usr/lib
cp -r lib ${DESTDIR}/usr/lib/xspringies
vman xspringies.man xspringies.1
}