debian/0000755000000000000000000000000011501352003007154 5ustar debian/libresample1.symbols0000644000000000000000000000045211211714057013160 0ustar libresample.so.1 libresample1 #MINVER# lrsFilterUD@Base 0.1.3 lrsFilterUp@Base 0.1.3 lrsLpFilter@Base 0.1.3 lrsSrcUD@Base 0.1.3 lrsSrcUp@Base 0.1.3 resample_close@Base 0.1.3 resample_dup@Base 0.1.3 resample_get_filter_width@Base 0.1.3 resample_open@Base 0.1.3 resample_process@Base 0.1.3 debian/patches/0000755000000000000000000000000011425150343010613 5ustar debian/patches/README0000644000000000000000000000021111151055676011476 0ustar 0xxx: Grabbed from upstream development. 1xxx: Possibly relevant for upstream adoption. 2xxx: Only relevant for official Debian release. debian/patches/1001_shlib-cmake.patch0000644000000000000000000000601611501335362014460 0ustar --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,32 @@ +cmake_minimum_required(VERSION 2.6) +project(libresample) +enable_testing() + +include(CheckIncludeFiles) +include(CheckTypeSize) + +check_type_size("void *" POINTER_SIZE) + +check_include_files(inttypes.h HAVE_INTTYPES_H) + +find_library(HAVE_LIBM m) + +configure_file(${CMAKE_CURRENT_SOURCE_DIR}/src/configtemplate.h ${CMAKE_CURRENT_BINARY_DIR}/src/config.h) +configure_file(${CMAKE_CURRENT_SOURCE_DIR}/libresample.pc.in ${CMAKE_CURRENT_BINARY_DIR}/libresample.pc) + +set(LIBRARY_OUTPUT_PATH "${CMAKE_CURRENT_BINARY_DIR}/lib") +include_directories("${CMAKE_CURRENT_BINARY_DIR}/src") + +add_library(resample SHARED src/filterkit.c src/resample.c src/resamplesubs.c) +set_target_properties(resample PROPERTIES VERSION 1.0 SOVERSION 1) +set_target_properties(resample PROPERTIES CLEAN_DIRECT_OUTPUT 1) +add_library(resample-static STATIC src/filterkit.c src/resample.c src/resamplesubs.c) +set_target_properties(resample-static PROPERTIES OUTPUT_NAME "resample") +set_target_properties(resample-static PROPERTIES CLEAN_DIRECT_OUTPUT 1) +install(TARGETS resample resample-static LIBRARY DESTINATION lib ARCHIVE DESTINATION lib) + +install(FILES include/libresample.h DESTINATION include) + +install(FILES ${CMAKE_CURRENT_BINARY_DIR}/libresample.pc DESTINATION lib/pkgconfig) + +add_subdirectory(tests) --- /dev/null +++ b/tests/CMakeLists.txt @@ -0,0 +1,24 @@ +enable_testing() + +include(FindPkgConfig) + +pkg_check_modules(SNDFILE sndfile) +pkg_check_modules(SAMPLERATE samplerate) + +add_executable(testresample testresample.c) +target_link_libraries(testresample resample-static m) +add_test(testresample testresample DEPENDS resample) + +if(SNDFILE_FOUND) + add_executable(resample-sndfile resample-sndfile.c) + target_link_libraries(resample-sndfile resample sndfile m) + set_target_properties(resample-sndfile PROPERTIES COMPILE_FLAGS "${SNDFILE_CFLAGS}" LINK_FLAGS "${SNDFILE_LDFLAGS}") + install(TARGETS resample-sndfile RUNTIME DESTINATION bin) +endif(SNDFILE_FOUND) + +if(SAMPLERATE_FOUND) + add_executable(compareresample compareresample.c) + target_link_libraries(compareresample resample-static samplerate m) + set_target_properties(compareresample PROPERTIES COMPILE_FLAGS "${SAMPLERATE_CFLAGS}" LINK_FLAGS "${SAMPLERATE_LDFLAGS}") + add_test(compareresample compareresample DEPENDS resample) +endif(SAMPLERATE_FOUND) --- /dev/null +++ b/libresample.pc.in @@ -0,0 +1,7 @@ +prefix=${CMAKE_INSTALL_PREFIX} + +Name: libresample +Description: real-time audio resampling library +Version: 0.1.3 +Cflags: ${CMAKE_C_FLAGS} +Libs: ${CMAKE_SHARED_LINKER_FLAGS} -lm --- a/src/configtemplate.h +++ b/src/configtemplate.h @@ -3,5 +3,5 @@ use this file as a template to create config.h */ -#undef HAVE_INTTYPES_H +#cmakedefine HAVE_INTTYPES_H --- a/src/resample_defs.h +++ b/src/resample_defs.h @@ -52,7 +52,7 @@ #define SGN(x) ((x)<0 ?(-1):((x)==0?(0):(1))) #endif -#if HAVE_INTTYPES_H +#ifdef HAVE_INTTYPES_H #include typedef char BOOL; typedef int32_t WORD; debian/patches/series0000644000000000000000000000002711211314113012015 0ustar 1001_shlib-cmake.patch debian/control0000644000000000000000000000506311501347467010605 0ustar Source: libresample Section: libs Priority: optional Maintainer: Jonas Smedegaard Build-Depends: cdbs, autotools-dev, debhelper (>= 6), dh-buildinfo, cmake (>= 2.6), libsndfile-dev, libsamplerate-dev, pkg-config, d-shlibs Standards-Version: 3.9.1 Vcs-Git: git://git.debian.org/git/collab-maint/libresample.git Vcs-Browser: http://git.debian.org/?p=collab-maint/libresample.git;a=summary Homepage: http://www-ccrma.stanford.edu/~jos/resample/Free_Resampling_Software.html Package: libresample1-dev Section: libdevel Depends: libresample1 (= ${binary:Version}), ${devlibs:Depends}, ${misc:Depends} Provides: libresample-dev Conflicts: libresample-dev Architecture: any Description: real-time audio resampling library - development files A real-time library for audio sampling rate conversion providing several useful features relative to resample-1.7 on which it is based: - More portable (source includes autoconf script and Visual C++ project file, packaging adds CMake script with shared library support). - Memory-based (no need to read or write external files). - Floating-point computations (not fixed-point). - Faster and more accurate results (filter table increased by a factor of 32). - Supports variable resampling ratio (data can be processed in small chunks). - Easily applied to any number of simultaneous data channels - LGPL-licensed (libsamplerate, a GPL-licensed alternative, is considered by the libresample author to be technically superior). . This package contains the development headers and static libraries for resample. Package: libresample1 Section: libs Depends: ${shlibs:Depends}, ${misc:Depends} Architecture: any Description: real-time audio resampling library - shared libraries A real-time library for audio sampling rate conversion providing several useful features relative to resample-1.7 on which it is based: - More portable (source includes autoconf script and Visual C++ project file, packaging adds CMake script with shared library support). - Memory-based (no need to read or write external files). - Floating-point computations (not fixed-point). - Faster and more accurate results (filter table increased by a factor of 32). - Supports variable resampling ratio (data can be processed in small chunks). - Easily applied to any number of simultaneous data channels - LGPL-licensed (libsamplerate, a GPL-licensed alternative, is considered by the libresample author to be technically superior). . This package contains the shared libraries for resample. debian/source/0000755000000000000000000000000011501346320010461 5ustar debian/source/format0000644000000000000000000000001411316654760011705 0ustar 3.0 (quilt) debian/changelog0000644000000000000000000000406711501352003011035 0ustar libresample (0.1.3-4) unstable; urgency=low * Strip superfluous lines from long description, thanks to Rhonda (partly fixes bug#537562). * Use $(pkgname) in rules file instead of explicit package name. * Bump Policy compliance to Standards-Version 3.9.1. * Tidy vertical spaces in long descriptions. * Drop local CDBS snippets: All included in main CDBS package now. Suppress optional build-dependencies to ease backporting. Relax build-dependency on cdbs (needed version satisfied in stable). * Expand CDBS-resolved build-dependencies recursively (use = not := ). * Update rules file header: + Extend copyright years. + Refer to FSF website (not postal address). * Refresh patch with tidying options --no-timestamps --no-index -pab. * Use source format 3.0 (quilt), and stop including patchsys-quilt.mk. Drop build-dependencies on quilt or patchutils. Stop mentioning quilt in README.source. * Rewrite copyright file using draft 135 of proposed DEP5 format. * Update patch 1001 to explicitly link against used libraries: Needed for compilation with newer binutils. Closes: bug#606914. Thanks to Stefan Potyra. * Ease building with git-buildpackage: + Git-ignore quilt .pc dir. + Add source local-options. * Tidy copyright file: + Separate License-Comment from upstream parts in License sections. + Mention Autoconf licensing as an exception (not separate license). -- Jonas Smedegaard Mon, 13 Dec 2010 08:53:34 +0100 libresample (0.1.3-3) unstable; urgency=low * Rewrite long descriptions based on Fedora packaging and input from Junichi Uekawa. * Add symbols file, and adjust build rules to properly maintain in. -- Jonas Smedegaard Thu, 04 Jun 2009 14:09:55 +0200 libresample (0.1.3-2) unstable; urgency=low * Include header files in -dev package. -- Jonas Smedegaard Wed, 03 Jun 2009 00:27:29 +0200 libresample (0.1.3-1) unstable; urgency=low * Initial release. Closes: bug#531590. -- Jonas Smedegaard Tue, 02 Jun 2009 23:42:11 +0200 debian/README.source0000644000000000000000000000361311422112406011341 0ustar Building this package for Debian -------------------------------- This source package need no special handling for normal package builds. Developing this package for Debian ---------------------------------- The source of this package is developed using git and the helper tool git-buildpackage, with all official releases tagged and signed and binary diffs of tarballs stored using pristine-tar. This is documented below /usr/share/doc/git-buildpackage/manual-html/ . A custom build target shows current upstream and packaging versions: debian/rules print-version Current upstream tarball can be prepared using this other build target: debian/rules get-orig-source To switch to newer upstream source, first add a dummy changelog entry and comment out DEB_UPSTREAM_TARBALL_MD5 before getting the source: dch -v ${new_upstream_version}-1 "Dummy changelog entry" sed -i -e 's/^\(DEB_UPSTREAM_TARBALL_MD5\b\)/#\1/' debian/rules debian/rules get-orig-source Store new md5sum to help ensure identical source is received later. Setting DEB_MAINTAINER_MODE=1 enables additional build routines helpful during development of the package, but unfit for normal builds. This typically includes the CDBS feature of auto-updating debian/control with CDBS-related build-dependencies, which is forbidden by Debian Policy as build environment must not change during automated builds. Maintaining packaging build routines ------------------------------------ This source package wraps debhelper commands and other tedious parts of the build routines using the CDBS framework. Please refer to the actual makefile snippets included from debian/rules for details on their purpose and ways to override defaults. Additionally, makefile snippets included from below /usr/share/cdbs may also be documented in /usr/share/doc/cdbs/cdbs-doc.pdf.gz . -- Jonas Smedegaard Thu, 26 Feb 2009 21:28:29 +0100 debian/compat0000644000000000000000000000000211151055676010373 0ustar 6 debian/watch0000644000000000000000000000025611211300713010207 0ustar # Run the "uscan" command to check for upstream updates and more. version=3 http://www-ccrma.stanford.edu/~jos/resample/Free_Resampling_Software.html .*/libresample-(.*).tgz debian/copyright_hints0000644000000000000000000000314011501347464012331 0ustar Format-Specification: http://svn.debian.org/wsvn/dep/web/deps/dep5.mdwn?rev=135 X-Draft: Autogenerated by CDBS snippet copyright-check.mk Files: ./CMakeLists.txt, ./Makefile.in, ./configure.in, ./debian/README.source, ./debian/compat, ./debian/control, ./debian/control.in, ./debian/gbp.conf, ./debian/libresample1.symbols, ./debian/patches/1001_shlib-cmake.patch, ./debian/patches/README, ./debian/patches/series, ./debian/source/format, ./debian/source/local-options, ./debian/watch, ./include/libresample.h, ./libresample.pc.in, ./src/configtemplate.h, ./src/filterkit.c, ./src/filterkit.h, ./src/resample.c, ./src/resample_defs.h, ./src/resamplesubs.c, ./tests/CMakeLists.txt, ./tests/compareresample.c, ./tests/resample-sndfile.c, ./tests/testresample.c, ./win/libresample.dsp Copyright: *No copyright* License: UNKNOWN FIXME Files: ./config.guess, ./config.sub Copyright: 1992-2001 License: GPL-2+ FIXME Files: ./debian/rules Copyright: 2009-2010, Jonas Smedegaard License: GPL FIXME Files: ./configure Copyright: 1992-1996, 1998-2001 License: UNKNOWN FIXME Files: ./README.txt Copyright: 1994-2002, Julius O. Smith III 2003, Dominic License: UNKNOWN FIXME Files: ./LICENSE.txt Copyright: 1991, 1999 Free Software Foundation, Inc HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY HOLDERS AND/OR holder or holder who places the Library under this License law: that is to say, a work containing the Library or a notices, you must include the the License: UNKNOWN FIXME Files: ./install-sh Copyright: 1991, the Massachusetts Institute of Technology License: UNKNOWN FIXME debian/copyright0000644000000000000000000000723211501347157011131 0ustar Format-Specification: http://svn.debian.org/wsvn/dep/web/deps/dep5.mdwn?rev=135 Name: libresample Contact: Julius O. Smith III Source: http://www-ccrma.stanford.edu/~jos/resample/Free_Resampling_Software.html Copyright: 1994-2002, Julius O. Smith III 2003, Dominic Mazzoni License: LGPL-2.1+ with other-JOS extension Files: ./configure Copyright: 1992-2001, Free Software Foundation, Inc. License: other-GAP-FSF Files: ./config.* Copyright: 1992-2001, Free Software Foundation, Inc License: GPL-2+ with Autoconf exception As a special exception to the GNU General Public License, if you distribute this file as part of a program that contains a configuration script generated by Autoconf, you may include it under the same distribution terms that you use for the rest of that program. Files: ./install-sh Copyright: 1991, the Massachusetts Institute of Technology License: other-MIT Files: ./debian/* Copyright: 2009-2010, Jonas Smedegaard License: GPL-2+ License: LGPL-2.1+ Permission to use and copy is granted subject to the terms of the "GNU Lesser General Public License" (LGPL) as published by the Free Software Foundation; either version 2.1 of the License, or any later version. . This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. License-Comment: On Debian GNU systems, the complete text of the GNU Lesser General Public License (LGPL) version 2.1 or newer can be found in '/usr/share/common-licenses/LGPL'. . You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . License: other-JOS In addition, Julius O. Smith III requests that a copy of any modified files be sent by email to jos@ccrma.stanford.edu so that he may incorporate them into the CCRMA version. License: GPL-2+ This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version. . This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. License-Comment: On Debian GNU systems, the complete text of the GNU General Public License (GPL) version 2 or newer can be found in '/usr/share/common-licenses/GPL'. . You should have received a copy of the GNU General Public License along with this program. If not, see . License: other-GAP-FSF This file is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it. License-Comment: Some files differ from above by replacing "this file" with more specific term. License: other-MIT Permission to use, copy, modify, distribute, and sell this software and its documentation for any purpose is hereby granted without fee, provided that the above copyright notice appear in all copies and that both that copyright notice and this permission notice appear in supporting documentation, and that the name of M.I.T. not be used in advertising or publicity pertaining to distribution of the software without specific, written prior permission. M.I.T. makes no representations about the suitability of this software for any purpose. It is provided "as is" without express or implied warranty. debian/gbp.conf0000644000000000000000000000014611211237165010605 0ustar # Configuration file for git-buildpackage and friends [DEFAULT] pristine-tar = True sign-tags = True debian/rules0000755000000000000000000000427311501346566010263 0ustar #!/usr/bin/make -f # -*- mode: makefile; coding: utf-8 -*- # Copyright © 2009-2010 Jonas Smedegaard # Description: Main Debian packaging script for libresample # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License as # published by the Free Software Foundation; either version 2, or (at # your option) any later version. # # This program is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see . -include /usr/share/cdbs/1/rules/upstream-tarball.mk include /usr/share/cdbs/1/rules/utils.mk include /usr/share/cdbs/1/class/cmake.mk include /usr/share/cdbs/1/rules/debhelper.mk # Suppress optional build-dependencies CDBS_BUILD_DEPENDS_rules_upstream-tarball = CDBS_BUILD_DEPENDS_rules_utils_copyright-check = pkgbasename = libresample pkgname = $(pkgbasename)1 libname = libresample DEB_UPSTREAM_URL = http://www-ccrma.stanford.edu/~jos/resample DEB_UPSTREAM_TARBALL_EXTENSION = tgz DEB_UPSTREAM_TARBALL_MD5 = 99bc5ea15ef76b83e5655a10968f674b DEB_MAKE_CHECK_TARGET = test DEB_SHLIBDEPS_LIBRARY_$(pkgname) = $(libname) DEB_DH_INSTALL_ARGS = --sourcedir=debian/tmp DEB_DH_MAKESHLIBS_ARGS = -Pdebian/$(cdbs_curpkg) # Let d-shlibs calculate development package dependencies # and handle shared library install binary-post-install/$(pkgname):: debian/stamp-local-shlibs-$(libname) debian/stamp-local-shlibs-$(libname): binary-install/$(pkgname) d-shlibmove --commit \ --movedev "debian/tmp/usr/include/*" usr/include/ \ --movedev "debian/tmp/usr/lib/pkgconfig/$(libname).pc" usr/lib/pkgconfig/ \ debian/tmp/usr/lib/$(libname).so touch $@ clean:: rm -f debian/stamp-local-shlibs-$(libname) # Needed by upstream build process CDBS_BUILD_DEPENDS += , cmake (>= 2.6), libsndfile-dev # Needed by upstream tests CDBS_BUILD_DEPENDS += , libsamplerate-dev # Needed for our packaging CDBS_BUILD_DEPENDS += , pkg-config, d-shlibs debian/control.in0000644000000000000000000000466511425147322011212 0ustar Source: libresample Section: libs Priority: optional Maintainer: Jonas Smedegaard Build-Depends: @cdbs@ Standards-Version: 3.9.1 Vcs-Git: git://git.debian.org/git/collab-maint/libresample.git Vcs-Browser: http://git.debian.org/?p=collab-maint/libresample.git;a=summary Homepage: http://www-ccrma.stanford.edu/~jos/resample/Free_Resampling_Software.html Package: libresample1-dev Section: libdevel Depends: libresample1 (= ${binary:Version}), ${devlibs:Depends}, ${misc:Depends} Provides: libresample-dev Conflicts: libresample-dev Architecture: any Description: real-time audio resampling library - development files A real-time library for audio sampling rate conversion providing several useful features relative to resample-1.7 on which it is based: - More portable (source includes autoconf script and Visual C++ project file, packaging adds CMake script with shared library support). - Memory-based (no need to read or write external files). - Floating-point computations (not fixed-point). - Faster and more accurate results (filter table increased by a factor of 32). - Supports variable resampling ratio (data can be processed in small chunks). - Easily applied to any number of simultaneous data channels - LGPL-licensed (libsamplerate, a GPL-licensed alternative, is considered by the libresample author to be technically superior). . This package contains the development headers and static libraries for resample. Package: libresample1 Section: libs Depends: ${shlibs:Depends}, ${misc:Depends} Architecture: any Description: real-time audio resampling library - shared libraries A real-time library for audio sampling rate conversion providing several useful features relative to resample-1.7 on which it is based: - More portable (source includes autoconf script and Visual C++ project file, packaging adds CMake script with shared library support). - Memory-based (no need to read or write external files). - Floating-point computations (not fixed-point). - Faster and more accurate results (filter table increased by a factor of 32). - Supports variable resampling ratio (data can be processed in small chunks). - Easily applied to any number of simultaneous data channels - LGPL-licensed (libsamplerate, a GPL-licensed alternative, is considered by the libresample author to be technically superior). . This package contains the shared libraries for resample.