~ubuntu-branches/ubuntu/gutsy/edbrowse/gutsy

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Kapil Hari Paranjape
  • Date: 2006-10-20 10:47:30 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20061020104730-o7vxbrypwaz932dt
Tags: 3.1.2-1
* New upstream version (3.1.2). Closes: #306486.
  - programs now written in C
  - support for javascript.
* debian/control:
  - added Kapil Hari Paranjape to Uploaders.
  - Build-depends on "libssl-dev", "libmozjs-dev", "libpcre3-dev".
  - Standards-Version to 3.7.2. No changes required.
* debian/rules:
  - add "noopt" feature.
  - set CFLAGS and LIBS.
  - Put $(MAKE) into the build rules.
* debian/copyright: Edited to add the current copyright which
  is GPL with the exception for linking with OpenSSL.
* debian/docs: added "README".
* debian/examples: added "jsrt".

Show diffs side-by-side

added added

removed removed

Lines of Context:
8
8
# This is the debhelper compatibility version to use.
9
9
export DH_COMPAT=4
10
10
 
11
 
 
12
 
 
13
 
build: ;
 
11
CFLAGS = -g
 
12
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
 
13
 CFLAGS += -O0
 
14
else
 
15
 CFLAGS += -O2
 
16
endif
 
17
 
 
18
# Correct upstream's variables for Debian names
 
19
CFLAGS += -I/usr/include/mozjs -DXP_UNIX
 
20
LIBS = -lpcre -lssl -lmozjs
 
21
 
 
22
 
 
23
build: build-stamp
 
24
build-stamp:
 
25
        dh_testdir
 
26
        $(MAKE) CFLAGS="$(CFLAGS)" LIBS="$(LIBS)"
14
27
 
15
28
clean:
16
29
        dh_testdir
17
30
        dh_testroot
 
31
        rm -f build-stamp
 
32
        rm -f *.o edbrowse
18
33
        dh_clean
19
34
 
20
35
install: build
24
39
        dh_installdirs
25
40
 
26
41
        dh_install
27
 
        chmod +x debian/edbrowse/usr/bin/edbrowse
 
42
        #chmod +x debian/edbrowse/usr/bin/edbrowse
28
43
 
29
44
# Build architecture-independent files here.
30
45
binary-indep: build install
31
46
# We have nothing to do by default.
 
47
 
 
48
# Build architecture-dependent files here.
 
49
binary-arch: build install
32
50
        dh_testdir
33
51
        dh_testroot
34
52
        dh_installdocs
36
54
#       dh_installman
37
55
        dh_installchangelogs 
38
56
        dh_link
 
57
        dh_strip
39
58
        dh_fixperms
40
59
        dh_compress
41
60
        dh_installdeb
 
61
        dh_shlibdeps
42
62
        dh_gencontrol
43
63
        dh_md5sums
44
64
        dh_builddeb
45
65
 
46
 
# Build architecture-dependent files here.
47
 
binary-arch: build install
48
 
 
49
66
binary: binary-indep binary-arch
50
67
.PHONY: build clean binary-indep binary-arch binary install