source: libcaca/trunk/debian/rules @ 366

Last change on this file since 366 was 366, checked in by Sam Hocevar, 17 years ago
  • BUGS TODO: + Removed BUGS, updated TODO.
  • debian/*: + Depend on libx11-dev instead of xlibs-dev. + New Debian upload.
  • Property svn:executable set to *
File size: 3.1 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 \
16             --enable-imlib2 --enable-doc
17
18configure: configure-stamp
19configure-stamp:
20        dh_testdir
21        ./configure $(confflags) --prefix=/usr
22        touch configure-stamp
23
24build: configure-stamp build-stamp
25build-stamp:
26        dh_testdir
27        $(MAKE)
28        touch build-stamp
29
30clean:
31        dh_testdir
32        dh_testroot
33        rm -f build-stamp configure-stamp
34        -$(MAKE) distclean
35        dh_clean
36
37install: build
38        dh_testdir
39        dh_testroot
40        dh_clean -k
41        dh_installdirs -plibcaca-dev
42        dh_installdirs usr/bin usr/share/doc/caca-utils usr/share/man/man1 -pcaca-utils
43
44        $(MAKE) install DESTDIR=`pwd`/debian/libcaca-dev/
45
46        mv debian/libcaca-dev/usr/bin/cacaball debian/caca-utils/usr/bin
47        mv debian/libcaca-dev/usr/bin/cacademo debian/caca-utils/usr/bin
48        mv debian/libcaca-dev/usr/bin/cacaview debian/caca-utils/usr/bin
49        mv debian/libcaca-dev/usr/bin/cacafire debian/caca-utils/usr/bin
50        mv debian/libcaca-dev/usr/bin/cacamoir debian/caca-utils/usr/bin
51        mv debian/libcaca-dev/usr/bin/cacaplas debian/caca-utils/usr/bin
52
53        mv debian/libcaca-dev/usr/share/libcaca debian/caca-utils/usr/share
54        mv debian/libcaca-dev/usr/share/man/man1/cacaball.1 \
55           debian/caca-utils/usr/share/man/man1/
56        mv debian/libcaca-dev/usr/share/man/man1/cacademo.1 \
57           debian/caca-utils/usr/share/man/man1/
58        mv debian/libcaca-dev/usr/share/man/man1/cacafire.1 \
59           debian/caca-utils/usr/share/man/man1/
60        mv debian/libcaca-dev/usr/share/man/man1/cacamoir.1 \
61           debian/caca-utils/usr/share/man/man1/
62        mv debian/libcaca-dev/usr/share/man/man1/cacaplas.1 \
63           debian/caca-utils/usr/share/man/man1/
64        mv debian/libcaca-dev/usr/share/man/man1/cacaview.1 \
65           debian/caca-utils/usr/share/man/man1/
66
67        cp debian/libcaca-dev/usr/share/doc/libcaca-dev/README \
68           debian/libcaca-dev/usr/share/doc/libcaca-dev/TODO \
69           debian/libcaca-dev/usr/share/doc/libcaca-dev/AUTHORS \
70           debian/libcaca-dev/usr/share/doc/libcaca-dev/NEWS \
71           debian/libcaca-dev/usr/share/doc/libcaca-dev/NOTES \
72           debian/caca-utils/usr/share/doc/caca-utils/
73
74# Build architecture-independent files here.
75binary-indep: build install
76# We have nothing to do by default.
77
78# Build architecture-dependent files here.
79binary-arch: build install
80#       dh_testversion
81        dh_testdir
82        dh_testroot
83#       dh_installdebconf       
84        dh_installdocs
85#       dh_installexamples
86        dh_installmenu
87#       dh_installemacsen
88#       dh_installpam
89#       dh_installinit
90        dh_installcron
91#       dh_installmanpages
92        dh_installinfo
93        dh_installmime
94#       dh_undocumented
95        dh_installchangelogs ChangeLog
96        dh_link
97        dh_strip
98        dh_compress
99        dh_fixperms
100#       dh_makeshlibs
101        dh_installdeb
102#       dh_perl
103        dh_shlibdeps
104        dh_gencontrol
105        dh_md5sums
106        dh_builddeb
107
108binary: binary-indep binary-arch
109.PHONY: build clean binary-indep binary-arch binary install configure
Note: See TracBrowser for help on using the repository browser.