~ubuntu-branches/ubuntu/oneiric/ocaml-vorbis/oneiric

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Romain Beauxis
  • Date: 2009-10-14 17:07:30 UTC
  • mfrom: (1.1.10 upstream) (2.1.5 sid)
  • Revision ID: james.westby@ubuntu.com-20091014170730-ip0cqnl0eyat91oy
Tags: 0.5.1-1
* New upstream release.
* Bumped standards version to 3.8.3
* Changed section to ocaml
* Use new automatic dependency system.
* Enabled debugging.
* Fixed Vcs-* fields. 
* Switch to ocaml.mk
* Versioned license in debian/copyright

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
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
 
include /usr/share/ocaml/ocamlvars.mk
9
 
include /usr/share/ocaml/ocamlinit.mk
10
 
 
 
2
 
 
3
include /usr/share/cdbs/1/rules/debhelper.mk
 
4
include /usr/share/cdbs/1/class/autotools.mk
 
5
include /usr/share/cdbs/1/rules/ocaml.mk
 
6
 
 
7
# In order to regenerate 'debian/control' :
 
8
#   DEB_AUTO_UPDATE_DEBIAN_CONTROL=yes fakeroot debian/rules clean
 
9
# Then check manually if everything's ok
 
10
 
 
11
DEB_CONFIGURE_EXTRA_FLAGS := --enable-debugging
11
12
DESTDIR = $(CURDIR)/debian/tmp/$(OCAML_STDLIB_DIR)
12
 
CFLAGS = -Wall -g -fPIC
13
 
 
14
 
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
15
 
        CFLAGS += -O0
16
 
else
17
 
        CFLAGS += -O2
18
 
endif
19
 
ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
20
 
        INSTALL_PROGRAM += -s
21
 
endif
22
 
 
23
 
config.status: configure
24
 
        dh_testdir
25
 
        ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info
26
 
 
27
 
build: ocamlinit build-stamp
28
 
build-stamp: config.status
29
 
        dh_testdir
30
 
 
31
 
        $(MAKE)
32
 
 
33
 
        touch build-stamp
34
 
 
35
 
clean: ocamlinit-clean
36
 
        dh_testdir
37
 
        dh_testroot
38
 
        rm -f build-stamp
39
 
 
40
 
        [ ! -f Makefile ] || $(MAKE) distclean
41
 
        rm -f config.log config.status
42
 
 
43
 
        dh_clean
44
 
 
45
 
install: build
46
 
        dh_testdir
47
 
        dh_testroot
48
 
        dh_prep
49
 
        dh_installdirs
50
 
 
 
13
DEB_MAKE_INSTALL_TARGET := install OCAMLFIND_DESTDIR=$(DESTDIR) OCAMLFIND_LDCONF=ignore
 
14
 
 
15
build/libvorbis-ocaml-dev::
51
16
        mkdir -p $(DESTDIR)
52
 
        $(MAKE) install OCAMLFIND_DESTDIR=$(DESTDIR) OCAMLFIND_LDCONF=ignore
53
 
        $(MAKE) doc
54
 
 
55
 
binary-arch: build install
56
 
        dh_testdir
57
 
        dh_testroot
58
 
        dh_installchangelogs CHANGES
59
 
        dh_installdocs
60
 
        dh_installexamples
61
 
        dh_install --list-missing
62
 
        dh_link
63
 
        dh_strip
64
 
        dh_compress
65
 
        dh_fixperms
66
 
        dh_makeshlibs
67
 
        dh_installdeb
68
 
        dh_shlibdeps
69
 
        dh_gencontrol -- -VF:OCamlABI="$(OCAML_ABI)"
70
 
        dh_md5sums
71
 
        dh_builddeb
72
 
 
73
 
binary-indep:
74
 
 
75
 
binary: binary-arch
76
 
.PHONY: build clean binary-indep binary-arch binary install ocamlinit
 
17
        make doc
 
18
 
 
19
clean::
 
20
        rm -rf src/Makefile src/META doc config.log config.status