r7094 - in packages/trunk/libclaw/debian: . patches

Julien Jorge j-jorge-guest at alioth.debian.org
Sun May 18 12:51:36 UTC 2008


Author: j-jorge-guest
Date: 2008-05-18 12:51:36 +0000 (Sun, 18 May 2008)
New Revision: 7094

Added:
   packages/trunk/libclaw/debian/claw-config.man.sgml
   packages/trunk/libclaw/debian/libclaw-doc.install
   packages/trunk/libclaw/debian/libclaw.doc-base
   packages/trunk/libclaw/debian/patches/
   packages/trunk/libclaw/debian/patches/add-html-doc.diff
   packages/trunk/libclaw/debian/patches/fix-soname.diff
   packages/trunk/libclaw/debian/patches/series
   packages/trunk/libclaw/debian/watch
Removed:
   packages/trunk/libclaw/debian/shlibs.local.ex
   packages/trunk/libclaw/debian/watch.ex
Modified:
   packages/trunk/libclaw/debian/changelog
   packages/trunk/libclaw/debian/control
   packages/trunk/libclaw/debian/copyright
   packages/trunk/libclaw/debian/libclaw-dev.install
   packages/trunk/libclaw/debian/libclaw1.install
   packages/trunk/libclaw/debian/rules
Log:
Added files to create libclaw1 libclaw-dev and libclaw-doc packages.

Modified: packages/trunk/libclaw/debian/changelog
===================================================================
--- packages/trunk/libclaw/debian/changelog	2008-05-18 03:51:25 UTC (rev 7093)
+++ packages/trunk/libclaw/debian/changelog	2008-05-18 12:51:36 UTC (rev 7094)
@@ -2,5 +2,5 @@
 
   * Initial release (Closes: #nnnn)  <nnnn is the bug number of your ITP>
 
- -- Benoit Tuduri <tuduri.benoit at freesurf.fr>  Thu, 24 Apr 2008 22:30:10 +0200
+ -- Julien Jorge <julien_jorge at yahoo.fr>  Sat, 17 May 2008 15:36:57 +0200
 

Added: packages/trunk/libclaw/debian/claw-config.man.sgml
===================================================================
--- packages/trunk/libclaw/debian/claw-config.man.sgml	                        (rev 0)
+++ packages/trunk/libclaw/debian/claw-config.man.sgml	2008-05-18 12:51:36 UTC (rev 7094)
@@ -0,0 +1,175 @@
+<!doctype refentry PUBLIC "-//OASIS//DTD DocBook V4.1//EN" [
+
+<!-- Process this file with docbook-to-man to generate an nroff manual
+     page: `docbook-to-man manpage.sgml > manpage.1'.  You may view
+     the manual page with: `docbook-to-man manpage.sgml | nroff -man |
+     less'.  A typical entry in a Makefile or Makefile.am is:
+
+manpage.1: manpage.sgml
+	docbook-to-man $< > $@
+
+    
+	The docbook-to-man binary is found in the docbook-to-man package.
+	Please remember that if you create the nroff version in one of the
+	debian/rules file targets (such as build), you will need to include
+	docbook-to-man in your Build-Depends control field.
+
+  -->
+
+  <!ENTITY dhfirstname "<firstname>Julien</firstname>">
+  <!ENTITY dhsurname   "<surname>Jorge</surname>">
+  <!ENTITY dhdate      "<date>2008-05-17</date>">
+  <!ENTITY dhsection   "<manvolnum>1</manvolnum>">
+  <!ENTITY dhemail     "<email>julien_jorge at yahoo.fr</email>">
+  <!ENTITY dhusername  "Julien Jorge">
+  <!ENTITY dhucpackage "<refentrytitle>LIBCLAW-DEV</refentrytitle>">
+  <!ENTITY dhpackage   "libclaw-dev">
+
+  <!ENTITY debian      "<productname>Debian</productname>">
+  <!ENTITY gnu         "<acronym>GNU</acronym>">
+]>
+
+<refentry>
+  <refentryinfo>
+    <address>
+      &dhemail;
+    </address>
+    <author>
+      &dhfirstname;
+      &dhsurname;
+    </author>
+    <copyright>
+      <year>2006</year>
+      <holder>&dhusername;</holder>
+    </copyright>
+    &dhdate;
+  </refentryinfo>
+  <refmeta>
+    &dhucpackage;
+
+    &dhsection;
+  </refmeta>
+  <refnamediv>
+    <refname>&dhpackage;</refname>
+
+    <refpurpose>show information about installed libclaw libraries</refpurpose>
+  </refnamediv>
+  <refsynopsisdiv>
+    <cmdsynopsis>
+      <command>&dhpackage;</command>
+       <arg><option>library...</option></arg>
+       <arg><option>--prefix</option></arg>
+       <arg><option>--prefix=PREFIX</option></arg>
+       <arg><option>--exec-prefix</option></arg>
+       <arg><option>--exec-prefix=EPREFIX</option></arg>
+       <arg><option>--version</option></arg>
+       <arg><option>--libs</option></arg>
+       <arg><option>--cflags</option></arg>
+    </cmdsynopsis>
+  </refsynopsisdiv>
+  <refsect1>
+    <title>DESCRIPTION</title>
+
+    <para>This manual page documents briefly the
+      <command>&dhpackage;</command> command,</para>
+
+    <para><command>&dhpackage;</command> is a program that shows information
+      about the installed libclaw libraries.</para>
+
+  </refsect1>
+  <refsect1>
+    <title>OPTIONS</title>
+
+    <para>The following options are supported:</para>
+
+    <variablelist>
+      <varlistentry>
+        <term><option>library</option>
+        </term>
+        <listitem>
+          <para>The library for which the informations are displayed.</para>
+        </listitem>
+      </varlistentry>
+      <varlistentry>
+        <term><option>--prefix</option>
+	<option>--prefix=PREFIX</option>
+        </term>
+        <listitem>
+          <para>Show the prefix libclaw was built with. The prefix may
+           be overridden by passing the argument PREFIX.</para>
+        </listitem>
+      </varlistentry>
+      <varlistentry>
+        <term><option>--exec-prefix</option>
+	<option>--exec-prefix=EPREFIX</option>
+        </term>
+        <listitem>
+          <para>Show the executable prefix libclaw was built with. The 
+           executable prefix may be overridden by passing the argument
+           EPREFIX.</para>
+        </listitem>
+      </varlistentry>
+      <varlistentry>
+        <term><option>--version</option>
+        </term>
+        <listitem>
+          <para>Show the version of the installed libclaw.</para>
+        </listitem>
+      </varlistentry>
+      <varlistentry>
+        <term><option>--libs</option>
+        </term>
+        <listitem>
+          <para>Show the compiler flags for linking to the installed library.</para>
+        </listitem>
+      </varlistentry>
+      <varlistentry>
+        <term><option>--cflags</option>
+        </term>
+        <listitem>
+          <para>Show the compiler flags for compiling against the installed library.</para>
+        </listitem>
+      </varlistentry>
+    </variablelist>
+  </refsect1>
+  <refsect1>
+    <title>EXAMPLE</title>
+
+    <para>Display the libraries to link to in order to use the claw_graphic library.</para>
+    <para><command>claw-config graphic --libs</command></para>
+    
+    <para>Display the compiler flags required to use all the libraries of libclaw.</para>
+    <para><command>claw-config all --cflags</command></para>
+  </refsect1>
+  <refsect1>
+    <title>AUTHOR</title>
+
+    <para>This manual page was written by &dhusername; &dhemail; for
+      the &debian; system (but may be used by others).  Permission is
+      granted to copy, distribute and/or modify this document under
+      the terms of the <acronym>GNU</acronym> Free Documentation
+      License, Version 1.1 or any later version published by the Free
+      Software Foundation; with no Invariant Sections, no Front-Cover
+      Texts and no Back-Cover Texts.</para>
+
+  </refsect1>
+</refentry>
+
+<!-- Keep this comment at the end of the file
+Local variables:
+mode: sgml
+sgml-omittag:t
+sgml-shorttag:t
+sgml-minimize-attributes:nil
+sgml-always-quote-attributes:t
+sgml-indent-step:2
+sgml-indent-data:t
+sgml-parent-document:nil
+sgml-default-dtd-file:nil
+sgml-exposed-tags:nil
+sgml-local-catalogs:nil
+sgml-local-ecat-files:nil
+End:
+-->
+
+

Modified: packages/trunk/libclaw/debian/control
===================================================================
--- packages/trunk/libclaw/debian/control	2008-05-18 03:51:25 UTC (rev 7093)
+++ packages/trunk/libclaw/debian/control	2008-05-18 12:51:36 UTC (rev 7094)
@@ -1,21 +1,85 @@
 Source: libclaw
+Section: devel
 Priority: extra
-Maintainer: Debian Games Team <pkg-games-devel at lists.alioth.debian.org>
-Uploaders: Benoit Tuduri <tuduri.benoit at freesurf.fr>
-Build-Depends: debhelper (>= 5),  cmake (>= 2.4.8)
+Maintainer: Julien Jorge <julien_jorge at yahoo.fr>
+Build-Depends: quilt, docbook-to-man, debhelper (>= 5), cmake (>= 2.4.7),
+ libjpeg62-dev (>= 6b-11), libpng12-dev (>= 1.2.8), doxygen (>= 1.5)
 Standards-Version: 3.7.3
+
+Package: libclaw1
 Section: libs
-
+Architecture: any
+Depends: ${shlibs:Depends}
+Homepage: http://libclaw.sourceforge.net/
+Description: Claw is a generalist C++ library (runtime libraries)
+ Claw is a C++ Library Absolutely Wonderful bringing various nice
+ classes and tools to C++ developers.
+ .
+ This library tries to be standard compliant and as portable as possible.
+ .
+ Claw provides:
+  - advanced data structures: automaton, AVL binary search tree,
+ graph, tree, ordered set, trie, maps with multiple types as keys,
+  - geometric tools (2D): box/rectangle, point, line, vector,
+  - image manipulation, reading and writing bitmap, jpeg, targa, png, pcx, xpm
+ files
+  - network tools: use sockets like any standard stream,
+  - text algorithms,
+  - min-max/alpha-beta algorithms,
+  - developer tools: generic singleton, smart pointers,
+ meta-programming concepts, buffered streams,
+  - easy read of conf/ini files, easy access to environment variables,
+  - manipulation of dynamic libraries,
+  - and a lot more...
+ 
 Package: libclaw-dev
 Section: libdevel
 Architecture: any
-Depends: libclawBROKEN (= ${Source-Version})
-Description: <insert up to 60 chars description>
- <insert long description, indented with spaces>
+Depends: libclaw1 (= ${binary:Version})
+Homepage: http://libclaw.sourceforge.net/
+Description: Claw is a generalist C++ library (development files)
+ Claw is a C++ Library Absolutely Wonderful bringing various nice
+ classes and tools to C++ developers.
+ .
+ This library tries to be standard compliant and as portable as possible.
+ .
+ Claw provides:
+  - advanced data structures: automaton, AVL binary search tree,
+ graph, tree, ordered set, trie, maps with multiple types as keys,
+  - geometric tools (2D): box/rectangle, point, line, vector,
+  - image manipulation, reading and writing bitmap, jpeg, targa, png, pcx, xpm
+ files
+  - network tools: use sockets like any standard stream,
+  - text algorithms,
+  - min-max/alpha-beta algorithms,
+  - developer tools: generic singleton, smart pointers,
+ meta-programming concepts, buffered streams,
+  - easy read of conf/ini files, easy access to environment variables,
+  - manipulation of dynamic libraries,
+  - and a lot more...
 
-Package: libclawBROKEN
-Section: libs
-Architecture: any
-Depends: ${shlibs:Depends}, ${misc:Depends}
-Description: <insert up to 60 chars description>
- <insert long description, indented with spaces>
+Package: libclaw-doc
+Section: doc
+Architecture: all
+Homepage: http://libclaw.sourceforge.net/
+Description: Claw is a generalist C++ library (documentation files)
+ Claw is a C++ Library Absolutely Wonderful bringing various nice
+ classes and tools to C++ developers.
+ .
+ This library tries to be standard compliant and as portable as possible.
+ .
+ Claw provides:
+  - advanced data structures: automaton, AVL binary search tree,
+ graph, tree, ordered set, trie, maps with multiple types as keys,
+  - geometric tools (2D): box/rectangle, point, line, vector,
+  - image manipulation, reading and writing bitmap, jpeg, targa, png, pcx, xpm
+ files
+  - network tools: use sockets like any standard stream,
+  - text algorithms,
+  - min-max/alpha-beta algorithms,
+  - developer tools: generic singleton, smart pointers,
+ meta-programming concepts, buffered streams,
+  - easy read of conf/ini files, easy access to environment variables,
+  - manipulation of dynamic libraries,
+  - and a lot more...
+

Modified: packages/trunk/libclaw/debian/copyright
===================================================================
--- packages/trunk/libclaw/debian/copyright	2008-05-18 03:51:25 UTC (rev 7093)
+++ packages/trunk/libclaw/debian/copyright	2008-05-18 12:51:36 UTC (rev 7094)
@@ -1,39 +1,32 @@
-This package was debianized by Benoit Tuduri <tuduri.benoit at freesurf.fr> on
-Thu, 24 Apr 2008 22:30:10 +0200.
+This package was debianized by Julien Jorge <julien_jorge at yahoo.fr> on
+Thu, 01 May 2008 09:59:32 +0200.
 
-It was downloaded from <url://example.com>
+It was downloaded from <http://libclaw.sourceforge.net>
 
-Upstream Author(s): 
+Upstream Author: 
 
-    <put author's name and email here>
-    <likewise for another author>
+    Julien Jorge <julien_jorge at yahoo.fr
 
 Copyright: 
 
-    <Copyright (C) YYYY Name OfAuthor>
-    <likewise for another author>
+    <Copyright (C) 2005-2008 Julien Jorge>
 
 License:
 
-    This package is free software; you can redistribute it and/or
+    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 of the License, or (at your option) any later version.
-
-    This package is distributed in the hope that it will be useful,
+    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 package; if not, write to the Free Software
-    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
+    License along with this library; if not, write to the Free Software
+    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 
-On Debian systems, the complete text of the GNU Lesser General
-Public License can be found in `/usr/share/common-licenses/LGPL'.
+The Debian packaging is (C) 2008, Julien Jorge <julien_jorge at yahoo.fr> and
+is licensed under the GPL, see `/usr/share/common-licenses/GPL'.
 
-The Debian packaging is (C) 2008, Benoit Tuduri <tuduri.benoit at freesurf.fr>
-and is licensed under the GPL, see `/usr/share/common-licenses/GPL'.
-
-# Please also look if there are files or directories which have a
-# different copyright/license attached and list them here.

Modified: packages/trunk/libclaw/debian/libclaw-dev.install
===================================================================
--- packages/trunk/libclaw/debian/libclaw-dev.install	2008-05-18 03:51:25 UTC (rev 7093)
+++ packages/trunk/libclaw/debian/libclaw-dev.install	2008-05-18 12:51:36 UTC (rev 7094)
@@ -1,6 +1,5 @@
-usr/include/*
-usr/lib/lib*.a
-usr/lib/lib*.so
-usr/lib/pkgconfig/*
-usr/lib/*.la
-usr/share/pkgconfig/*
+debian/tmp/usr/include/* usr/include
+debian/tmp/usr/lib/*.a usr/lib/
+debian/tmp/usr/lib/lib*.so usr/lib
+debian/tmp/usr/bin/* usr/bin
+debian/tmp/usr/share/cmake-2.4/Modules/* usr/share/cmake-2.4/Modules

Added: packages/trunk/libclaw/debian/libclaw-doc.install
===================================================================
--- packages/trunk/libclaw/debian/libclaw-doc.install	                        (rev 0)
+++ packages/trunk/libclaw/debian/libclaw-doc.install	2008-05-18 12:51:36 UTC (rev 7094)
@@ -0,0 +1,3 @@
+debian/tmp/usr/share/doc/libclaw1/html/*.html usr/share/doc/libclaw1/html
+examples usr/share/doc/libclaw1/
+

Added: packages/trunk/libclaw/debian/libclaw.doc-base
===================================================================
--- packages/trunk/libclaw/debian/libclaw.doc-base	                        (rev 0)
+++ packages/trunk/libclaw/debian/libclaw.doc-base	2008-05-18 12:51:36 UTC (rev 7094)
@@ -0,0 +1,10 @@
+Document: libclaw1-api
+Title: libclaw API documentation
+Author: Julien Jorge <julien_jorge at yahoo.fr>
+Abstract: This manual describes the C++ API for libclaw1.
+Section: unknown
+
+Format: HTML
+Index: /usr/share/doc/libclaw1/html/index.html
+Files: /usr/share/doc/libclaw1/html/*.html
+

Modified: packages/trunk/libclaw/debian/libclaw1.install
===================================================================
--- packages/trunk/libclaw/debian/libclaw1.install	2008-05-18 03:51:25 UTC (rev 7093)
+++ packages/trunk/libclaw/debian/libclaw1.install	2008-05-18 12:51:36 UTC (rev 7094)
@@ -1 +1,2 @@
-usr/lib/lib*.so.*
+debian/tmp/usr/lib/lib*.so.* usr/lib
+

Added: packages/trunk/libclaw/debian/patches/add-html-doc.diff
===================================================================
--- packages/trunk/libclaw/debian/patches/add-html-doc.diff	                        (rev 0)
+++ packages/trunk/libclaw/debian/patches/add-html-doc.diff	2008-05-18 12:51:36 UTC (rev 7094)
@@ -0,0 +1,78 @@
+Index: libclaw-1.5.2b/doc/CMakeLists.txt
+===================================================================
+--- libclaw-1.5.2b.orig/doc/CMakeLists.txt	2008-05-18 13:54:29.000000000 +0200
++++ libclaw-1.5.2b/doc/CMakeLists.txt	2008-05-18 13:54:48.000000000 +0200
+@@ -1,12 +1,20 @@
+ PROJECT(claw)
+ 
+-#INCLUDE( ${CMAKE_ROOT}/Modules/FindDoxygen.cmake OPTIONAL )
++INCLUDE( ${CMAKE_ROOT}/Modules/FindDoxygen.cmake OPTIONAL )
+ 
+-#IF( DOXYGEN_FOUND )
+-#  ADD_CUSTOM_TARGET(doc ALL doxygen)
++IF( DOXYGEN_FOUND )
++  ADD_CUSTOM_TARGET(
++    doc ALL doxygen
++    "${CMAKE_CURRENT_SOURCE_DIR}/Doxyfile"
++  )
++
++  FILE(MAKE_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/html")
+ 
+   # install documentation
+-#  INSTALL_FILES( ${CLAW_INSTALLDIR_DOC} html )
+-#ELSE( DOXYGEN_FOUND )
+-#  MESSAGE( "doxygen not found." )
+-#ENDIF( DOXYGEN_FOUND )
++  INSTALL(
++    DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/html"
++    DESTINATION ${CLAW_INSTALLDIR_DOC}
++  )
++ELSE( DOXYGEN_FOUND )
++  MESSAGE( "doxygen not found." )
++ENDIF( DOXYGEN_FOUND )
+Index: libclaw-1.5.2b/doc/Doxyfile
+===================================================================
+--- libclaw-1.5.2b.orig/doc/Doxyfile	2008-05-18 13:54:29.000000000 +0200
++++ libclaw-1.5.2b/doc/Doxyfile	2008-05-18 13:54:48.000000000 +0200
+@@ -6,7 +6,7 @@
+ PROJECT_NAME           = "CLAW Library (a C++ Library Absolutely Wonderful)"
+ PROJECT_NUMBER         = 1.5.2b
+ OUTPUT_DIRECTORY       = 
+-CREATE_SUBDIRS         = YES
++CREATE_SUBDIRS         = NO
+ OUTPUT_LANGUAGE        = English
+ USE_WINDOWS_ENCODING   = NO
+ BRIEF_MEMBER_DESC      = YES
+@@ -25,7 +25,7 @@
+ ALWAYS_DETAILED_SEC    = NO
+ INLINE_INHERITED_MEMB  = NO
+ FULL_PATH_NAMES        = YES
+-STRIP_FROM_PATH        = ../claw/
++STRIP_FROM_PATH        = ../../claw/
+ STRIP_FROM_INC_PATH    = 
+ SHORT_NAMES            = NO
+ JAVADOC_AUTOBRIEF      = NO
+@@ -81,7 +81,7 @@
+ #---------------------------------------------------------------------------
+ # configuration options related to the input files
+ #---------------------------------------------------------------------------
+-INPUT                  = ../claw
++INPUT                  = ../../claw
+ FILE_PATTERNS          = *.c \
+                          *.cc \
+                          *.cxx \
+@@ -243,7 +243,7 @@
+ #---------------------------------------------------------------------------
+ CLASS_DIAGRAMS         = YES
+ HIDE_UNDOC_RELATIONS   = YES
+-HAVE_DOT               = YES
++HAVE_DOT               = NO
+ CLASS_GRAPH            = YES
+ COLLABORATION_GRAPH    = YES
+ GROUP_GRAPHS           = YES
+@@ -267,4 +267,4 @@
+ #---------------------------------------------------------------------------
+ # Configuration::additions related to the search engine   
+ #---------------------------------------------------------------------------
+-SEARCHENGINE           = YES
++SEARCHENGINE           = NO

Added: packages/trunk/libclaw/debian/patches/fix-soname.diff
===================================================================
--- packages/trunk/libclaw/debian/patches/fix-soname.diff	                        (rev 0)
+++ packages/trunk/libclaw/debian/patches/fix-soname.diff	2008-05-18 12:51:36 UTC (rev 7094)
@@ -0,0 +1,120 @@
+Index: libclaw-1.5.2b/CMakeLists.txt
+===================================================================
+--- libclaw-1.5.2b.orig/CMakeLists.txt	2008-05-18 13:52:39.000000000 +0200
++++ libclaw-1.5.2b/CMakeLists.txt	2008-05-18 13:52:51.000000000 +0200
+@@ -1,12 +1,13 @@
+ PROJECT(claw)
+ 
+ INCLUDE_DIRECTORIES(.)
+-SET( CLAW_VERSION )
++SET( CLAW_VERSION 1.5.2b )
++SET( CLAW_VERSION_MAJOR 1 )
+ SET( CLAW_CODE_DIR claw/code/ )
+ SET( CLAW_INCLUDE_DIRECTORY "${CMAKE_INSTALL_PREFIX}/include/" )
+ SET( CLAW_INSTALLDIR_SOURCE include/claw/ )
+ SET( CLAW_INSTALLDIR_LIB lib/ )
+-SET( CLAW_INSTALLDIR_DOC share/doc/libclaw/ )
++SET( CLAW_INSTALLDIR_DOC share/doc/libclaw${CLAW_VERSION_MAJOR}/ )
+ SET( CLAW_EXECUTABLE_DIR bin/ )
+ 
+ SET( CLAW_LIBRARIES
+@@ -55,30 +56,52 @@
+ 
+ #-------------------------------------------------------------------------------
+ # application
+-ADD_LIBRARY( claw_application SHARED
+-             ${CLAW_CODE_DIR}application.cpp
+-             ${CLAW_CODE_DIR}arguments.cpp
+-             ${CLAW_CODE_DIR}arguments_table.cpp )
++SET( CLAW_APPLICATION_SOURCES
++  ${CLAW_CODE_DIR}application.cpp
++  ${CLAW_CODE_DIR}arguments.cpp
++  ${CLAW_CODE_DIR}arguments_table.cpp
++)
++ADD_LIBRARY( claw_application SHARED ${CLAW_APPLICATION_SOURCES} )
++ADD_LIBRARY( claw_application-static STATIC ${CLAW_APPLICATION_SOURCES} )
+ TARGET_LINK_LIBRARIES( claw_application claw_logger )
+ 
+ # configuration file
+-ADD_LIBRARY( claw_configuration_file SHARED
+-             ${CLAW_CODE_DIR}configuration_file.cpp )
++SET( CLAW_CONFIGURATION_FILE_SOURCES
++  ${CLAW_CODE_DIR}configuration_file.cpp
++)
++ADD_LIBRARY( claw_configuration_file SHARED ${CLAW_CONFIGURATION_FILE_SOURCES} )
++ADD_LIBRARY(
++  claw_configuration_file-static
++  STATIC ${CLAW_CONFIGURATION_FILE_SOURCES}
++)
+ 
+ # dynamic libraries
+-ADD_LIBRARY( claw_dynamic_library SHARED
+-             ${CLAW_CODE_DIR}dynamic_library.cpp )
++SET( CLAW_DYNAMIC_LIBRARY_SOURCES
++  ${CLAW_CODE_DIR}dynamic_library.cpp
++)
++ADD_LIBRARY( claw_dynamic_library SHARED ${CLAW_DYNAMIC_LIBRARY_SOURCES} )
++ADD_LIBRARY(
++  claw_dynamic_library-static
++  STATIC ${CLAW_DYNAMIC_LIBRARY_SOURCES}
++)
+ 
+ # log system
+-ADD_LIBRARY( claw_logger SHARED
+-             ${CLAW_CODE_DIR}logger.cpp
+-	           ${CLAW_CODE_DIR}log_stream.cpp
+-	           ${CLAW_CODE_DIR}log_level.cpp)
++SET( CLAW_LOGGER_SOURCES
++  ${CLAW_CODE_DIR}logger.cpp
++	${CLAW_CODE_DIR}log_stream.cpp
++	${CLAW_CODE_DIR}log_level.cpp
++)
++ADD_LIBRARY( claw_logger SHARED ${CLAW_LOGGER_SOURCES} )
++ADD_LIBRARY( claw_logger-static STATIC ${CLAW_LOGGER_SOURCES} )
+ 
+ # network
+-ADD_LIBRARY( claw_net SHARED
+-             ${CLAW_CODE_DIR}basic_socket.cpp
+-             ${CLAW_CODE_DIR}socket_server.cpp )
++SET( CLAW_NET_SOURCES
++  ${CLAW_CODE_DIR}basic_socket.cpp
++  ${CLAW_CODE_DIR}socket_server.cpp
++)
++ADD_LIBRARY( claw_net SHARED ${CLAW_NET_SOURCES} )
++ADD_LIBRARY( claw_net-static STATIC ${CLAW_NET_SOURCES} )
++
+ IF( WIN32 )
+   TARGET_LINK_LIBRARIES( claw_net wsock32 )
+ ENDIF( WIN32 )
+@@ -128,6 +151,7 @@
+ ENDIF( PNG_FOUND )
+ 
+ ADD_LIBRARY( claw_graphic SHARED ${CLAW_GRAPHIC_SOURCES} )
++ADD_LIBRARY( claw_graphic-static STATIC ${CLAW_GRAPHIC_SOURCES} )
+ TARGET_LINK_LIBRARIES(claw_graphic ${CLAW_GRAPHIC_LIBRARIES})
+ 
+ # extra flags for the link
+@@ -143,7 +167,14 @@
+ #-------------------------------------------------------------------------------
+ # install libraries
+ FOREACH( lib ${CLAW_LIBRARIES} )
++  SET_TARGET_PROPERTIES(
++    ${lib} PROPERTIES
++    VERSION ${CLAW_VERSION}
++    SOVERSION ${CLAW_VERSION_MAJOR}
++  )
++
+   INSTALL( TARGETS ${lib} DESTINATION ${CLAW_INSTALLDIR_LIB}  )
++  INSTALL( TARGETS ${lib}-static DESTINATION ${CLAW_INSTALLDIR_LIB}  )
+ ENDFOREACH( lib )
+ 
+ INSTALL( FILES COPYING DESTINATION ${CLAW_INSTALLDIR_DOC} )
+@@ -164,7 +195,7 @@
+     "${CMAKE_CURRENT_BINARY_DIR}/claw-config"
+     IMMEDIATE @ONLY)
+ 
+-  INSTALL( FILES claw-config
++  INSTALL( FILES "${CMAKE_CURRENT_BINARY_DIR}/claw-config"
+     DESTINATION ${CLAW_EXECUTABLE_DIR}
+     PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE
+       GROUP_READ GROUP_EXECUTE

Added: packages/trunk/libclaw/debian/patches/series
===================================================================
--- packages/trunk/libclaw/debian/patches/series	                        (rev 0)
+++ packages/trunk/libclaw/debian/patches/series	2008-05-18 12:51:36 UTC (rev 7094)
@@ -0,0 +1,2 @@
+fix-soname.diff
+add-html-doc.diff

Modified: packages/trunk/libclaw/debian/rules
===================================================================
--- packages/trunk/libclaw/debian/rules	2008-05-18 03:51:25 UTC (rev 7093)
+++ packages/trunk/libclaw/debian/rules	2008-05-18 12:51:36 UTC (rev 7094)
@@ -11,21 +11,23 @@
 
 
 
+BUILD_TREE=$(CURDIR)/build-tree
 
-# shared library versions, option 1
-version=2.0.5
-major=2
-# option 2, assuming the library is created as src/.libs/libfoo.so.2.0.5 or so
-#version=`ls src/.libs/lib*.so.* | \
-# awk '{if (match($$0,/[0-9]+\.[0-9]+\.[0-9]+$$/)) print substr($$0,RSTART)}'`
-#major=`ls src/.libs/lib*.so.* | \
-# awk '{if (match($$0,/\.so\.[0-9]+$$/)) print substr($$0,RSTART+4)}'`
+# shared library versions
+version=1.5.2b
+major=1
 
 configure: configure-stamp
 configure-stamp:
 	dh_testdir
-	# Add here commands to configure the package.
-
+	QUILT_PATCHES=debian/patches quilt push -a || test $$? = 2
+	
+	# Perform an out-of-tree build to keep a clean source tree
+	mkdir $(BUILD_TREE)
+	cd $(BUILD_TREE); cmake .. \
+		-DCMAKE_INSTALL_PREFIX:STRING="/usr" -DCMAKE_C_FLAGS:STRING="$(CFLAGS)" \
+		-DBUILD_STATIC:BOOL=ON
+	
 	touch configure-stamp
 
 
@@ -33,19 +35,17 @@
 build-stamp: configure-stamp 
 	dh_testdir
 
-	# Add here commands to compile the package.
-	$(MAKE)
+	cd $(BUILD_TREE); $(MAKE)
 
 	touch $@
 
 clean:
 	dh_testdir
 	dh_testroot
+	QUILT_PATCHES=debian/patches quilt pop -a -R || test $$? = 2
 	rm -f build-stamp configure-stamp
-
-	# Add here commands to clean up after the build process.
-	$(MAKE) clean
-
+	rm -fr $(BUILD_TREE)
+	rm -f debian/claw-config.1
 	dh_clean 
 
 install: build
@@ -53,11 +53,9 @@
 	dh_testroot
 	dh_clean -k 
 	dh_installdirs
+	cd $(BUILD_TREE); $(MAKE) install DESTDIR=$(CURDIR)/debian/tmp
+	docbook-to-man debian/claw-config.man.sgml > debian/claw-config.1
 
-	# Add here commands to install the package into debian/tmp
-	$(MAKE) DESTDIR=$(CURDIR)/debian/tmp install
-
-
 # Build architecture-independent files here.
 binary-indep: build install
 # We have nothing to do by default.
@@ -69,24 +67,14 @@
 	dh_installchangelogs ChangeLog
 	dh_installdocs
 	dh_installexamples
-#	dh_install
-#	dh_installmenu
-#	dh_installdebconf	
-#	dh_installlogrotate
-#	dh_installemacsen
-#	dh_installpam
-#	dh_installmime
-#	dh_installinit
-#	dh_installcron
-#	dh_installinfo
-	dh_installman
+
+	dh_install
+	dh_installman -plibclaw-dev debian/claw-config.1
 	dh_link
 	dh_strip
 	dh_compress
 	dh_fixperms
-#	dh_perl
-#	dh_python
-#	dh_makeshlibs
+	dh_makeshlibs
 	dh_installdeb
 	dh_shlibdeps
 	dh_gencontrol

Deleted: packages/trunk/libclaw/debian/shlibs.local.ex
===================================================================
--- packages/trunk/libclaw/debian/shlibs.local.ex	2008-05-18 03:51:25 UTC (rev 7093)
+++ packages/trunk/libclaw/debian/shlibs.local.ex	2008-05-18 12:51:36 UTC (rev 7094)
@@ -1 +0,0 @@
-liblibclaw 1.5.2b libclaw (>> 1.5.2b-0), libclaw (<< 1.5.2b-99)

Added: packages/trunk/libclaw/debian/watch
===================================================================
--- packages/trunk/libclaw/debian/watch	                        (rev 0)
+++ packages/trunk/libclaw/debian/watch	2008-05-18 12:51:36 UTC (rev 7094)
@@ -0,0 +1,3 @@
+version=3
+http://sf.net/libclaw/libclaw-(.*)\.tar\.bz2
+

Deleted: packages/trunk/libclaw/debian/watch.ex
===================================================================
--- packages/trunk/libclaw/debian/watch.ex	2008-05-18 03:51:25 UTC (rev 7093)
+++ packages/trunk/libclaw/debian/watch.ex	2008-05-18 12:51:36 UTC (rev 7094)
@@ -1,22 +0,0 @@
-# Example watch control file for uscan
-# Rename this file to "watch" and then you can run the "uscan" command
-# to check for upstream updates and more.
-# See uscan(1) for format
-
-# Compulsory line, this is a version 3 file
-version=3
-
-# Uncomment to examine a Webpage 
-# <Webpage URL> <string match>
-#http://www.example.com/downloads.php libclaw-(.*)\.tar\.gz
-
-# Uncomment to examine a Webserver directory
-#http://www.example.com/pub/libclaw-(.*)\.tar\.gz
-
-# Uncommment to examine a FTP server
-#ftp://ftp.example.com/pub/libclaw-(.*)\.tar\.gz debian uupdate
-
-# Uncomment to find new files on sourceforge, for devscripts >= 2.9
-# http://sf.net/libclaw/libclaw-(.*)\.tar\.gz
-
-




More information about the Pkg-games-commits mailing list