source: libcaca/trunk/debian/rules @ 297

Last change on this file since 297 was 297, checked in by Sam Hocevar, 17 years ago
  • test/dithering.c: + Fixed a minor compilation warning.
  • debian/rules: + Explicitely use --enable-imlib2.
  • BUGS: + Added a note about blinking consoles.
  • doc/Makefile.am: + Fixed a bashism in the HTML files installation.
  • Property svn:executable set to *
File size: 2.8 KB
Line 
1#!/usr/bin/make -f
2
3#export DH_VERBOSE=1
4export DEB_HOST_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
5export DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
6
7# FOR AUTOCONF 2.52 AND NEWER ONLY
8ifeq ($(DEB_BUILD_GNU_TYPE), $(DEB_HOST_GNU_TYPE))
9  confflags += --build $(DEB_HOST_GNU_TYPE)
10else
11  confflags += --build $(DEB_BUILD_GNU_TYPE) --host $(DEB_HOST_GNU_TYPE)
12endif
13
14confflags += --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info
15confflags += --enable-ncurses --enable-slang --enable-x11 --enable-imlib2
16
17configure: configure-stamp
18configure-stamp:
19        dh_testdir
20        ./configure $(confflags) --prefix=/usr
21        touch configure-stamp
22
23build: configure-stamp build-stamp
24build-stamp:
25        dh_testdir
26        $(MAKE)
27        touch build-stamp
28
29clean:
30        dh_testdir
31        dh_testroot
32        rm -f build-stamp configure-stamp
33        -$(MAKE) distclean
34        dh_clean
35
36install: build
37        dh_testdir
38        dh_testroot
39        dh_clean -k
40        dh_installdirs -plibcaca-dev
41        dh_installdirs usr/bin usr/share/doc/caca-utils usr/share/man/man1 -pcaca-utils
42
43        DESTDIR=`pwd`/debian/libcaca-dev/ $(MAKE) install prefix=/usr
44
45        mv debian/libcaca-dev/usr/bin/cacademo debian/caca-utils/usr/bin
46        mv debian/libcaca-dev/usr/bin/cacaview debian/caca-utils/usr/bin
47        mv debian/libcaca-dev/usr/bin/cacafire debian/caca-utils/usr/bin
48        mv debian/libcaca-dev/usr/bin/caca-spritedit debian/caca-utils/usr/bin
49
50        mv debian/libcaca-dev/usr/share/libcaca debian/caca-utils/usr/share
51        mv debian/libcaca-dev/usr/share/man/man1/cacademo.1 \
52           debian/caca-utils/usr/share/man/man1
53        ln -s cacademo.1 debian/caca-utils/usr/share/man/man1/cacafire.1
54        mv debian/libcaca-dev/usr/share/man/man1/cacaview.1 \
55           debian/caca-utils/usr/share/man/man1
56        mv debian/libcaca-dev/usr/share/man/man1/caca-spritedit.1 \
57           debian/caca-utils/usr/share/man/man1
58
59        cp debian/libcaca-dev/usr/share/doc/libcaca-dev/README \
60           debian/libcaca-dev/usr/share/doc/libcaca-dev/BUGS \
61           debian/libcaca-dev/usr/share/doc/libcaca-dev/TODO \
62           debian/libcaca-dev/usr/share/doc/libcaca-dev/AUTHORS \
63           debian/libcaca-dev/usr/share/doc/libcaca-dev/NEWS \
64           debian/libcaca-dev/usr/share/doc/libcaca-dev/NOTES \
65           debian/caca-utils/usr/share/doc/caca-utils/
66
67# Build architecture-independent files here.
68binary-indep: build install
69# We have nothing to do by default.
70
71# Build architecture-dependent files here.
72binary-arch: build install
73#       dh_testversion
74        dh_testdir
75        dh_testroot
76#       dh_installdebconf       
77        dh_installdocs
78#       dh_installexamples
79        dh_installmenu
80#       dh_installemacsen
81#       dh_installpam
82#       dh_installinit
83        dh_installcron
84#       dh_installmanpages
85        dh_installinfo
86        dh_installmime
87#       dh_undocumented
88        dh_installchangelogs ChangeLog
89        dh_link
90        dh_strip
91        dh_compress
92        dh_fixperms
93#       dh_makeshlibs
94        dh_installdeb
95#       dh_perl
96        dh_shlibdeps
97        dh_gencontrol
98        dh_md5sums
99        dh_builddeb
100
101binary: binary-indep binary-arch
102.PHONY: build clean binary-indep binary-arch binary install configure
Note: See TracBrowser for help on using the repository browser.