source: libcaca/trunk/debian/rules @ 541

Last change on this file since 541 was 526, checked in by Sam Hocevar, 15 years ago
  • Removed cacademo from examples, manpages and distributions. It's useless.
  • Property svn:executable set to *
File size: 3.2 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        dh_installdirs usr/lib -plibcucul0
44        dh_installdirs usr/lib -plibcaca0
45
46        $(MAKE) install DESTDIR=`pwd`/debian/libcaca-dev/
47
48        mv debian/libcaca-dev/usr/lib/libcucul*.so.* debian/libcucul0/usr/lib
49
50        mv debian/libcaca-dev/usr/lib/libcaca*.so.* debian/libcaca0/usr/lib
51
52        mv debian/libcaca-dev/usr/bin/cacaball debian/caca-utils/usr/bin
53        mv debian/libcaca-dev/usr/bin/cacaview debian/caca-utils/usr/bin
54        mv debian/libcaca-dev/usr/bin/cacafire debian/caca-utils/usr/bin
55        mv debian/libcaca-dev/usr/bin/cacamoir debian/caca-utils/usr/bin
56        mv debian/libcaca-dev/usr/bin/cacaplas debian/caca-utils/usr/bin
57
58        mv debian/libcaca-dev/usr/share/libcaca debian/caca-utils/usr/share
59        mv debian/libcaca-dev/usr/share/man/man1/cacaball.1 \
60           debian/caca-utils/usr/share/man/man1/
61        mv debian/libcaca-dev/usr/share/man/man1/cacafire.1 \
62           debian/caca-utils/usr/share/man/man1/
63        mv debian/libcaca-dev/usr/share/man/man1/cacamoir.1 \
64           debian/caca-utils/usr/share/man/man1/
65        mv debian/libcaca-dev/usr/share/man/man1/cacaplas.1 \
66           debian/caca-utils/usr/share/man/man1/
67        mv debian/libcaca-dev/usr/share/man/man1/cacaview.1 \
68           debian/caca-utils/usr/share/man/man1/
69
70        cp debian/libcaca-dev/usr/share/doc/libcaca-dev/README \
71           debian/libcaca-dev/usr/share/doc/libcaca-dev/TODO \
72           debian/libcaca-dev/usr/share/doc/libcaca-dev/AUTHORS \
73           debian/libcaca-dev/usr/share/doc/libcaca-dev/NEWS \
74           debian/libcaca-dev/usr/share/doc/libcaca-dev/NOTES \
75           debian/caca-utils/usr/share/doc/caca-utils/
76
77# Build architecture-independent files here.
78binary-indep: build install
79# We have nothing to do by default.
80
81# Build architecture-dependent files here.
82binary-arch: build install
83#       dh_testversion
84        dh_testdir
85        dh_testroot
86#       dh_installdebconf       
87        dh_installdocs
88#       dh_installexamples
89        dh_installmenu
90#       dh_installemacsen
91#       dh_installpam
92#       dh_installinit
93        dh_installcron
94#       dh_installmanpages
95        dh_installinfo
96        dh_installmime
97#       dh_undocumented
98        dh_installchangelogs ChangeLog
99        dh_link
100        dh_strip
101        dh_compress
102        dh_fixperms
103        dh_makeshlibs
104        dh_installdeb
105#       dh_perl
106        dh_shlibdeps
107        dh_gencontrol
108        dh_md5sums
109        dh_builddeb
110
111binary: binary-indep binary-arch
112.PHONY: build clean binary-indep binary-arch binary install configure
Note: See TracBrowser for help on using the repository browser.