mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 17:59:20 -04:00
- Update to 1.2.130
This commit is contained in:
parent
ccac602da4
commit
edb37aae89
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=282307
5 changed files with 9 additions and 90 deletions
|
@ -6,38 +6,25 @@
|
|||
#
|
||||
|
||||
PORTNAME= clunk
|
||||
DISTVERSION= r20100412
|
||||
PORTVERSION= 1.2.130
|
||||
CATEGORIES= audio
|
||||
MASTER_SITES= http://mirror.amdmi3.ru/distfiles/
|
||||
MASTER_SITES= SF/clunk
|
||||
|
||||
MAINTAINER= amdmi3@FreeBSD.org
|
||||
COMMENT= Real-time 3D sound generation library
|
||||
|
||||
USE_BZIP2= yes
|
||||
USE_CMAKE= yes
|
||||
USE_SDL= sdl
|
||||
MAKE_JOBS_SAFE= yes
|
||||
USE_LDCONFIG= yes
|
||||
|
||||
USE_SCONS= yes
|
||||
|
||||
WRKSRC= ${WRKDIR}/${PORTNAME}
|
||||
MAKE_JOBS_SAFE= yes
|
||||
|
||||
OPTIONS= SIMD "Enable SIMD support (SSE)" off
|
||||
|
||||
.include <bsd.port.options.mk>
|
||||
|
||||
.if !defined(WITH_SIMD)
|
||||
post-patch:
|
||||
@${REINPLACE_CMD} -e '/^have_sse/ s|True|False|' ${WRKSRC}/SConstruct
|
||||
.if defined(WITH_SIMD)
|
||||
CMAKE_ARGS+= -DWITH_SSE:BOOL=TRUE
|
||||
.endif
|
||||
|
||||
.if ${OSVERSION} < 700000
|
||||
BROKEN= Requires posix_memalign()
|
||||
.endif
|
||||
|
||||
do-install:
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/libclunk.so ${PREFIX}/lib/
|
||||
${MKDIR} ${PREFIX}/include/clunk
|
||||
${INSTALL_DATA} ${WRKSRC}/*.h ${PREFIX}/include/clunk/
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
SHA256 (clunk-r20100412.tar.bz2) = 13accf3764ca4ae3018d112aa92dd55b5681b5113c8a1973cc58ab9b4cdf596b
|
||||
SIZE (clunk-r20100412.tar.bz2) = 1378603
|
||||
SHA256 (clunk-1.2.130.tar.bz2) = e35130b03d6602e93f813cb50f05ea0f8b9296199ca1f3548f87e559a1c038d2
|
||||
SIZE (clunk-1.2.130.tar.bz2) = 1381073
|
||||
|
|
|
@ -1,36 +0,0 @@
|
|||
--- SConstruct.orig 2009-07-16 16:14:29.000000000 +0400
|
||||
+++ SConstruct 2009-08-06 04:24:21.000000000 +0400
|
||||
@@ -1,6 +1,6 @@
|
||||
import os, sys
|
||||
|
||||
-env = Environment()
|
||||
+env = Environment(ENV=os.environ, **dict((k, v.split()) for k, v in ARGUMENTS.iteritems()))
|
||||
debug = False
|
||||
|
||||
sdl_cflags = env.ParseFlags('!pkg-config --cflags sdl')
|
||||
@@ -29,13 +29,6 @@
|
||||
if have_sse:
|
||||
env.Append(CPPDEFINES=['USE_SIMD'])
|
||||
|
||||
-if debug:
|
||||
- buildmode = 'debug'
|
||||
- env.Append(CXXFLAGS=['-ggdb'])
|
||||
-else:
|
||||
- buildmode = 'release'
|
||||
- env.Append(CXXFLAGS=['-O3', '-mtune=native', '-march=native'])
|
||||
-
|
||||
clunk_src = [
|
||||
'context.cpp', 'sample.cpp', 'object.cpp', 'source.cpp', 'sdl_ex.cpp', 'stream.cpp',
|
||||
'kemar.c', 'buffer.cpp', 'distance_model.cpp', 'logger.cpp', 'clunk_ex.cpp',
|
||||
@@ -49,9 +42,7 @@
|
||||
|
||||
|
||||
if sys.platform != 'win32':
|
||||
- env.Append(CFLAGS=['-Wall', '-pedantic'])
|
||||
- env.Append(CXXFLAGS=['-Wall', '-pedantic'])
|
||||
- env.Append(LINKFLAGS=['-Wl,-rpath,'+ lib_dir])
|
||||
- env.Append(LINKFLAGS=['-Wl,-rpath-link,.'])
|
||||
+ env.Append(CFLAGS=['-Wall'])
|
||||
+ env.Append(CXXFLAGS=['-Wall'])
|
||||
|
||||
env.Program('clunk_test', ['test.cpp'], LIBS=['clunk'])
|
|
@ -1,30 +0,0 @@
|
|||
--- sse_fft_context.cpp.orig 2009-08-05 01:28:34.000000000 +0400
|
||||
+++ sse_fft_context.cpp 2010-04-13 04:16:03.000000000 +0400
|
||||
@@ -1,5 +1,4 @@
|
||||
#include <stdlib.h>
|
||||
-#include <malloc.h>
|
||||
#include <stdio.h>
|
||||
#include <new>
|
||||
#include "fft_context.h"
|
||||
@@ -9,20 +8,11 @@
|
||||
|
||||
void * aligned_allocator::allocate(size_t size, size_t alignment) {
|
||||
void * ptr;
|
||||
-#ifdef _WINDOWS
|
||||
- ptr = _aligned_malloc(size, alignment);
|
||||
-#else
|
||||
- ptr = memalign(alignment, size);
|
||||
-#endif
|
||||
- if (ptr == NULL)
|
||||
+ if (posix_memalign(&ptr, alignment, size) != 0)
|
||||
throw std::bad_alloc();
|
||||
return ptr;
|
||||
}
|
||||
|
||||
void aligned_allocator::deallocate(void *ptr) {
|
||||
-#ifdef _WINDOWS
|
||||
- _aligned_free(ptr);
|
||||
-#else
|
||||
free(ptr);
|
||||
-#endif
|
||||
}
|
|
@ -1,18 +1,16 @@
|
|||
include/clunk/buffer.h
|
||||
include/clunk/clunk.h
|
||||
include/clunk/clunk_assert.h
|
||||
include/clunk/clunk_ex.h
|
||||
include/clunk/clunk_c.h
|
||||
include/clunk/context.h
|
||||
include/clunk/distance_model.h
|
||||
include/clunk/export_clunk.h
|
||||
include/clunk/fft_context.h
|
||||
include/clunk/kemar.h
|
||||
include/clunk/locker.h
|
||||
include/clunk/logger.h
|
||||
include/clunk/mdct_context.h
|
||||
include/clunk/object.h
|
||||
include/clunk/sample.h
|
||||
include/clunk/sdl_ex.h
|
||||
include/clunk/source.h
|
||||
include/clunk/sse_fft_context.h
|
||||
include/clunk/stream.h
|
||||
|
|
Loading…
Add table
Reference in a new issue