[Pkg-sdl-commits] r34 - tarballs unstable/libsdl-sge
unstable/libsdl-sge/debian unstable/libsdl-sge/debian/patches
Sam Hocevar
sho at costa.debian.org
Fri Mar 3 19:48:17 CET 2006
Author: sho
Date: 2006-03-03 18:48:12 +0000 (Fri, 03 Mar 2006)
New Revision: 34
Added:
tarballs/libsdl-sge_030809.orig.tar.gz
unstable/libsdl-sge/debian/
unstable/libsdl-sge/debian/changelog
unstable/libsdl-sge/debian/compat
unstable/libsdl-sge/debian/control
unstable/libsdl-sge/debian/copyright
unstable/libsdl-sge/debian/docs
unstable/libsdl-sge/debian/libsdl-sge-dev.dirs
unstable/libsdl-sge/debian/libsdl-sge-dev.files
unstable/libsdl-sge/debian/libsdl-sge.dirs
unstable/libsdl-sge/debian/libsdl-sge.files
unstable/libsdl-sge/debian/patches/
unstable/libsdl-sge/debian/patches/001_makefile_fixes.diff
unstable/libsdl-sge/debian/patches/004_legacy_functions.diff
unstable/libsdl-sge/debian/patches/005_freetype_support.diff
unstable/libsdl-sge/debian/patches/010_examples.diff
unstable/libsdl-sge/debian/patches/series
unstable/libsdl-sge/debian/rules
unstable/libsdl-sge/debian/watch
Log:
[ Sam Hocevar ]
* Included changes from an NMU prepared by Nathanael Nerode. Thanks.
* Moved development to the pkg-sdl Alioth project.
* debian/rules:
+ Use quilt for patch management.
+ This version adds new symbols to the lib. Use dh_makeshlibs -V '...'.
+ Do not compress examples.
* debian/control:
+ Build-depend on quilt.
+ Set the SDL team as the maintainer and added its members to the
uploaders field.
+ Build-depend on debhelper (>= 4.0).
* debian/compat:
+ Set compatibility level to 4.
* debian/copyright:
+ Updated the FSF address.
* debian/patches/001_makefile_fixes.diff:
* debian/patches/005_freetype_support.diff:
+ Moved old diff to the quilt patch system.
* debian/patches/004_legacy_functions.diff:
+ Added empty legacy functions to maintain backwards binary compatibility
with C programs. These functions were not supposed to be used.
* debian/patches/010_examples.diff:
+ Fixed the examples makefile so that they can also be compiled outside
the SGE build tree (Closes: #318973).
[ Nathanael Nerode ]
* New upstream release (Closes: #336497). The new upstream doesn't change
very much, but it does integrate a lot of the Debian diffs, and it is
over two years old already.
* We export the C++ interface for the first time, since it is no longer
incompatible with exporting the C interface. Because we *previously*
exported only the C interface, we don't need to change library names etc.
* Rebuild with new toolchain (Closes: #332833)
* Added watch file.
* Standards-Version 3.6.2.0 (no changes necessary).
Added: tarballs/libsdl-sge_030809.orig.tar.gz
===================================================================
(Binary files differ)
Property changes on: tarballs/libsdl-sge_030809.orig.tar.gz
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Property changes on: unstable/libsdl-sge/debian
___________________________________________________________________
Name: mergeWithUpstream
+ 1
Added: unstable/libsdl-sge/debian/changelog
===================================================================
--- unstable/libsdl-sge/debian/changelog 2006-03-02 19:14:01 UTC (rev 33)
+++ unstable/libsdl-sge/debian/changelog 2006-03-03 18:48:12 UTC (rev 34)
@@ -0,0 +1,131 @@
+libsdl-sge (030809-1) unstable; urgency=low
+
+ [ Sam Hocevar ]
+
+ * Included changes from an NMU prepared by Nathanael Nerode. Thanks.
+ * Moved development to the pkg-sdl Alioth project.
+
+ * debian/rules:
+ + Use quilt for patch management.
+ + This version adds new symbols to the lib. Use dh_makeshlibs -V '...'.
+ + Do not compress examples.
+ * debian/control:
+ + Build-depend on quilt.
+ + Set the SDL team as the maintainer and added its members to the
+ uploaders field.
+ + Build-depend on debhelper (>= 4.0).
+ * debian/compat:
+ + Set compatibility level to 4.
+ * debian/copyright:
+ + Updated the FSF address.
+
+ * debian/patches/001_makefile_fixes.diff:
+ * debian/patches/005_freetype_support.diff:
+ + Moved old diff to the quilt patch system.
+
+ * debian/patches/004_legacy_functions.diff:
+ + Added empty legacy functions to maintain backwards binary compatibility
+ with C programs. These functions were not supposed to be used.
+
+ * debian/patches/010_examples.diff:
+ + Fixed the examples makefile so that they can also be compiled outside
+ the SGE build tree (Closes: #318973).
+
+ [ Nathanael Nerode ]
+
+ * New upstream release (Closes: #336497). The new upstream doesn't change
+ very much, but it does integrate a lot of the Debian diffs, and it is
+ over two years old already.
+ * We export the C++ interface for the first time, since it is no longer
+ incompatible with exporting the C interface. Because we *previously*
+ exported only the C interface, we don't need to change library names etc.
+ * Rebuild with new toolchain (Closes: #332833)
+ * Added watch file.
+ * Standards-Version 3.6.2.0 (no changes necessary).
+
+ -- Sam Hocevar (Debian packages) <sam+deb at zoy.org> Fri, 3 Mar 2006 17:41:16 +0100
+
+libsdl-sge (020904-5) unstable; urgency=low
+
+ * Makefile:
+ + #define _SGE_C in sge_config.h if C_ONLY is defined (Closes: #230954).
+ * debian/control:
+ + libsdl-sge-dev now only depends on libsdl-sge (>= 020904-4).
+ + Set the source section to "devel".
+
+ -- Sam Hocevar (Debian packages) <sam+deb at zoy.org> Mon, 16 Feb 2004 10:33:16 +0100
+
+libsdl-sge (020904-4) unstable; urgency=low
+
+ * sge_tt_text.cpp:
+ + Use freetype macros to include freetype headers (Closes: #230591).
+ * debian/control:
+ + Set libfreetype6-dev build dependency to (>= 2.0.1.20010317-1).
+
+ -- Sam Hocevar (Debian packages) <sam+deb at zoy.org> Sun, 1 Feb 2004 15:13:37 +0100
+
+libsdl-sge (020904-3) unstable; urgency=low
+
+ * New maintainer (Closes: #215097).
+ * debian/rules:
+ + Use debian/compat instead of DH_COMPAT.
+ + Install examples and documentation with the -dev package.
+ + Don't build the static library with -fPIC.
+ + Fixed DEB_BUILD_OPTIONS handling.
+ * debian/control:
+ + Enhanced long descriptions.
+
+ -- Sam Hocevar (Debian packages) <sam+deb at zoy.org> Sun, 1 Jun 2003 13:46:28 +0200
+
+libsdl-sge (020904-2) unstable; urgency=low
+
+ * Acknowledging NMU, thanks to Sam.
+ This closes #190293, #190294, #190290
+ * Set policy to 3.6.1.0
+
+ -- Julien Danjou <acid at debian.org> Wed, 20 Aug 2003 13:15:36 +0200
+
+libsdl-sge (020904-1.1) unstable; urgency=low
+
+ * NMU.
+ * Set the library's soname to libSGE.so.0 (Closes: #190293). Upstream
+ agreed to do a release with this soname.
+ * Rebuilt with gcc-3.x (Closes: #190290).
+ * Moved the .so symlink to the -dev package (Closes: #190294).
+ * Various minor packaging changes:
+ + Set policy to 3.5.10.
+ + Replaced "Author(s):" with "Author:" in the copyright file.
+ + Set the -dev package's section to libdevel.
+ + Made /usr/share/doc/libsdl-sge-dev a symlink to libsdl-sge.
+ + Updated the package descriptions.
+ * Added libsdl1.2-dev, libsdl-image1.2-dev, libfreetype6-dev to the -dev
+ package's dependencies.
+
+ -- Sam Hocevar (Debian packages) <sam+deb at zoy.org> Sun, 1 Jun 2003 13:46:28 +0200
+
+libsdl-sge (020904-1) unstable; urgency=low
+
+ * New upstream version (Closes: #162805)
+
+ -- Julien Danjou <acid at debian.org> Sat, 19 Oct 2002 17:43:59 +0200
+
+libsdl-sge (020104-3) unstable; urgency=low
+
+ * Add -fPIC for compilation on hppa/ia64
+
+ -- Julien Danjou <acid at debian.org> Mon, 2 Sep 2002 19:30:50 +0200
+
+libsdl-sge (020104-2) unstable; urgency=low
+
+ * Makefile: no -fpic
+ * Typo in description
+ * Now include static lib
+
+ -- Julien Danjou <acid at debian.org> Wed, 28 Aug 2002 14:40:31 +0200
+
+libsdl-sge (020104-1) unstable; urgency=low
+
+ * Initial Release. (Closes: #157400)
+
+ -- Julien Danjou <acid at debian.org> Tue, 20 Aug 2002 21:08:44 +0200
+
Added: unstable/libsdl-sge/debian/compat
===================================================================
--- unstable/libsdl-sge/debian/compat 2006-03-02 19:14:01 UTC (rev 33)
+++ unstable/libsdl-sge/debian/compat 2006-03-03 18:48:12 UTC (rev 34)
@@ -0,0 +1 @@
+4
Added: unstable/libsdl-sge/debian/control
===================================================================
--- unstable/libsdl-sge/debian/control 2006-03-02 19:14:01 UTC (rev 33)
+++ unstable/libsdl-sge/debian/control 2006-03-03 18:48:12 UTC (rev 34)
@@ -0,0 +1,34 @@
+Source: libsdl-sge
+Section: devel
+Priority: optional
+Maintainer: Debian SDL packages maintainers <pkg-sdl-maintainers at lists.alioth.debian.org>
+Uploaders: Matthew Danish <mrd at debian.org>, Zephaniah E. Hull <warp at debian.org>, Lawrence Williams <lawrence_cecil_williams at hotmail.com>, Sam Hocevar (Debian packages) <sam+deb at zoy.org>, Aurelien Jarno <aurel32 at debian.org>, Josselin Mouette <joss at debian.org>
+Build-Depends: debhelper (>= 4.0), quilt, libsdl1.2-dev, libsdl-image1.2-dev, libfreetype6-dev (>= 2.0.1.20010317-1)
+Standards-Version: 3.6.2
+
+Package: libsdl-sge
+Section: libs
+Architecture: any
+Depends: ${shlibs:Depends}
+Description: extension of graphic functions for the SDL multimedia library
+ SGE is a layer over the SDL multimedia library which provides common graphics
+ operations such as clipping, block copies, drawing of lines, circles and
+ primitives, rotation and scaling of surfaces, pixel operations, palette
+ functions and many more.
+ .
+ This package contains the libsdl-sge runtime library.
+
+Package: libsdl-sge-dev
+Section: libdevel
+Architecture: any
+Depends: libsdl-sge (>= 030809-1), libsdl1.2-dev, libsdl-image1.2-dev, libfreetype6-dev
+Conflicts: libsdl-sge (<< 020904-1.1)
+Replaces: libsdl-sge (<< 020904-1.1)
+Description: development files for libsdl-sge
+ SGE is a layer over the SDL multimedia library which provides common graphics
+ operations such as clipping, block copies, drawing of lines, circles and
+ primitives, rotation and scaling of surfaces, pixel operations, palette
+ functions and many more.
+ .
+ This package contains the header files and static library needed to
+ compile applications that use libsdl-sge.
Added: unstable/libsdl-sge/debian/copyright
===================================================================
--- unstable/libsdl-sge/debian/copyright 2006-03-02 19:14:01 UTC (rev 33)
+++ unstable/libsdl-sge/debian/copyright 2006-03-03 18:48:12 UTC (rev 34)
@@ -0,0 +1,25 @@
+This package was debianized by Julien Danjou <acid at debian.org> on
+Tue, 20 Aug 2002 20:46:13 +0200. Some later debianization updates were
+performed by Sam Hocevar <sam+deb at zoy.org>.
+
+It was downloaded from http://www.digitalfanatics.org/cal/sge/index.html
+
+Upstream Author: Anders Lindström <cal at swipnet.se>
+
+ 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 program; if not, write to the Free Software
+ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+
+On Debian GNU/Linux systems, the complete text of the GNU Lesser General
+Public License can be found in `/usr/share/common-licenses/LGPL'.
+
Added: unstable/libsdl-sge/debian/docs
===================================================================
--- unstable/libsdl-sge/debian/docs 2006-03-02 19:14:01 UTC (rev 33)
+++ unstable/libsdl-sge/debian/docs 2006-03-03 18:48:12 UTC (rev 34)
@@ -0,0 +1,3 @@
+README
+Todo
+WhatsNew
Added: unstable/libsdl-sge/debian/libsdl-sge-dev.dirs
===================================================================
--- unstable/libsdl-sge/debian/libsdl-sge-dev.dirs 2006-03-02 19:14:01 UTC (rev 33)
+++ unstable/libsdl-sge/debian/libsdl-sge-dev.dirs 2006-03-03 18:48:12 UTC (rev 34)
@@ -0,0 +1,4 @@
+usr/lib
+usr/include
+usr/share/doc/libsdl-sge/examples
+usr/share/doc/libsdl-sge/html
Added: unstable/libsdl-sge/debian/libsdl-sge-dev.files
===================================================================
--- unstable/libsdl-sge/debian/libsdl-sge-dev.files 2006-03-02 19:14:01 UTC (rev 33)
+++ unstable/libsdl-sge/debian/libsdl-sge-dev.files 2006-03-03 18:48:12 UTC (rev 34)
@@ -0,0 +1,3 @@
+usr/lib/libSGE.so
+usr/lib/libSGE.a
+usr/include
Added: unstable/libsdl-sge/debian/libsdl-sge.dirs
===================================================================
--- unstable/libsdl-sge/debian/libsdl-sge.dirs 2006-03-02 19:14:01 UTC (rev 33)
+++ unstable/libsdl-sge/debian/libsdl-sge.dirs 2006-03-03 18:48:12 UTC (rev 34)
@@ -0,0 +1 @@
+usr/lib
Added: unstable/libsdl-sge/debian/libsdl-sge.files
===================================================================
--- unstable/libsdl-sge/debian/libsdl-sge.files 2006-03-02 19:14:01 UTC (rev 33)
+++ unstable/libsdl-sge/debian/libsdl-sge.files 2006-03-03 18:48:12 UTC (rev 34)
@@ -0,0 +1,2 @@
+usr/lib/libSGE.so.0.030809
+usr/lib/libSGE.so.0
Added: unstable/libsdl-sge/debian/patches/001_makefile_fixes.diff
===================================================================
--- unstable/libsdl-sge/debian/patches/001_makefile_fixes.diff 2006-03-02 19:14:01 UTC (rev 33)
+++ unstable/libsdl-sge/debian/patches/001_makefile_fixes.diff 2006-03-03 18:48:12 UTC (rev 34)
@@ -0,0 +1,40 @@
+--- libsdl-sge-030809.orig/Makefile
++++ libsdl-sge-030809/Makefile
+@@ -11,7 +11,7 @@
+ OBJECTS=sge_surface.o sge_primitives.o sge_tt_text.o sge_bm_text.o sge_misc.o sge_textpp.o sge_blib.o sge_rotation.o sge_collision.o sge_shape.o
+
+ all: config $(OBJECTS)
+- @ar rsc libSGE.a $(OBJECTS)
++ ar rsc libSGE.a $(OBJECTS)
+
+ $(OBJECTS): %.o:%.cpp %.h #Each object depends on thier .cpp and .h file
+ $(CXX) $(CFLAGS) -c $<
+@@ -31,7 +31,7 @@
+ @strip SGE.dll
+
+ clean:
+- @rm -f *.o *.so *.a *.dll *.def
++ rm -f *.o *.so *.so.* *.a *.dll *.def
+
+ config:
+ @echo "/* SGE Config header (generated automatically) */" >sge_config.h
+--- libsdl-sge-030809.orig/Makefile.conf
++++ libsdl-sge-030809/Makefile.conf
+@@ -4,7 +4,7 @@
+ # (See README for more info)
+ C_COMP = y
+ #USE_FT = n
+-#USE_IMG = n
++USE_IMG = y
+ #QUIET = y
+
+
+@@ -25,7 +25,7 @@
+ PREFIX_H =$(shell sdl-config --prefix)/include/SDL
+
+ # Flags passed to the compiler
+-CFLAGS =-Wall -O3 -ffast-math
++CFLAGS =-Wall -ffast-math $(CUSTOM_CFLAGS)
+ SGE_CFLAGS =$(shell sdl-config --cflags)
+ # Uncomment to make some more optimizations
+ #CFLAGS =-Wall -O9 -ffast-math -march=i686
Added: unstable/libsdl-sge/debian/patches/004_legacy_functions.diff
===================================================================
--- unstable/libsdl-sge/debian/patches/004_legacy_functions.diff 2006-03-02 19:14:01 UTC (rev 33)
+++ unstable/libsdl-sge/debian/patches/004_legacy_functions.diff 2006-03-03 18:48:12 UTC (rev 34)
@@ -0,0 +1,40 @@
+diff -puriN sge030809.orig/sge_tt_text.cpp sge030809/sge_tt_text.cpp
+--- sge030809.orig/sge_tt_text.cpp 2003-08-08 14:48:08.000000000 +0200
++++ sge030809/sge_tt_text.cpp 2006-03-03 18:07:42.000000000 +0100
+@@ -1454,3 +1454,16 @@ int sge_tt_input(SDL_Surface *screen, sg
+ }
+
+ #endif /* _SGE_NOTTF */
++
++/**********************************************************************************/
++/** Legacy functions for backwards compatibility **/
++/**********************************************************************************/
++
++void insert_char(Uint16 *string, Uint16 ch, int pos, int max) { ; }
++void delete_char(Uint16 *string, int pos, int max) { ; }
++
++SDL_Rect fast_update(SDL_Surface *Surface,SDL_Surface *buffer,SDL_Rect ret, int type,sge_TTFont *font,Uint16 *string, Sint16 x,Sint16 y, Uint32 fcol, Uint32 bcol,int Alpha) { return ret; }
++SDL_Rect nice_update(SDL_Surface *Surface,SDL_Surface *buffer,SDL_Rect ret, int type,sge_TTFont *font,Uint16 *string, Sint16 x,Sint16 y, Uint32 fcol, Uint32 bcol, int Alpha) { return ret; }
++
++int keyrepeat(SDL_Event *event, int wait) { return 0; }
++
+diff -puriN sge030809.orig/sge_tt_text.h sge030809/sge_tt_text.h
+--- sge030809.orig/sge_tt_text.h 2003-08-07 14:02:59.000000000 +0200
++++ sge030809/sge_tt_text.h 2006-03-03 18:09:07.000000000 +0100
+@@ -93,9 +93,16 @@ DECLSPEC int sge_tt_input(SDL_Surface *s
+
+ DECLSPEC SDL_Surface *sge_TTF_Render(sge_TTFont *font,const Uint16 *text, SDL_Color fg, SDL_Color bg, int alpha_level);
+ DECLSPEC SDL_Surface *sge_TTF_RenderUNICODE(sge_TTFont *font,const Uint16 *text, SDL_Color fg, SDL_Color bg);
++/* Legacy functions */
++DECLSPEC SDL_Rect fast_update(SDL_Surface *Surface,SDL_Surface *buffer,SDL_Rect ret, int type,sge_TTFont *font,Uint16 *string, Sint16 x,Sint16 y, Uint32 fcol, Uint32 bcol,int Alpha);
++DECLSPEC SDL_Rect nice_update(SDL_Surface *Surface,SDL_Surface *buffer,SDL_Rect ret, int type,sge_TTFont *font,Uint16 *string, Sint16 x,Sint16 y, Uint32 fcol, Uint32 bcol, int Alpha);
+ #endif /* _SGE_NOTTF */
+
+ DECLSPEC Uint16 *sge_Latin1_Uni(const char *text);
++/* Legacy functions */
++DECLSPEC int keyrepeat(SDL_Event *event, int wait);
++DECLSPEC void insert_char(Uint16 *string, Uint16 ch, int pos, int max);
++DECLSPEC void delete_char(Uint16 *string, int pos, int max);
+ #ifdef _SGE_C
+ }
+ #endif
Added: unstable/libsdl-sge/debian/patches/005_freetype_support.diff
===================================================================
--- unstable/libsdl-sge/debian/patches/005_freetype_support.diff 2006-03-02 19:14:01 UTC (rev 33)
+++ unstable/libsdl-sge/debian/patches/005_freetype_support.diff 2006-03-03 18:48:12 UTC (rev 34)
@@ -0,0 +1,18 @@
+--- libsdl-sge-030809.orig/sge_tt_text.cpp
++++ libsdl-sge-030809/sge_tt_text.cpp
+@@ -36,10 +36,11 @@
+ #include "sge_textpp.h"
+
+ #ifndef _SGE_NOTTF
+-#include <freetype/freetype.h>
+-#include <freetype/ftoutln.h>
+-#include <freetype/ttnameid.h>
+-#include <freetype/internal/ftobjs.h>
++#include <ft2build.h>
++#include FT_FREETYPE_H
++#include FT_OUTLINE_H
++#include FT_TRUETYPE_IDS_H
++#include FT_INTERNAL_OBJECTS_H
+
+ /* The structure used to hold glyph information (cached) */
+ struct glyph {
Added: unstable/libsdl-sge/debian/patches/010_examples.diff
===================================================================
--- unstable/libsdl-sge/debian/patches/010_examples.diff 2006-03-02 19:14:01 UTC (rev 33)
+++ unstable/libsdl-sge/debian/patches/010_examples.diff 2006-03-03 18:48:12 UTC (rev 34)
@@ -0,0 +1,32 @@
+diff -puriN sge030809.orig/examples/Makefile sge030809/examples/Makefile
+--- sge030809.orig/examples/Makefile 2003-08-09 13:09:24.000000000 +0200
++++ sge030809/examples/Makefile 2006-03-03 18:25:26.000000000 +0100
+@@ -1,24 +1,10 @@
+ # Makefile for the SGE library examples
+
+-include ../Makefile.conf
+-
+-CFLAGS += $(SGE_CFLAGS) -I./../
+-LIBS =-L./../ -lSGE $(SGE_LIBS)
+-
+-TARGETS = fire bitmapfont collision blib rotate speedtest sprite sprite2 poly
+-C_TARGETS =
+-
+-ifneq ($(USE_FT),n)
+- TARGETS += basics blitting input alpha inputdeluxe
+- ifeq ($(C_COMP),y)
+- C_TARGETS = basics_c
+- endif
+-endif
+-
+-ifeq ($(USE_IMG),y)
+- TARGETS += sfont
+-endif
++CFLAGS = `sdl-config --cflags`
++LIBS = `sdl-config --libs` -lSGE
+
++TARGETS = fire bitmapfont collision blib rotate speedtest sprite sprite2 poly basics blitting input alpha inputdeluxe sfont
++C_TARGETS = basics_c
+
+ OBJECTS = $(addsuffix .o, $(TARGETS))
+ C_OBJECTS = $(addsuffix .o, $(C_TARGETS))
Added: unstable/libsdl-sge/debian/patches/series
===================================================================
--- unstable/libsdl-sge/debian/patches/series 2006-03-02 19:14:01 UTC (rev 33)
+++ unstable/libsdl-sge/debian/patches/series 2006-03-03 18:48:12 UTC (rev 34)
@@ -0,0 +1,4 @@
+001_makefile_fixes.diff -p1
+005_freetype_support.diff -p1
+004_legacy_functions.diff -p1
+010_examples.diff -p1
Added: unstable/libsdl-sge/debian/rules
===================================================================
--- unstable/libsdl-sge/debian/rules 2006-03-02 19:14:01 UTC (rev 33)
+++ unstable/libsdl-sge/debian/rules 2006-03-03 18:48:12 UTC (rev 34)
@@ -0,0 +1,83 @@
+#!/usr/bin/make -f
+# Sample debian/rules that uses debhelper.
+# GNU copyright 1997 to 1999 by Joey Hess.
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
+ CFLAGS += -g
+endif
+ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
+ INSTALL_PROGRAM += -s
+ SHARED_OBJECT = shared
+else
+ SHARED_OBJECT = shared-strip
+endif
+
+configure: configure-stamp
+configure-stamp:
+ dh_testdir
+ QUILT_PATCHES=debian/patches quilt push -a || test $$? = 2
+ touch configure-stamp
+
+build: build-stamp
+build-stamp: configure-stamp
+ dh_testdir
+
+ # Build the static library and make a backup
+ rm -f libSGE.a
+ $(MAKE) all CUSTOM_CFLAGS="$(CFLAGS) -O2"
+ rm -f libSGE.bak
+ mv libSGE.a libSGE.bak
+
+ # Build the shared library and restore the static backup
+ $(MAKE) clean
+ $(MAKE) $(SHARED_OBJECT) CUSTOM_CFLAGS="$(CFLAGS) -O2 -fPIC"
+ rm -f libSGE.a
+ mv libSGE.bak libSGE.a
+
+ touch build-stamp
+
+clean:
+ dh_testdir
+ dh_testroot
+ rm -f build-stamp configure-stamp
+ -$(MAKE) clean
+ QUILT_PATCHES=debian/patches quilt pop -a -R || test $$? = 2
+ rm -f libSGE.bak
+ dh_clean
+
+install: build
+ dh_testdir
+ dh_testroot
+ dh_clean -k
+ dh_installdirs
+
+ # Add here commands to install the package into debian/tmp
+ $(MAKE) install PREFIX=$(CURDIR)/debian/tmp/usr PREFIX_H=$(CURDIR)/debian/tmp/usr/include/SDL
+ ln -s libsdl-sge $(CURDIR)/debian/libsdl-sge-dev/usr/share/doc/libsdl-sge-dev
+ cp docs/*.html $(CURDIR)/debian/libsdl-sge-dev/usr/share/doc/libsdl-sge/html
+ cp examples/* $(CURDIR)/debian/libsdl-sge-dev/usr/share/doc/libsdl-sge/examples
+
+binary-indep: build install
+
+binary-arch: build install
+ dh_testdir
+ dh_testroot
+ dh_movefiles
+ dh_installdocs -plibsdl-sge
+ dh_installchangelogs -plibsdl-sge
+ dh_link
+ dh_strip
+ dh_compress -X /examples/
+ dh_fixperms
+ dh_makeshlibs -V 'libsdl-sge (>= 030809-1)'
+ 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
Property changes on: unstable/libsdl-sge/debian/rules
___________________________________________________________________
Name: svn:executable
+ *
Added: unstable/libsdl-sge/debian/watch
===================================================================
--- unstable/libsdl-sge/debian/watch 2006-03-02 19:14:01 UTC (rev 33)
+++ unstable/libsdl-sge/debian/watch 2006-03-03 18:48:12 UTC (rev 34)
@@ -0,0 +1,3 @@
+version=3
+http://www.digitalfanatics.org/cal/sge/download.html \
+ (?:.*/)?sge(.*)\.tar\.gz
More information about the Pkg-sdl-commits
mailing list