source: libcaca/trunk/debian/rules @ 310

Last change on this file since 310 was 310, checked in by Sam Hocevar, 17 years ago
  • configure.ac NEWS: + Prepared the 0.6 release.
  • libcaca.spec: + Split the RPM into libcaca-devel and caca-utils. + More detailed descriptions. + Packages are now rpmlint clean.
  • doc/Makefile.am: + Symlink cacafire.1 to cacademo.1 upon manpage installation.
  • Property svn:executable set to *
File size: 2.9 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        mv debian/libcaca-dev/usr/share/man/man1/cacafire.1 \
54           debian/caca-utils/usr/share/man/man1/
55        mv debian/libcaca-dev/usr/share/man/man1/cacaview.1 \
56           debian/caca-utils/usr/share/man/man1/
57        mv debian/libcaca-dev/usr/share/man/man1/caca-spritedit.1 \
58           debian/caca-utils/usr/share/man/man1/
59
60        cp debian/libcaca-dev/usr/share/doc/libcaca-dev/README \
61           debian/libcaca-dev/usr/share/doc/libcaca-dev/BUGS \
62           debian/libcaca-dev/usr/share/doc/libcaca-dev/TODO \
63           debian/libcaca-dev/usr/share/doc/libcaca-dev/AUTHORS \
64           debian/libcaca-dev/usr/share/doc/libcaca-dev/NEWS \
65           debian/libcaca-dev/usr/share/doc/libcaca-dev/NOTES \
66           debian/caca-utils/usr/share/doc/caca-utils/
67
68# Build architecture-independent files here.
69binary-indep: build install
70# We have nothing to do by default.
71
72# Build architecture-dependent files here.
73binary-arch: build install
74#       dh_testversion
75        dh_testdir
76        dh_testroot
77#       dh_installdebconf       
78        dh_installdocs
79#       dh_installexamples
80        dh_installmenu
81#       dh_installemacsen
82#       dh_installpam
83#       dh_installinit
84        dh_installcron
85#       dh_installmanpages
86        dh_installinfo
87        dh_installmime
88#       dh_undocumented
89        dh_installchangelogs ChangeLog
90        dh_link
91        dh_strip
92        dh_compress
93        dh_fixperms
94#       dh_makeshlibs
95        dh_installdeb
96#       dh_perl
97        dh_shlibdeps
98        dh_gencontrol
99        dh_md5sums
100        dh_builddeb
101
102binary: binary-indep binary-arch
103.PHONY: build clean binary-indep binary-arch binary install configure
Note: See TracBrowser for help on using the repository browser.