From 604a2f1be71151d320d280898ddc138e73a2905a Mon Sep 17 00:00:00 2001 From: John Fredriksson Date: Mon, 26 Sep 2011 17:25:36 +0200 Subject: Add debian packaging files Add debian directory which describes how to build debian packages. Add GNUmakefile to override default Makefile which cannot be used outside of the multimedia build system. --- GNUmakefile | 31 +++++++++++++++++++++++++++++++ debian/b2r2lib-dev.dirs | 1 + debian/b2r2lib-dev.install | 2 ++ debian/b2r2lib.dirs | 1 + debian/b2r2lib.install | 1 + debian/changelog | 5 +++++ debian/compat | 1 + debian/control | 21 +++++++++++++++++++++ debian/copyright | 9 +++++++++ debian/rules | 14 ++++++++++++++ debian/source/format | 1 + 11 files changed, 87 insertions(+) create mode 100644 GNUmakefile create mode 100644 debian/b2r2lib-dev.dirs create mode 100644 debian/b2r2lib-dev.install create mode 100644 debian/b2r2lib.dirs create mode 100644 debian/b2r2lib.install create mode 100644 debian/changelog create mode 100644 debian/compat create mode 100644 debian/control create mode 100644 debian/copyright create mode 100755 debian/rules create mode 100644 debian/source/format diff --git a/GNUmakefile b/GNUmakefile new file mode 100644 index 0000000..dd3a8b5 --- /dev/null +++ b/GNUmakefile @@ -0,0 +1,31 @@ +.PHONY: clean build libblt_hw.so +IDIR =./include +CC=gcc +CFLAGS=-I$(IDIR) -I$(KDIR) + +SDIR=./src + +LIBS=-lpthread + +default: build + +blt_b2r2.o: $(SDIR)/blt_b2r2.c + gcc -fPIC -g -c -o $@ $^ $(CFLAGS) + +libblt_hw.so: blt_b2r2.o + gcc -shared -Wl,-soname,libblt_hw.so.1 -o libblt_hw.so.1.0 $^ $(LIBS) + +build: libblt_hw.so + +install: + mkdir -p $(DESTDIR)/usr/lib + find . -name "*.so*" + cp *.so* $(DESTDIR)/usr/lib/ + ln -s $(DESTDIR)/usr/lib/libblt_hw.so.1.0 $(DESTDIR)/usr/lib/libblt_hw.so.1 + ln -s $(DESTDIR)/usr/lib/libblt_hw.so.1 $(DESTDIR)/usr/lib/libblt_hw.so + + mkdir -p $(DESTDIR)/usr/include + cp $(IDIR)/*.h $(DESTDIR)/usr/include +clean: + rm -f *.o *.so.* + diff --git a/debian/b2r2lib-dev.dirs b/debian/b2r2lib-dev.dirs new file mode 100644 index 0000000..e43b95c --- /dev/null +++ b/debian/b2r2lib-dev.dirs @@ -0,0 +1 @@ +usr/include diff --git a/debian/b2r2lib-dev.install b/debian/b2r2lib-dev.install new file mode 100644 index 0000000..b341905 --- /dev/null +++ b/debian/b2r2lib-dev.install @@ -0,0 +1,2 @@ +usr/include/* +usr/lib/lib*.so diff --git a/debian/b2r2lib.dirs b/debian/b2r2lib.dirs new file mode 100644 index 0000000..6845771 --- /dev/null +++ b/debian/b2r2lib.dirs @@ -0,0 +1 @@ +usr/lib diff --git a/debian/b2r2lib.install b/debian/b2r2lib.install new file mode 100644 index 0000000..d0dbfd1 --- /dev/null +++ b/debian/b2r2lib.install @@ -0,0 +1 @@ +usr/lib/lib*.so.* diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..5be3711 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +b2r2lib (1.0-1) unstable; urgency=low + + * Initial release. + + -- root Fri, 27 May 2011 08:38:24 +0000 diff --git a/debian/compat b/debian/compat new file mode 100644 index 0000000..7f8f011 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +7 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..02b79e8 --- /dev/null +++ b/debian/control @@ -0,0 +1,21 @@ +Source: b2r2lib +Priority: extra +Maintainer: packages@igloocommunity.org +Build-Depends: debhelper (>= 7.0.50~) +Standards-Version: 3.9.1 +Section: libs +Homepage: http://www.igloocommunity.org + +Package: b2r2lib-dev +Section: libdevel +Architecture: any +Depends: b2r2lib (= ${binary:Version}) +Description: Development package to b2r2lib. + +Package: b2r2lib +Section: libs +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Hardware blit library for 2D graphics acceleration. + B2R2 is a hardware block which blits, blends, rotates and resizes graphics buffers with various pixel formats. + Simple library with a 1:1 mapping to the kernel b2r2 api. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..71f8e6a --- /dev/null +++ b/debian/copyright @@ -0,0 +1,9 @@ +Format: http://dep.debian.net/deps/dep5 +Upstream-Name: b2r2lib +Source: + +Files: * +Copyright: + +License: BSD + . diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..81a2c11 --- /dev/null +++ b/debian/rules @@ -0,0 +1,14 @@ +#!/usr/bin/make -f +# -*- makefile -*- +# Sample debian/rules that uses debhelper. +# This file was originally written by Joey Hess and Craig Small. +# As a special exception, when this file is copied by dh-make into a +# dh-make output file, you may use that output file without restriction. +# 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 KDIR=/usr/src/linux-headers-$(shell uname -r)/include + +%: + dh $@ diff --git a/debian/source/format b/debian/source/format new file mode 100644 index 0000000..163aaf8 --- /dev/null +++ b/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) -- cgit v1.2.3