~ubuntu-branches/ubuntu/karmic/gtkglext/karmic

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Marcelo E. Magallon
  • Date: 2004-04-03 17:43:17 UTC
  • Revision ID: james.westby@ubuntu.com-20040403174317-8gk1ptqfk5qoxerr
Tags: 1.0.6-1
* New upstream release
* Throw away NMU 1.0.0-1.1 (thanks Sebastian, it's nevertheless
  appreciated), this problem has been fixed upstream, this would have
  been the proper fix in the first place.  My apologies for the long
  delay Teemu.  (closes: bug#226894)
* Regenerate all the automake and autoconf stuff
      libtoolize (GNU libtool) 1.5.2
      aclocal (GNU automake) 1.7.9
      automake (GNU automake) 1.7.9
      autoconf (GNU Autoconf) 2.59
* debian/control: Standards Version 3.6.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/make -f
 
2
# Sample debian/rules that uses debhelper.
 
3
# GNU copyright 1997 to 1999 by Joey Hess.
 
4
 
 
5
# Uncomment this to turn on verbose mode.
 
6
#export DH_VERBOSE=1
 
7
 
 
8
export DH_OPTIONS
 
9
 
 
10
SONAME=1
 
11
 
 
12
# These are used for cross-compiling and for saving the configure script
 
13
# from having to guess our platform (since we know it already)
 
14
DEB_HOST_GNU_TYPE   ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
 
15
DEB_BUILD_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
 
16
 
 
17
DTMPDIR=$(CURDIR)/debian/tmp
 
18
 
 
19
config.status: configure
 
20
        dh_testdir
 
21
 
 
22
        ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) \
 
23
           --prefix=/usr --mandir=\$${prefix}/share/man \
 
24
           --infodir=\$${prefix}/share/info
 
25
 
 
26
build: build-stamp
 
27
build-stamp:  config.status
 
28
        dh_testdir
 
29
 
 
30
        $(MAKE)
 
31
 
 
32
        touch build-stamp
 
33
 
 
34
clean:
 
35
        dh_testdir
 
36
        dh_testroot
 
37
        rm -f build-stamp 
 
38
 
 
39
        -$(MAKE) distclean
 
40
 
 
41
        dh_clean
 
42
 
 
43
install: build
 
44
        dh_testdir
 
45
        dh_testroot
 
46
        dh_clean -k
 
47
        rm -rf debian/libgtkglext1-dev debian/libgtkglext1-doc debian/libgtkglext1
 
48
        dh_installdirs
 
49
 
 
50
        $(MAKE) install prefix=$(DTMPDIR)/usr
 
51
#       mv $(DTMPDIR)/usr/lib/gtkglext-1.0/include/gdkglext-config.h \
 
52
#               $(DTMPDIR)/usr/include/gtkglext-1.0
 
53
#       rmdir -p --ignore-fail-on-non-empty $(DTMPDIR)/usr/lib/gtkglext-1.0/include
 
54
 
 
55
binary-indep: DH_OPTIONS=-i
 
56
binary-indep: build install
 
57
        dh_testdir
 
58
        dh_testroot
 
59
 
 
60
        dh_install
 
61
        dh_installdocs
 
62
        dh_installchangelogs
 
63
        dh_compress
 
64
        dh_installdeb
 
65
        dh_gencontrol
 
66
        dh_md5sums
 
67
        dh_builddeb     
 
68
 
 
69
 
 
70
binary-arch: DH_OPTIONS=-a
 
71
binary-arch: build install
 
72
        dh_testdir
 
73
        dh_testroot
 
74
 
 
75
        dh_install
 
76
        dh_installdocs
 
77
        dh_installmenu
 
78
        dh_installman
 
79
        dh_installchangelogs ChangeLog
 
80
        dh_link
 
81
        dh_strip
 
82
        dh_compress
 
83
        dh_fixperms
 
84
        dh_makeshlibs
 
85
        dh_installdeb
 
86
        dh_shlibdeps -L libgtkglext$(SONAME) -ldebian/libgtkglext$(SONAME)/usr/lib
 
87
        dh_gencontrol
 
88
        dh_md5sums
 
89
        dh_builddeb
 
90
 
 
91
autofoo:
 
92
        libtoolize --force --copy
 
93
        aclocal
 
94
        automake -f -c
 
95
        autoconf
 
96
        rm -f debian/autofoo.version
 
97
        for p in libtoolize aclocal automake autoconf ; do \
 
98
                $$p --version | head -1 ; \
 
99
        done > debian/autofoo.version
 
100
 
 
101
binary: binary-indep binary-arch
 
102
.PHONY: build clean binary-indep binary-arch binary install 
 
103
.PHONY: autofoo