debian/0000755000000000000000000000000012150134703007162 5ustar debian/control0000644000000000000000000000317212150134703010570 0ustar Source: cqrlib Section: libdevel Priority: extra Maintainer: Debian Science Maintainers Uploaders: Teemu Ikonen Vcs-Browser: http://git.debian.org/?p=debian-science/packages/cqrlib.git Vcs-Git: http://git.debian.org/git/debian-science/packages/cqrlib.git Homepage: http://sourceforge.net/projects/cqrlib/ Build-Depends: debhelper (>= 9), libtool Standards-Version: 3.9.4 Package: libcqrlib2-dev Architecture: any Multi-Arch: same Pre-Depends: ${misc:Pre-Depends} Depends: libcqrlib2 (= ${binary:Version}), ${misc:Depends} Description: Library and headers for quaternion arithmetic and rotation math Quaternions are four-dimensional numbers which form an associative normed division algebra over the real numbers. Unit quaternions are a convenient and efficient way to represent orientations and rotations in three dimensions. . CQRlib is an ANSI C implementation of a utility library for quaternion arithmetic and quaternion rotation math. . This package contains files needed for compiling programs using CQRlib. Package: libcqrlib2 Section: libs Architecture: any Multi-Arch: same Pre-Depends: ${misc:Pre-Depends} Depends: ${shlibs:Depends}, ${misc:Depends} Description: Library for quaternion arithmetic and rotation math Quaternions are four-dimensional numbers which form an associative normed division algebra over the real numbers. Unit quaternions are a convenient and efficient way to represent orientations and rotations in three dimensions. . CQRlib is an ANSI C implementation of a utility library for quaternion arithmetic and quaternion rotation math. debian/libcqrlib2-dev.dirs0000644000000000000000000000002412150134703012642 0ustar usr/lib usr/include debian/libcqrlib2.symbols0000644000000000000000000000217012150134703012621 0ustar libCQRlib.so.2 libcqrlib2 #MINVER# CQRAdd@Base 1.0.3 CQRAngles2Quaternion@Base 1.0.3 CQRAxis2Quaternion@Base 1.0.3 CQRConjugate@Base 1.0.3 CQRCreateEmptyQuaternion@Base 1.0.3 CQRCreateQuaternion@Base 1.0.3 CQRDist@Base 1.1.2 CQRDistsq@Base 1.1.2 CQRDivide@Base 1.0.3 CQRDot@Base 1.1.2 CQRDoublePower@Base 1.1.2 CQREqual@Base 1.0.3 CQRExp@Base 1.1.2 CQRFreeQuaternion@Base 1.0.3 CQRGetQuaternionAngle@Base 1.1.2 CQRGetQuaternionAxis@Base 1.1.2 CQRGetQuaternionIm@Base 1.1.2 CQRGetQuaternionW@Base 1.1.2 CQRGetQuaternionX@Base 1.1.2 CQRGetQuaternionY@Base 1.1.2 CQRGetQuaternionZ@Base 1.1.2 CQRHLERP@Base 1.1.2 CQRHLERPDist@Base 1.1.2 CQRIntegerPower@Base 1.1.2 CQRIntegerRoot@Base 1.1.2 CQRInverse@Base 1.0.3 CQRLog@Base 1.1.2 CQRMatrix2Quaternion@Base 1.0.3 CQRMultiply@Base 1.0.3 CQRNorm@Base 1.1.2 CQRNormsq@Base 1.0.3 CQRPoint2Quaternion@Base 1.1.2 CQRQuaternion2Angles@Base 1.0.3 CQRQuaternion2Matrix@Base 1.0.3 CQRQuaternionPower@Base 1.1.2 CQRRotateByQuaternion@Base 1.0.3 CQRSLERP@Base 1.1.2 CQRSLERPDist@Base 1.1.2 CQRScalarMultiply@Base 1.0.3 CQRSetQuaternion@Base 1.0.3 CQRSubtract@Base 1.0.3 debian/libcqrlib2-dev.install0000644000000000000000000000006112150134703013350 0ustar usr/include/* usr/lib/*/lib*.a usr/lib/*/lib*.so debian/README.source0000644000000000000000000000422712150134703011346 0ustar Notes on this Debian source package =================================== Source package format --------------------- These Debianized sources are in the standard '3.0 (quilt)' dpkg source format. The patches in 'debian/patches' are generated from the git repository of the package (see the Vcs-Git field in debian/control) by diffing the 'upstream' branch with the corresponding patch branch ('p/*'). Making a change to the package sources does not require working with the git repository. The package can be changed in a normal way by either adding a new patch to 'debian/patches' or by changing the sources directly and letting dpkg-source build the additional patch during source package creation. Working with the packaging git repository ----------------------------------------- If you want to incorporate your patch to the git repository of this package, here are some hints. Some scripts to automate the patch and series file generation and other tasks can be found at http://gitorious.org/gdp The 'master' branch of the git repository always contains the complete patched sources, ready to be built by 'debuild' or a similar command. Commits modifying the upstream sources should go directly to the master branch, but should also be cherry picked to a specific patch branch, in order to be included in a separate patch file in the final source package. Note that the patch branches do not form a patch stack, all of them should be branched from unmodified upstream sources. The patches to be generated and the order of patch application are determined by DEP-3 header information files in 'debian/metapatches'. The patches are created and applied in lexicographic ordering of the patch header files, so if a specific ordering of the patch files is needed, these files should be named like 'NN_name', where NN is a number, to force the ordering. The header field 'X-git-branch' in the metapatch file points to the git branch used to generate the patch file. Upstream modifying commits not included in any of the patch branches will be placed by dpkg-source to the catchall patch 'debian/patches/debian-changes-{version}', but having this patch in a released version is discouraged. debian/metapatches/0000755000000000000000000000000012150134703011460 5ustar debian/metapatches/01_makefile0000644000000000000000000000015512150134703013461 0ustar From: Teemu Ikonen Subject: Various fixes to upstream Makefile X-git-branch: p/makefile debian/rules0000755000000000000000000000035712150134703010247 0ustar #!/usr/bin/make -f # -*- makefile -*- # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 export DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH) export INSTALL_LIB := lib/$(DEB_HOST_MULTIARCH) %: dh $@ debian/watch0000644000000000000000000000006412150134703010213 0ustar version=3 http://sf.net/cqrlib/CQRlib-(.*)\.tar\.gz debian/copyright0000644000000000000000000000230012150134703011110 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: CQRlib Upstream-Contact: Herbert J. Bernstein (yaya at bernstein-plus-sons dot com) Files: * Copyright: 2008-2010 Herbert J. Bernstein License: LGPL-2.1+ Files: debian/* Copyright: 2009, 2011, 2013 Teemu Ikonen License: LGPL-2.1+ License: LGPL-2.1+ This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) 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. . You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA . On Debian systems the full text of the GNU Lesser General Public License, version 2.1 can be found in the `/usr/share/common-licenses/LGPL-2.1' file. debian/libcqrlib2.dirs0000644000000000000000000000001012150134703012061 0ustar usr/lib debian/libcqrlib2.install0000644000000000000000000000002412150134703012573 0ustar usr/lib/*/lib*.so.* debian/source/0000755000000000000000000000000012150134703010462 5ustar debian/source/format0000644000000000000000000000001412150134703011670 0ustar 3.0 (quilt) debian/changelog0000644000000000000000000000262112150134703011035 0ustar cqrlib (1.1.2-2) unstable; urgency=low * control: - Upgrade to standards-version 3.9.4. - Add libcqrlib2 dependency to libcqrlib2-dev. - Remove unnecessary shlibs:Depends substvar. * Add libcqrlib2.symbols file. * Use debhelper compat level 9 for hardening flags. * patches/01_makefile: - Pick up (hardening) build flags from environment. - Use a variable for library installation path for multiarch support. * Use multiarch library paths. * copyright: Upgrade to latest format, update years. -- Teemu Ikonen Sat, 25 May 2013 15:15:39 +0200 cqrlib (1.1.2-1) unstable; urgency=low * New upstream version. * Use Debian source package format '3.0 (quilt) * Add a README.source file documenting the source package generation from the git repository. * Split Makefile fixes to (meta)patch 01_makefile: - Use $DESTDIR as an installation directory - Remove .libs dirs in empty target - Link with libm - Remove all test output in empty target * control: - Upgrade to standards version 3.9.1 - Update descriptions (fixes some lintian wishlist-level warnings) * Do not install *.la files (closes: #621299). -- Teemu Ikonen Thu, 07 Apr 2011 17:58:46 +0200 cqrlib (1.0.3-1) unstable; urgency=low * Initial release (Closes: #550850) -- Teemu Ikonen Mon, 16 Nov 2009 18:03:44 +0100 debian/patches/0000755000000000000000000000000012150134703010611 5ustar debian/patches/01_makefile.patch0000644000000000000000000001207112150134703013710 0ustar From: Teemu Ikonen Subject: Various fixes to upstream Makefile X-git-branch: p/makefile Makefile | 49 +++++++++++++++++++++++++++++-------------------- 1 file changed, 29 insertions(+), 20 deletions(-) diff --git a/Makefile b/Makefile index 555e370..8552d08 100644 --- a/Makefile +++ b/Makefile @@ -48,8 +48,8 @@ RELEASE = 1.1.0 # CC = gcc CXX = g++ -CFLAGS = -g -O2 -Wall -ansi -pedantic -CPPFLAGS = $(CFLAGS) -DCQR_NOCCODE=1 +CFLAGS += -g -O2 -Wall -ansi -pedantic +CXXFLAGS += $(CFLAGS) -DCQR_NOCCODE=1 # # libtool path if system default is not suitable @@ -76,7 +76,8 @@ INC = $(ROOT) EXAMPLES = $(ROOT) TESTDATA = $(ROOT) #INSTALLDIR = /usr/local -INSTALLDIR = $(HOME) +INSTALLDIR = $(DESTDIR)/usr +INSTALL_LIB ?= lib # # Include directories @@ -87,16 +88,21 @@ else INCLUDES = -I$(INC) endif -COMPILE_COMMAND = $(LIBTOOL) --mode=compile $(CC) $(CFLAGS) $(INCLUDES) $(WARNINGS) -c -LIBRARY_LINK_COMMAND = $(LIBTOOL) --mode=link $(CC) -version-info $(VERSION) -rpath $(INSTALLDIR)/lib -BUILD_COMMAND_LOCAL = $(LIBTOOL) --mode=link $(CC) $(CFLAGS) $(INCLUDES) -BUILD_COMMAND_DYNAMIC = $(LIBTOOL) --mode=link $(CC) $(CFLAGS) -dynamic -I $(INSTALLDIR)/include -L$(INSTALLDIR)/lib -BUILD_COMMAND_STATIC = $(LIBTOOL) --mode=link $(CC) $(CFLAGS) -static -I $(INSTALLDIR)/include -L$(INSTALLDIR)/lib -CPPCOMPILE_COMMAND = $(LIBTOOL) --mode=compile $(CXX) $(CPPFLAGS) $(INCLUDES) $(WARNINGS) -c -CPPLIBRARY_LINK_COMMAND = $(LIBTOOL) --mode=link $(CXX) -version-info $(VERSION) -rpath $(INSTALLDIR)/lib -CPPBUILD_COMMAND_LOCAL = $(LIBTOOL) --mode=link $(CXX) $(CPPFLAGS) $(INCLUDES) -CPPBUILD_COMMAND_DYNAMIC= $(LIBTOOL) --mode=link $(CXX) $(CPPFLAGS) -dynamic -I $(INSTALLDIR)/include -L$(INSTALLDIR)/lib -CPPBUILD_COMMAND_STATIC = $(LIBTOOL) --mode=link $(CXX) $(CPPFLAGS) -static -I $(INSTALLDIR)/include -L$(INSTALLDIR)/lib +# +# C Libraries +# +CLIBRARIES = -lm + +COMPILE_COMMAND = $(LIBTOOL) --mode=compile $(CC) $(CPPFLAGS) $(CFLAGS) $(INCLUDES) $(WARNINGS) -c +LIBRARY_LINK_COMMAND = $(LIBTOOL) --mode=link $(CC) -version-info $(VERSION) -rpath $(INSTALLDIR)/$(INSTALL_LIB) $(LDFLAGS) +BUILD_COMMAND_LOCAL = $(LIBTOOL) --mode=link $(CC) $(CPPFLAGS) $(CFLAGS) $(INCLUDES) $(LDFLAGS) +BUILD_COMMAND_DYNAMIC = $(LIBTOOL) --mode=link $(CC) $(CPPFLAGS) $(CFLAGS) -dynamic -I $(INSTALLDIR)/include -L$(INSTALLDIR)/$(INSTALL_LIB) $(LDFLAGS) +BUILD_COMMAND_STATIC = $(LIBTOOL) --mode=link $(CC) $(CPPFLAGS) $(CFLAGS) -static -I $(INSTALLDIR)/include -L$(INSTALLDIR)/$(INSTALL_LIB) $(LDFLAGS) +CPPCOMPILE_COMMAND = $(LIBTOOL) --mode=compile $(CXX) $(CPPFLAGS) $(CXXFLAGS) $(INCLUDES) $(WARNINGS) -c +CPPLIBRARY_LINK_COMMAND = $(LIBTOOL) --mode=link $(CXX) -version-info $(VERSION) -rpath $(INSTALLDIR)/$(INSTALL_LIB) $(LDFLAGS) +CPPBUILD_COMMAND_LOCAL = $(LIBTOOL) --mode=link $(CXX) $(CPPFLAGS) $(CXXFLAGS) $(INCLUDES) $(LDFLAGS) +CPPBUILD_COMMAND_DYNAMIC= $(LIBTOOL) --mode=link $(CXX) $(CPPFLAGS) $(CXXFLAGS) -dynamic -I $(INSTALLDIR)/include -L$(INSTALLDIR)/$(INSTALL_LIB) $(LDFLAGS) +CPPBUILD_COMMAND_STATIC = $(LIBTOOL) --mode=link $(CXX) $(CPPFLAGS) $(CXXFLAGS) -static -I $(INSTALLDIR)/include -L$(INSTALLDIR)/$(INSTALL_LIB) $(LDFLAGS) INSTALL_COMMAND = $(LIBTOOL) --mode=install cp INSTALL_FINISH_COMMAND = $(LIBTOOL) --mode=finish @@ -196,10 +202,10 @@ all: $(LIB) $(BIN) $(SOURCE) $(HEADERS) \ $(LIB)/libCQRlib.$(LIB_EXT) \ $(BIN)/CQRlibTest $(BIN)/CPPQRTest -install: all $(INSTALLDIR) $(INSTALLDIR)/lib $(INSTALLDIR)/include \ +install: all $(INSTALLDIR) $(INSTALLDIR)/$(INSTALL_LIB) $(INSTALLDIR)/include \ $(INC) $(LIB)/libCQRlib.$(LIB_EXT) $(INC)/cqrlib.h - $(INSTALL_COMMAND) $(LIB)/libCQRlib.$(LIB_EXT) $(INSTALLDIR)/lib/libCQRlib.$(LIB_EXT) - $(INSTALL_FINISH_COMMAND) $(INSTALLDIR)/lib/libCQRlib.$(LIB_EXT) + $(INSTALL_COMMAND) $(LIB)/libCQRlib.$(LIB_EXT) $(INSTALLDIR)/$(INSTALL_LIB)/libCQRlib.$(LIB_EXT) + $(INSTALL_FINISH_COMMAND) $(INSTALLDIR)/$(INSTALL_LIB)/libCQRlib.$(LIB_EXT) -cp $(INSTALLDIR)/include/cqrlib.h $(INSTALLDIR)/include/CQRlib_old.h cp $(INC)/cqrlib.h $(INSTALLDIR)/include/cqrlib.h chmod 644 $(INSTALLDIR)/include/cqrlib.h @@ -234,8 +240,8 @@ install: all $(INSTALLDIR) $(INSTALLDIR)/lib $(INSTALLDIR)/include \ $(INSTALLDIR): mkdir -p $(INSTALLDIR) -$(INSTALLDIR)/lib: $(INSTALLDIR) - mkdir -p $(INSTALLDIR)/lib +$(INSTALLDIR)/$(INSTALL_LIB): $(INSTALLDIR) + mkdir -p $(INSTALLDIR)/$(INSTALL_LIB) $(INSTALLDIR)/bin: $(INSTALLDIR) mkdir -p $(INSTALLDIR)/bin @@ -255,7 +261,8 @@ $(BIN): # $(LIB)/libCQRlib.$(LIB_EXT): $(SOURCE) $(HEADERS) $(COMMONDEP) $(COMPILE_COMMAND) -c $(SOURCE) - $(LIBRARY_LINK_COMMAND) -o $(LIB)/libCQRlib.$(LIB_EXT) *.$(OBJ_EXT) + $(LIBRARY_LINK_COMMAND) -o $(LIB)/libCQRlib.$(LIB_EXT) *.$(OBJ_EXT) \ + $(CLIBRARIES) # # CQRlibTest example program @@ -296,7 +303,9 @@ empty: @-rm -f $(TESTDATA)/CPPQRTest.lst @-rm -f $(TESTDATA)/CPPQRTest_static.lst @-rm -f $(TESTDATA)/CPPQRTest_dynamic.lst - + @-rm -rf .libs + @-rm -f CPPQRTest.cpp.* + # # Remove temporary files # debian/patches/series0000644000000000000000000000002212150134703012020 0ustar 01_makefile.patch debian/compat0000644000000000000000000000000212150134703010360 0ustar 9 debian/docs0000644000000000000000000000002212150134703010027 0ustar README_CQRlib.txt