--- libnoise-0.9.0+1.0.0-RC1.orig/debian/rules +++ libnoise-0.9.0+1.0.0-RC1/debian/rules @@ -0,0 +1,122 @@ +#!/usr/bin/make -f +# +# Code taken from debhelper samples, copyright 1997 to 1999 by Joey Hess. +# Also some code taken from dbs example Makefile. + +DEB_ROOT := $(shell pwd)/debian +TAR_DIR := + +#export DH_VERBOSE=1 + + +# include dbs to unpack source and apply patches +include /usr/share/dbs/dbs-build.mk + +# override the unpacked target to allow for zip files +$(unpacked): $(STAMP_DIR)/created + mkdir -p $(STAMP_DIR)/sources $(SOURCE_DIR) $(STAMP_DIR)/log/sources + @for f in `ls ./*.zip | LC_COLLATE=C sort | sed 's,^\./,,g'`; do \ + stampfile=$(STAMP_DIR)/sources/`basename $$f`; \ + log=$(STAMP_DIR)/log/sources/`basename $$f`; \ + if [ ! -e $$stampfile ]; then \ + echo -n "Extracting source $$f ... "; \ + if unzip -n -d $(BUILD_TREE) $$f > $$log 2>&1; then \ + echo successful.; \ + touch $$stampfile; \ + else q\ + echo failed!; \ + exit 1; \ + fi; \ + else \ + echo Already unpacked $$f.; \ + fi; \ + done + touch $@ + +INSTALL = /usr/bin/install +INSTALL_PROGRAM = /usr/bin/install -m 755 + +# These are used for cross-compiling and for saving the configure script +# from having to guess our platform (since we know it already) +DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) +DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) + +CFLAGS = -Wall -g + +ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) + CFLAGS += -O0 +else + CFLAGS += -O2 +endif +ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS))) + INSTALL_PROGRAM += -s +endif + +FV := 0.3 +SV := 0 + +build: $(patched) $(STAMP_DIR)/build-stamp +$(STAMP_DIR)/build-stamp: + dh_testdir + cd $(BUILD_TREE)/noise && make + +clean: + dh_testdir + dh_testroot + rm -fr $(STAMP_DIR) + rm -fr $(BUILD_TREE) + -rmdir build-tree + find . -name "*~" | xargs rm -f + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + $(INSTALL) $(BUILD_TREE)/noise/lib/libnoise.so.* \ + debian/libnoise0/usr/lib + dh_link -p libnoise0 usr/lib/libnoise.so.$(FV) usr/lib/libnoise.so.$(SV) + + $(INSTALL) $(BUILD_TREE)/noise/lib/libnoise.la \ + debian/libnoise-dev/usr/lib + $(INSTALL) $(BUILD_TREE)/noise/lib/libnoise.a \ + debian/libnoise-dev/usr/lib + dh_link -p libnoise-dev usr/lib/libnoise.so.$(FV) usr/lib/libnoise.so + $(INSTALL) $(BUILD_TREE)/noise/include/*.h \ + debian/libnoise-dev/usr/include/libnoise/ + $(INSTALL) $(BUILD_TREE)/noise/include/module/*.h \ + debian/libnoise-dev/usr/include/libnoise/module/ + $(INSTALL) $(BUILD_TREE)/noise/include/model/*.h \ + debian/libnoise-dev/usr/include/libnoise/model/ + $(INSTALL) $(BUILD_TREE)/noise/doc/html/* \ + debian/libnoise-dev/usr/share/doc/libnoise-dev/html/ + $(INSTALL) $(BUILD_TREE)/noiseutils.* \ + debian/libnoise-dev/usr/share/doc/libnoise-dev/noiseutils/ + $(INSTALL) $(BUILD_TREE)/texture*.cpp $(BUILD_TREE)/worms.cpp \ + debian/libnoise-dev/usr/share/doc/libnoise-dev/examples/ + +# Build architecture-independent files here. +binary-indep: build install + +# Build architecture-dependent files here. +binary-arch: build install + dh_testdir + dh_testroot + dh_installchangelogs + dh_installdocs + dh_installman + dh_link + dh_strip + dh_compress + dh_fixperms + dh_makeshlibs + dh_installdeb + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install configure --- libnoise-0.9.0+1.0.0-RC1.orig/debian/control +++ libnoise-0.9.0+1.0.0-RC1/debian/control @@ -0,0 +1,31 @@ +Source: libnoise +Section: devel +Priority: optional +Build-Depends: debhelper (>= 4.0.0), dbs, unzip, libtool +Standards-Version: 3.6.1 +Maintainer: Federico Di Gregorio + +Package: libnoise0 +Section: devel +Architecture: any +Depends: ${shlibs:Depends} +Description: a portable, coherent noise-generating library for C++ + libnoise is a portable C++ library that is used to generate coherent noise, + a type of smoothly-changing noise. libnoise can generate Perlin noise, + ridged multifractal noise, and other types of coherent-noise. Coherent noise + is often used by graphics programmers to generate natural-looking textures, + planetary terrain, and other things. + +Package: libnoise-dev +Section: devel +Architecture: any +Depends: libnoise0 (= ${Source-Version}) +Description: a portable, coherent noise-generating library for C++ + libnoise is a portable C++ library that is used to generate coherent noise, + a type of smoothly-changing noise. libnoise can generate Perlin noise, + ridged multifractal noise, and other types of coherent-noise. Coherent noise + is often used by graphics programmers to generate natural-looking textures, + planetary terrain, and other things. + . + This package contains the headers and static libraries needed to build + programs using libnoise. --- libnoise-0.9.0+1.0.0-RC1.orig/debian/changelog +++ libnoise-0.9.0+1.0.0-RC1/debian/changelog @@ -0,0 +1,24 @@ +libnoise (0.9.0+1.0.0-RC1-1) unstable; urgency=low + + * New upstream release. + + -- Federico Di Gregorio Sat, 02 Sep 2006 20:57:07 +0200 + +libnoise (0.9.0-3) unstable; urgency=low + + * Added to Build-depends: dbs, libtool (Closes: #321979). + + -- Federico Di Gregorio Mon, 22 Aug 2005 01:49:29 +0200 + +libnoise (0.9.0-2) unstable; urgency=low + + * Update debian/copyright to include licensing information for the example + code (GPL instead of LGPL.) + + -- Federico Di Gregorio Fri, 5 Aug 2005 23:31:33 +0200 + +libnoise (0.9.0-1) unstable; urgency=low + + * Initial release (Closes: #313610) + + -- Federico Di Gregorio Mon, 25 Jul 2005 20:22:58 +0200 --- libnoise-0.9.0+1.0.0-RC1.orig/debian/compat +++ libnoise-0.9.0+1.0.0-RC1/debian/compat @@ -0,0 +1 @@ +4 --- libnoise-0.9.0+1.0.0-RC1.orig/debian/libnoise0.dirs +++ libnoise-0.9.0+1.0.0-RC1/debian/libnoise0.dirs @@ -0,0 +1,2 @@ +usr/lib +usr/share/doc/libnoise0 --- libnoise-0.9.0+1.0.0-RC1.orig/debian/copyright +++ libnoise-0.9.0+1.0.0-RC1/debian/copyright @@ -0,0 +1,20 @@ +This package was debianized by: + + Federico Di Gregorio on + Monday, 25th July 20:19:57 CEST 2005 + +The original, pristine sources can be obtained from: + + http://libnoise.sourceforge.net/ + + +Copyright (C) 2003, 2004 Jason Bevins + +The library and utilities are free software, distributed under the terms of +the GNU Lesser General Public License. On a Debian GNU/Linux system the full +text of the LGPL can be found in /usr/share/common-licenses/LGPL. + +The example code located in /usr/share/doc/libnoise-dev/examples is +distributed under the terms of the GNU General Public License. On a Debian +GNU/Linux system the full text of the LGPL can be found in +/usr/share/common-licenses/GPL. --- libnoise-0.9.0+1.0.0-RC1.orig/debian/libnoise-dev.dirs +++ libnoise-0.9.0+1.0.0-RC1/debian/libnoise-dev.dirs @@ -0,0 +1,7 @@ +usr/lib +usr/include/libnoise +usr/include/libnoise/module +usr/include/libnoise/model +usr/share/doc/libnoise-dev/html +usr/share/doc/libnoise-dev/examples +usr/share/doc/libnoise-dev/noiseutils