Commit 2a66ff5e authored by Andreas Moog's avatar Andreas Moog

Add a doc-package, build and install documentation in -indep targets

parent 5639c55e
......@@ -5,6 +5,7 @@ Uploaders: Andreas Moog <amoog@ubuntu.com>, Fabien Givors <f+debian@chezlefab.ne
Build-Depends:
autotools-dev,
debhelper (>= 9),
doxygen,
libasound2-dev [!kfreebsd-any !hurd-any],
libfontconfig1-dev,
libfreetype6-dev,
......@@ -27,7 +28,7 @@ Vcs-Browser: http://git.debian.org/?p=collab-maint/libclanlib2.git;a=summary
Package: libclanlib-2.3-dbg
Section: debug
Architecture: any
Depends: libclanlib-2.3-1 (= ${binary:Version})
Depends: libclanlib-2.3-1 (= ${binary:Version}), ${misc:Depends}
Description: ClanLib game SDK debug symbols
This package contains the debug symbols for the ClanLib game SDK.
.
......@@ -36,12 +37,21 @@ Description: ClanLib game SDK debug symbols
Package: libclanlib-2.3-dev
Section: libdevel
Architecture: any
Depends: libclanlib-2.3-1 (= ${binary:Version})
Depends: libclanlib-2.3-1 (= ${binary:Version}), ${misc:Depends}
Description: ClanLib game SDK development files
This package contains the development files for the ClanLib game SDK.
.
It is needed to develop and build applications.
Package: libclanlib-2.3-doc
Section: doc
Architecture: all
Depends: ${misc:Depends}
Description: ClanLib game SDK documentation
This package contains the documentation for the ClanLib game SDK.
.
It includes manpages as well as the documentation in html, latex and xml.
Package: libclanlib-2.3-1
Section: libs
Architecture: any
......
Document: libclanlib-2.3
Title: Debian libclanlib2.3 API
Author: The ClanLib Team
Abstract: This manual describes ClanLib 2.2 API
and give a lot of examples of how it can be used
Section: Programming/C++
Format: HTML
Index: /usr/share/doc/libclanlib-2.3-doc/html/index.html
Files: /usr/share/doc/libclanlib-2.3-doc/html/*.html
Documentation/Reference/doxyoutput/html
Documentation/Reference/doxyoutput/xml
Documentation/Reference/doxyoutput/latex
Documentation/Reference/doxyoutput/man/man3/*
Description: For multiarch, the value of libdir in the pkg-config file
should not be hardcoded. Instead, it should follow the value passed in
--libdir to configure.
Author: Andreas Moog <amoog@ubuntu.com>
Forwarded: no
--- clanlib2-2.3.5.orig/Setup/pkgconfig/clanSound.pc.in
+++ clanlib2-2.3.5/Setup/pkgconfig/clanSound.pc.in
@@ -2,7 +2,7 @@
prefix=@prefix@
exec_prefix=${prefix}
-libdir=${exec_prefix}/lib
+libdir=@libdir@
includedir=${prefix}/include/ClanLib-@LT_RELEASE@
Name: clanSound
--- clanlib2-2.3.5.orig/Setup/pkgconfig/clanApp.pc.in
+++ clanlib2-2.3.5/Setup/pkgconfig/clanApp.pc.in
@@ -2,7 +2,7 @@
prefix=@prefix@
exec_prefix=${prefix}
-libdir=${exec_prefix}/lib
+libdir=@libdir@
includedir=${prefix}/include/ClanLib-@LT_RELEASE@
Name: clanApp
--- clanlib2-2.3.5.orig/Setup/pkgconfig/clanCore.pc.in
+++ clanlib2-2.3.5/Setup/pkgconfig/clanCore.pc.in
@@ -2,7 +2,7 @@
prefix=@prefix@
exec_prefix=${prefix}
-libdir=${exec_prefix}/lib
+libdir=@libdir@
includedir=${prefix}/include/ClanLib-@LT_RELEASE@
Name: clanCore
--- clanlib2-2.3.5.orig/Setup/pkgconfig/clanGL1.pc.in
+++ clanlib2-2.3.5/Setup/pkgconfig/clanGL1.pc.in
@@ -2,7 +2,7 @@
prefix=@prefix@
exec_prefix=${prefix}
-libdir=${exec_prefix}/lib
+libdir=@libdir@
includedir=${prefix}/include/ClanLib-@LT_RELEASE@
Name: clanGL1
--- clanlib2-2.3.5.orig/Setup/pkgconfig/clanCSSLayout.pc.in
+++ clanlib2-2.3.5/Setup/pkgconfig/clanCSSLayout.pc.in
@@ -2,7 +2,7 @@
prefix=@prefix@
exec_prefix=${prefix}
-libdir=${exec_prefix}/lib
+libdir=@libdir@
includedir=${prefix}/include/ClanLib-@LT_RELEASE@
Name: clanCSSLayout
--- clanlib2-2.3.5.orig/Setup/pkgconfig/clanSWRender.pc.in
+++ clanlib2-2.3.5/Setup/pkgconfig/clanSWRender.pc.in
@@ -2,7 +2,7 @@
prefix=@prefix@
exec_prefix=${prefix}
-libdir=${exec_prefix}/lib
+libdir=@libdir@
includedir=${prefix}/include/ClanLib-@LT_RELEASE@
Name: clanSWRender
--- clanlib2-2.3.5.orig/Setup/pkgconfig/clanRegExp.pc.in
+++ clanlib2-2.3.5/Setup/pkgconfig/clanRegExp.pc.in
@@ -2,7 +2,7 @@
prefix=@prefix@
exec_prefix=${prefix}
-libdir=${exec_prefix}/lib
+libdir=@libdir@
includedir=${prefix}/include/ClanLib-@LT_RELEASE@
Name: clanRegExp
--- clanlib2-2.3.5.orig/Setup/pkgconfig/clanMikMod.pc.in
+++ clanlib2-2.3.5/Setup/pkgconfig/clanMikMod.pc.in
@@ -2,7 +2,7 @@
prefix=@prefix@
exec_prefix=${prefix}
-libdir=${exec_prefix}/lib
+libdir=@libdir@
includedir=${prefix}/include/ClanLib-@LT_RELEASE@
Name: clanMikMod
--- clanlib2-2.3.5.orig/Setup/pkgconfig/clanNetwork.pc.in
+++ clanlib2-2.3.5/Setup/pkgconfig/clanNetwork.pc.in
@@ -2,7 +2,7 @@
prefix=@prefix@
exec_prefix=${prefix}
-libdir=${exec_prefix}/lib
+libdir=@libdir@
includedir=${prefix}/include/ClanLib-@LT_RELEASE@
Name: clanNetwork
--- clanlib2-2.3.5.orig/Setup/pkgconfig/clanDisplay.pc.in
+++ clanlib2-2.3.5/Setup/pkgconfig/clanDisplay.pc.in
@@ -2,7 +2,7 @@
prefix=@prefix@
exec_prefix=${prefix}
-libdir=${exec_prefix}/lib
+libdir=@libdir@
includedir=${prefix}/include/ClanLib-@LT_RELEASE@
Name: clanDisplay
--- clanlib2-2.3.5.orig/Setup/pkgconfig/clanDatabase.pc.in
+++ clanlib2-2.3.5/Setup/pkgconfig/clanDatabase.pc.in
@@ -2,7 +2,7 @@
prefix=@prefix@
exec_prefix=${prefix}
-libdir=${exec_prefix}/lib
+libdir=@libdir@
includedir=${prefix}/include/ClanLib-@LT_RELEASE@
Name: clanDatabase
--- clanlib2-2.3.5.orig/Setup/pkgconfig/clanGL.pc.in
+++ clanlib2-2.3.5/Setup/pkgconfig/clanGL.pc.in
@@ -2,7 +2,7 @@
prefix=@prefix@
exec_prefix=${prefix}
-libdir=${exec_prefix}/lib
+libdir=@libdir@
includedir=${prefix}/include/ClanLib-@LT_RELEASE@
Name: clanGL
--- clanlib2-2.3.5.orig/Setup/pkgconfig/clanGUI.pc.in
+++ clanlib2-2.3.5/Setup/pkgconfig/clanGUI.pc.in
@@ -2,7 +2,7 @@
prefix=@prefix@
exec_prefix=${prefix}
-libdir=${exec_prefix}/lib
+libdir=@libdir@
includedir=${prefix}/include/ClanLib-@LT_RELEASE@
Name: clanGUI
--- clanlib2-2.3.5.orig/Setup/pkgconfig/clanVorbis.pc.in
+++ clanlib2-2.3.5/Setup/pkgconfig/clanVorbis.pc.in
@@ -2,7 +2,7 @@
prefix=@prefix@
exec_prefix=${prefix}
-libdir=${exec_prefix}/lib
+libdir=@libdir@
includedir=${prefix}/include/ClanLib-@LT_RELEASE@
Name: clanVorbis
--- clanlib2-2.3.5.orig/Setup/pkgconfig/clanSqlite.pc.in
+++ clanlib2-2.3.5/Setup/pkgconfig/clanSqlite.pc.in
@@ -2,7 +2,7 @@
prefix=@prefix@
exec_prefix=${prefix}
-libdir=${exec_prefix}/lib
+libdir=@libdir@
includedir=${prefix}/include/ClanLib-@LT_RELEASE@
Name: clanSqlite
Description: Disable automatic build of "reftest" html documentation.
Author: Fabien Givors <f+debian@chezlefab.net>
Forwarded: not-needed
* "reftest" documentation need clanlib to be installed in order to be
generated.
* "doxygen" documentation is generated and shipped with the -doc package.
* Upstream developers are aware of the problems fixed by the patch
Index: ClanLib-2.3.5/Documentation/Reference/Makefile.am
===================================================================
--- ClanLib-2.3.5.orig/Documentation/Reference/Makefile.am 2009-03-27 11:25:47.000000000 +0100
+++ ClanLib-2.3.5/Documentation/Reference/Makefile.am 2012-03-04 15:31:48.745633384 +0100
@@ -8,10 +8,10 @@
if [ -d doxyoutput ]; then rm -rf doxyoutput; fi
if [ -d reftest ]; then rm -rf reftest; fi
mkdir doxyoutput;
- mkdir reftest
+# mkdir reftest
doxygen ./clanlib.doxygen
- make -C ../Utilities/ReferenceDocs
- ../Utilities/ReferenceDocs/ReferenceDocs
+# make -C ../Utilities/ReferenceDocs
+# ../Utilities/ReferenceDocs/ReferenceDocs
install-html:
$(INSTALL) -d $(DESTDIR)$(HTML_PREFIX)
@@ -20,11 +20,11 @@
$(INSTALL) -d $(DESTDIR)$(HTML_PREFIX)/Reference/html
$(INSTALL) -m 0644 $(srcdir)/images/*.png $(DESTDIR)$(HTML_PREFIX)/Reference/images
- find reftest/ -name "*.html" -exec $(INSTALL) -m 0644 {} $(DESTDIR)$(HTML_PREFIX)/Reference/html \;
+# find reftest/ -name "*.html" -exec $(INSTALL) -m 0644 {} $(DESTDIR)$(HTML_PREFIX)/Reference/html \;
clean-local:
rm -rf doxyoutput
- rm -rf reftest
+# rm -rf reftest
# EOF #
Index: ClanLib-2.3.5/Documentation/Reference/Makefile.in
===================================================================
--- ClanLib-2.3.5.orig/Documentation/Reference/Makefile.in 2012-02-23 12:28:57.000000000 +0100
+++ ClanLib-2.3.5/Documentation/Reference/Makefile.in 2012-03-04 15:31:48.749633384 +0100
@@ -416,10 +416,10 @@
if [ -d doxyoutput ]; then rm -rf doxyoutput; fi
if [ -d reftest ]; then rm -rf reftest; fi
mkdir doxyoutput;
- mkdir reftest
+# mkdir reftest
doxygen ./clanlib.doxygen
- make -C ../Utilities/ReferenceDocs
- ../Utilities/ReferenceDocs/ReferenceDocs
+# make -C ../Utilities/ReferenceDocs
+# ../Utilities/ReferenceDocs/ReferenceDocs
install-html:
$(INSTALL) -d $(DESTDIR)$(HTML_PREFIX)
@@ -428,11 +428,11 @@
$(INSTALL) -d $(DESTDIR)$(HTML_PREFIX)/Reference/html
$(INSTALL) -m 0644 $(srcdir)/images/*.png $(DESTDIR)$(HTML_PREFIX)/Reference/images
- find reftest/ -name "*.html" -exec $(INSTALL) -m 0644 {} $(DESTDIR)$(HTML_PREFIX)/Reference/html \;
+# find reftest/ -name "*.html" -exec $(INSTALL) -m 0644 {} $(DESTDIR)$(HTML_PREFIX)/Reference/html \;
clean-local:
rm -rf doxyoutput
- rm -rf reftest
+# rm -rf reftest
# EOF #
noreftest
libdir_pkgconfig.patch
......@@ -7,13 +7,22 @@
# This special exception was added by Craig Small in version 0.37 of dh-make.
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
export DH_VERBOSE=1
%:
dh $@ --parallel
dh $@ --parallel --with autotools_dev
override_dh_auto_configure:
dh_auto_configure -- --enable-docs
override_dh_makeshlibs:
dh_makeshlibs -- -c0
override_dh_strip:
dh_strip --dbg-package=libclanlib-2.3-dbg
override_dh_auto_build-indep:
$(MAKE) html
override_dh_auto_install-indep:
$(MAKE) install-html DESTDIR=$(CURDIR)/debian/tmp
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment