mirror of
https://github.com/void-linux/void-packages.git
synced 2025-07-28 08:22:56 +02:00
New package: dumb-1.0
This commit is contained in:
parent
7ccc53cc59
commit
3a44fdb66b
3 changed files with 55 additions and 0 deletions
1
srcpkgs/dumb-devel
Symbolic link
1
srcpkgs/dumb-devel
Symbolic link
|
@ -0,0 +1 @@
|
||||||
|
dumb
|
19
srcpkgs/dumb/patches/fix-build.patch
Normal file
19
srcpkgs/dumb/patches/fix-build.patch
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
--- dumb/cmake/CMakeLists.txt.orig
|
||||||
|
+++ dumb/cmake/CMakeLists.txt
|
||||||
|
@@ -1,7 +1,7 @@
|
||||||
|
cmake_minimum_required(VERSION 2.6)
|
||||||
|
project(libdumb C)
|
||||||
|
|
||||||
|
-set(CMAKE_C_FLAGS "-Wall -DDUMB_DECLARE_DEPRECATED -D_USE_SSE -msse -Wno-unused-variable -Wno-unused-but-set-variable")
|
||||||
|
+set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -DDUMB_DECLARE_DEPRECATED -Wno-unused-variable -Wno-unused-but-set-variable")
|
||||||
|
set(CMAKE_C_FLAGS_DEBUG "-ggdb -DDEBUGMODE=1 -D_DEBUG")
|
||||||
|
set(CMAKE_C_FLAGS_RELEASE "-ffast-math -O2 -DNDEBUG")
|
||||||
|
set(CMAKE_C_FLAGS_RELWITHDEBINFO "-ffast-math -g -O2 -DNDEBUG")
|
||||||
|
@@ -103,6 +103,7 @@
|
||||||
|
)
|
||||||
|
|
||||||
|
add_library(dumb ${SOURCES})
|
||||||
|
+set_target_properties(dumb PROPERTIES VERSION 1.0)
|
||||||
|
set_target_properties(dumb PROPERTIES DEBUG_POSTFIX d)
|
||||||
|
|
||||||
|
# Make sure the dylib install name path is set on OSX so you can include dumb in app bundles
|
35
srcpkgs/dumb/template
Normal file
35
srcpkgs/dumb/template
Normal file
|
@ -0,0 +1,35 @@
|
||||||
|
# Template file for 'dumb'
|
||||||
|
pkgname=dumb
|
||||||
|
version=1.0
|
||||||
|
revision=1
|
||||||
|
build_wrksrc=${pkgname}/cmake
|
||||||
|
build_style=cmake
|
||||||
|
configure_args="-DBUILD_SHARED_LIBS:BOOL=ON"
|
||||||
|
hostmakedepends="cmake"
|
||||||
|
short_desc="IT, XM, S3M and MOD player library"
|
||||||
|
maintainer="beefcurtains <beefcurtains@users.noreply.github.com>"
|
||||||
|
license="BSD"
|
||||||
|
homepage="http://${pkgname}.sourceforge.net/"
|
||||||
|
distfiles="https://github.com/kode54/${pkgname}/archive/${version}.tar.gz"
|
||||||
|
checksum=09ea62fd01f6e71cb28a8a8c1c1e356e7eb38f5e003b684e12eb1944c6d35fa5
|
||||||
|
|
||||||
|
case "$XBPS_TARGET_MACHINE" in
|
||||||
|
i686*|x86_64*)
|
||||||
|
CFLAGS="-D_USE_SSE -msse"
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
pre_install() {
|
||||||
|
vdoc ../readme.txt
|
||||||
|
vdoc ../release.txt
|
||||||
|
vlicense ../licence.txt
|
||||||
|
}
|
||||||
|
|
||||||
|
dumb-devel_package() {
|
||||||
|
depends="${sourcepkg}>=${version}_${revision}"
|
||||||
|
short_desc+=" - development files"
|
||||||
|
pkg_install() {
|
||||||
|
vmove "usr/lib/*.so"
|
||||||
|
vmove usr/include
|
||||||
|
}
|
||||||
|
}
|
Loading…
Add table
Reference in a new issue