debian/0000755000000000000000000000000011412615466007174 5ustar debian/render-bench.manpages0000644000000000000000000000002611407653474013250 0ustar debian/render_bench.1 debian/compat0000644000000000000000000000000211404215555010366 0ustar 7 debian/patches/0000755000000000000000000000000011412464252010616 5ustar debian/patches/add_data_path.patch0000644000000000000000000000236111412374433014377 0ustar Description: Add support for DATA_PATH define The DATA_PATH define allows data files to be installed in an arbitrary directory and still be located by the executable. Author: Alexandros Frantzis Last-Update: 2010-06-29 --- a/main.c +++ b/main.c @@ -446,12 +446,12 @@ surf_win = xrender_surf_adopt(disp, win, DefaultVisual(disp, DefaultScreen(disp)), win_w, win_h); surf_off = xrender_surf_new(disp, win, DefaultVisual(disp, DefaultScreen(disp)), 320, 320, 0); surf_img = xrender_surf_new(disp, win, DefaultVisual(disp, DefaultScreen(disp)), 100, 100, 1); - populate_from_file(disp, surf_win, "tst_opaque.png"); - populate_from_file(disp, surf_off, "tst_opaque.png"); - populate_from_file(disp, surf_img, "tst_transparent.png"); + populate_from_file(disp, surf_win, DATA_PATH"tst_opaque.png"); + populate_from_file(disp, surf_off, DATA_PATH"tst_opaque.png"); + populate_from_file(disp, surf_img, DATA_PATH"tst_transparent.png"); - im_win = imlib_load_image("tst_opaque.png"); - im_img = imlib_load_image("tst_transparent.png"); + im_win = imlib_load_image(DATA_PATH"tst_opaque.png"); + im_img = imlib_load_image(DATA_PATH"tst_transparent.png"); printf("*** ROUND 1 ***\n"); srand(7); debian/patches/series0000644000000000000000000000004311405644033012027 0ustar makefile.patch add_data_path.patch debian/patches/makefile.patch0000644000000000000000000000217211412374176013423 0ustar Description: Modernize Makefile Use pkg-config instead of using hardcoded compilation/link flags and add install target to Makefile. Author: Alexandros Frantzis Last-Update: 2010-06-29 --- a/Makefile +++ b/Makefile @@ -1,16 +1,23 @@ SRCS = main.c -HEAD = -FLGS = -g -I/usr/X11R6/include `imlib2-config --cflags` -LIBS = -L/usr/X11R6/lib -lm -lX11 -lXext -lXrender `imlib2-config --libs` +FLGS = `pkg-config --cflags imlib2 xrender x11` +LIBS = `pkg-config --libs imlib2 xrender x11` +LDFLAGS = -Wl,--as-needed +DATA_PATH=/usr/share/render-bench/ +DEFINES = -DDATA_PATH=\"$(DATA_PATH)\" #################### OBJS = $(SRCS:.c=.o) render_bench: $(OBJS) $(RM) $@ - $(CC) -o $@ $(OBJS) $(LIBS) + $(CC) -o $@ $(LDFLAGS) $(OBJS) $(LIBS) .c.o: - $(CC) $(FLGS) -c $< -o $@ + $(CC) $(DEFINES) $(FLGS) $(CFLAGS) -c $< -o $@ clean:: rm -rf render_bench *.CKP *.ln *.BAK *.bak *.o core errs ,* *~ *.a .emacs_* tags TAGS make.log MakeOut "#"* + +install: render_bench + install -D render_bench $(DESTDIR)/usr/bin/render_bench + install -d $(DESTDIR)$(DATA_PATH) + install -m 644 *.png $(DESTDIR)$(DATA_PATH) debian/copyright0000644000000000000000000000147011412464461011126 0ustar This work was packaged for Debian by: Alexandros Frantzis on Mon, 21 Jun 2010 12:13:15 +0300 It was downloaded from: http://www.rasterman.com/files/render_bench.tar.gz Upstream Author(s): Carsten Haitzler Copyright: The work is in the public domain. License: This is explicitly placed in the public domain. Do whatever you want with it, however you want. It doesn't matter. This copy is now yours to do with as you please. No responsibility is accepted for it's use in any way or form. The Debian packaging is: Copyright 2010, Linaro and is licensed under the GPL version 3. On Debian systems, the complete text of the GNU General Public License version 3 can be found in "/usr/share/common-licenses/GPL-3". debian/source/0000755000000000000000000000000011412464256010473 5ustar debian/source/format0000644000000000000000000000001411404215555011676 0ustar 3.0 (quilt) debian/rules0000755000000000000000000000006211407626634010255 0ustar #!/usr/bin/make -f # -*- makefile -*- %: dh $@ debian/control0000644000000000000000000000133211412464330010566 0ustar Source: render-bench Section: misc Priority: optional Maintainer: Linaro User Platforms XSBC-Original-Maintainer: Alexandros Frantzis Build-Depends: debhelper (>= 7.0.50~), pkg-config, libimlib2-dev, libx11-dev, libxext-dev, libxrender-dev Standards-Version: 3.8.4 Package: render-bench Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends} Description: Benchmark for the XRender extension A program that performs a series of tests to benchmark the XRender X11 extension. It also performs the same tests using the Imlib2 library to provide a base for comparing performance. debian/changelog0000644000000000000000000000076611412615441011050 0ustar render-bench (0~20100619-0ubuntu1) maverick; urgency=low * Initial release to linaro/maverick (LP: #597336) - see: https://blueprints.launchpad.net/ubuntu/+spec/arm-m-ui-and-test-heads * debian/patches/*.patch: Improve DEP-3 comments. * debian/patches/*.patch: Add DEP-3 compliant comments to patches. * debian/control: - Update package description. - Change package priority to optional. -- Alexandros Frantzis Tue, 29 Jun 2010 16:08:46 +0300 debian/render_bench.10000644000000000000000000000102511407652307011671 0ustar .TH RENDER_BENCH 1 "June 2010" .SH NAME render_bench \- benchmark the XRender extension .SH SYNOPSIS .B render_bench .SH DESCRIPTION \fBrender_bench\fP is a program that performs a series of tests to benchmark the XRender X11 extension. It also runs the same tests using the Imlib2 library to provide a base for comparing performance. .SH AUTHOR render_bench was written by Carsten Haitzler .PP This manual page was written by Alexandros Frantzis , for the Debian project (and may be used by others).