~ubuntu-branches/ubuntu/gutsy/lablgl/gutsy

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Samuel Mimram
  • Date: 2006-05-15 21:23:56 UTC
  • mfrom: (2.1.5 dapper)
  • Revision ID: james.westby@ubuntu.com-20060515212356-n5ue8ekfgxcsrm5g
Tags: 1.02-2
* Rebuild with OCaml 3.09.2.
* Updated standards version to 3.7.2, no changes needed.

Show diffs side-by-side

added added

removed removed

Lines of Context:
8
8
 
9
9
# We want to use dpatch.
10
10
include /usr/share/dpatch/dpatch.make
11
 
PACKAGE = ocaml
 
11
PACKAGE = lablgl
 
12
 
 
13
OCAMLABI = ${shell ocamlc -version}
12
14
 
13
15
# Uncomment this to turn on verbose mode. 
14
16
#export DH_VERBOSE=1
15
17
 
16
18
export OCAML_LIBDIR=`ocamlc -where`
17
19
 
18
 
# This is the debhelper compatability version to use.
19
 
export DH_COMPAT=3
 
20
#debian/control:
 
21
#        sed -e 's%#OcamlABI#%$(OCAMLABI)%' $@.in >$@
20
22
 
21
23
configure: configure-stamp
22
24
configure-stamp:
 
25
        for t in `find . -name \*.in | grep -v debian/control.in`; do \
 
26
                sed -e 's%#OcamlABI#%$(OCAMLABI)%' $$t >$${t%.in}; \
 
27
        done
 
28
 
23
29
        dh_testdir
24
30
        # Add here commands to configure the package.
25
31
        cp debian/Makefile.config .
63
69
                BINDIR=$(CURDIR)/debian/liblablgl-ocaml-dev/usr/bin
64
70
 
65
71
        cp debian/META $(CURDIR)/debian/liblablgl-ocaml-dev$(OCAML_LIBDIR)/lablgl
66
 
        install -m 644 debian/liblablgl-ocaml-dev.override \
67
 
                $(CURDIR)/debian/liblablgl-ocaml-dev/usr/share/lintian/overrides/liblablgl-ocaml-dev
68
 
 
69
72
 
70
73
        # And now move the liblablgl-ocaml files into their own package.
71
74
        dh_movefiles -pliblablgl-ocaml --sourcedir=debian/liblablgl-ocaml-dev
72
 
        install -m 644 debian/liblablgl-ocaml.override \
73
 
                $(CURDIR)/debian/liblablgl-ocaml/usr/share/lintian/overrides/liblablgl-ocaml
74
75
        ln -sf $(OCAML_LIBDIR)/lablgl $(CURDIR)/debian/liblablgl-ocaml-dev$(OCAML_LIBDIR)/lablGL
 
76
        # ocaml sets an unneeded rpath in the stublibs
 
77
        chrpath -d $(CURDIR)/debian/liblablgl-ocaml$(OCAML_LIBDIR)/stublibs/*.so
75
78
 
76
79
# Build architecture-independent files here.
77
80
# Pass -i to all debhelper commands in this target to reduce clutter.
81
84
binary-arch: build install
82
85
        dh_testdir -s
83
86
        dh_testroot -s
84
 
#       dh_installdebconf -s
85
87
        dh_installdocs -s
86
88
        dh_installexamples -s
87
89
        dh_installmenu -s
88
 
#       dh_installlogrotate -s
89
 
#       dh_installemacsen -s
90
 
#       dh_installpam -s
91
 
#       dh_installmime -s
92
 
#       dh_installinit -s
93
90
        dh_installcron -s
94
 
#       dh_installman -s
 
91
        dh_installman -s
95
92
        dh_installinfo -s
96
 
#       dh_undocumented -s
97
93
        dh_installchangelogs CHANGES -s
98
94
        dh_strip -s
99
95
        dh_link -s
102
98
        dh_fixperms -s
103
99
#       dh_makeshlibs -s
104
100
        dh_installdeb -s
105
 
#       dh_perl -s
106
101
        dh_shlibdeps -s
107
 
        dh_gencontrol -s
 
102
        dh_gencontrol -s -- -VF:OCamlABI="$(OCAMLABI)"
108
103
        dh_md5sums -s
109
104
        dh_builddeb -s
110
105