dumb: update to 2.0.3.

Closes: #12843 [via git-merge-pr]
Signed-off-by: Jürgen Buchmüller <pullmoll@t-online.de>
This commit is contained in:
cr6git 2018-03-23 13:09:32 +01:00 committed by Jürgen Buchmüller
parent c308ca86a4
commit 939b08a643
No known key found for this signature in database
GPG Key ID: 6764EC32352D0647
2 changed files with 23 additions and 40 deletions

View File

@ -1725,6 +1725,8 @@ libportmidi.so portmidi-217_1
libsox.so.3 sox-14.4.2_1 libsox.so.3 sox-14.4.2_1
libsoxr.so.0 libsoxr-0.1.2_1 libsoxr.so.0 libsoxr-0.1.2_1
libsoxr-lsr.so.0 libsoxr-0.1.2_1 libsoxr-lsr.so.0 libsoxr-0.1.2_1
libdumb.so.2 dumb-2.0.3_1
libaldmb.so.2 dumb-2.0.3_1
libframe.so.6 frame-2.5.0_1 libframe.so.6 frame-2.5.0_1
libgrail.so.6 grail-3.1.0_1 libgrail.so.6 grail-3.1.0_1
libgeis.so.1 geis-2.2.16_1 libgeis.so.1 geis-2.2.16_1

View File

@ -1,56 +1,36 @@
# Template file for 'dumb' # Template file for 'dumb'
pkgname=dumb pkgname=dumb
version=1.0 version=2.0.3
revision=3 revision=1
create_wrksrc=yes
wrksrc=sources
_library_wrksrc=${pkgname}-${version}/${pkgname}
_example_wrksrc=${pkgname}-0.9.3/examples
build_wrksrc=${_library_wrksrc}/cmake
build_style=cmake build_style=cmake
configure_args="-DBUILD_SHARED_LIBS:BOOL=ON" configure_args="-DBUILD_SHARED_LIBS=ON -DBUILD_EXAMPLES=OFF -GNinja"
make_cmd="ninja"
hostmakedepends="ninja"
makedepends="allegro4-devel"
short_desc="IT, XM, S3M and MOD player library" short_desc="IT, XM, S3M and MOD player library"
maintainer="beefcurtains <beefcurtains@users.noreply.github.com>" maintainer="Orphaned <orphan@voidlinux.eu>"
license="BSD" license="BSD"
homepage="http://${pkgname}.sourceforge.net/" homepage="http://dumb.sourceforge.net/"
distfiles=" distfiles="https://github.com/kode54/dumb/archive/${version}.tar.gz"
https://github.com/kode54/${pkgname}/archive/${version}.tar.gz checksum=99bfac926aeb8d476562303312d9f47fd05b43803050cd889b44da34a9b2a4f9
${SOURCEFORGE_SITE}/${pkgname}/${pkgname}/0.9.3/${pkgname}-0.9.3.tar.gz
"
checksum="
09ea62fd01f6e71cb28a8a8c1c1e356e7eb38f5e003b684e12eb1944c6d35fa5
8d44fbc9e57f3bac9f761c3b12ce102d47d717f0dd846657fb988e0bb5d1ea33
"
case "$XBPS_TARGET_MACHINE" in case "$XBPS_TARGET_MACHINE" in
i686*|x86_64*) i686*|x86_64*)
CFLAGS="-D_USE_SSE -msse" configure_args+=" -DUSE_SSE=ON"
;;
*)
configure_args+=" -DUSE_SSE=OFF"
;; ;;
esac esac
pre_configure() { do_install() {
sed -i ${wrksrc}/${_library_wrksrc}/cmake/CMakeLists.txt \ cd build
-e '/^set(CMAKE_C_FLAGS /s|-Wall|${CMAKE_C_FLAGS} -Wall|' \ DESTDIR=${DESTDIR} ${make_cmd} install
-e '/^set(CMAKE_C_FLAGS /s| -D_USE_SSE -msse||' \
-e '/^add_library(dumb ${SOURCES})/a set_target_properties(dumb PROPERTIES VERSION 1.0)'
sed -i ${wrksrc}/${_example_wrksrc}/dumb2wav.c \
-e '/.*dumb_load_mod(fn/s|)|,0)|'
} }
post_build() { post_install() {
( set -x vdoc README.md
${CC} ${wrksrc}/${_example_wrksrc}/dumb2wav.c \ vlicense LICENSE
${CFLAGS} ${CPPFLAGS} -I../include \
${LDFLAGS} -Lbuild -ldumb -lm -o dumb2wav )
}
pre_install() {
vbin dumb2wav
vdoc ../readme.txt
vdoc ../release.txt
vlicense ../licence.txt
} }
dumb-devel_package() { dumb-devel_package() {
@ -59,5 +39,6 @@ dumb-devel_package() {
pkg_install() { pkg_install() {
vmove "usr/lib/*.so" vmove "usr/lib/*.so"
vmove usr/include vmove usr/include
vmove usr/lib/pkgconfig
} }
} }