49243b3781
This is a second go at #18472 with (in my opinion) a better approach using subpackages instead of build time options. libaldmb is a separate library that isn't used by the rest of the package and splitting it avoids a bunch of unnecessary X11 & other desktop dependencies on `dumb`. For the reference player I created a `dumbplay` subpackage which keeps the SDL2 dependency out of the main library package, the tiny dumbout util has minimal dependencies and thus probably belongs in the main package. I also updated the homepage which still pointed to the old pre-fork page.
55 lines
1.3 KiB
Bash
55 lines
1.3 KiB
Bash
# Template file for 'dumb'
|
|
pkgname=dumb
|
|
version=2.0.3
|
|
revision=3
|
|
build_style=cmake
|
|
configure_args="-DBUILD_SHARED_LIBS=ON -DBUILD_EXAMPLES=ON"
|
|
hostmakedepends="allegro4-devel"
|
|
makedepends="allegro4-devel argtable-devel SDL2-devel"
|
|
short_desc="IT, XM, S3M and MOD player library"
|
|
maintainer="a dinosaur <nick@a-dinosaur.com>"
|
|
license="custom:DUMB"
|
|
homepage="https://github.com/kode54/dumb"
|
|
distfiles="https://github.com/kode54/dumb/archive/${version}.tar.gz"
|
|
checksum=99bfac926aeb8d476562303312d9f47fd05b43803050cd889b44da34a9b2a4f9
|
|
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
i686*|x86_64*)
|
|
configure_args+=" -DUSE_SSE=ON"
|
|
;;
|
|
*)
|
|
configure_args+=" -DUSE_SSE=OFF"
|
|
;;
|
|
esac
|
|
|
|
post_install() {
|
|
vdoc README.md
|
|
vlicense LICENSE
|
|
}
|
|
|
|
dumb-devel_package() {
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" - development files"
|
|
pkg_install() {
|
|
vmove usr/lib/libdumb.so
|
|
vmove usr/include/dumb.h
|
|
vmove usr/lib/pkgconfig
|
|
}
|
|
}
|
|
|
|
aldumb_package() {
|
|
depends="${sourcepkg}>=${version}_${revision} ${sourcepkg}-devel>=${version}_${revision}"
|
|
short_desc+=", Allegro4 integration"
|
|
pkg_install() {
|
|
vmove "usr/lib/libaldmb.so*"
|
|
vmove usr/include/aldumb.h
|
|
}
|
|
}
|
|
|
|
dumbplay_package() {
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
short_desc="IT, XM, S3M, MOD player & conversion programs using DUMB and SDL2"
|
|
pkg_install() {
|
|
vmove usr/bin/dumbplay
|
|
}
|
|
}
|