summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--GNUmakefile31
-rw-r--r--debian/b2r2lib-dev.dirs1
-rw-r--r--debian/b2r2lib-dev.install2
-rw-r--r--debian/b2r2lib.dirs1
-rw-r--r--debian/b2r2lib.install1
-rw-r--r--debian/changelog5
-rw-r--r--debian/compat1
-rw-r--r--debian/control21
-rw-r--r--debian/copyright9
-rwxr-xr-xdebian/rules14
-rw-r--r--debian/source/format1
11 files changed, 87 insertions, 0 deletions
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 <root@unknown> 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: <http://www.igloocommunity.org>
+
+Files: *
+Copyright: <years> <put author's name and email here>
+ <years> <likewise for another author>
+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)