~ubuntu-branches/ubuntu/vivid/winefish/vivid

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Leidert (dale), Daniel Leidert
  • Date: 2006-04-14 14:41:11 UTC
  • Revision ID: james.westby@ubuntu.com-20060414144111-b3wu2kl5ow723c8i
Tags: 1.3.3-0dl1
* New upstream release 1.3.3.

[ Daniel Leidert ]
* debian/README.Debian: Updated information.
* debian/control: Fixed build-dependencies. Removed autoconf and automake.
  Added dpatch.. Fixed runtime dependencies.
* debian/copyright: Updated and fixed.
* debian/rules: Removed automake/autoconf calls. Added dpatch stuff.
* debian/winefish.docs: Removed obsolete and non-important information.
  Instead added up-to-date winefish.html file.
* debian/winefish.manpages: Removed. manpage gets installed by default.
* debian/winefish.1: Ditto.
* debian/winefish.1.xml: Dito.
* debian/winefish.install: Just a cosmetic change.
* reportbug/presubj: Added to show bug-reporters the package state.
* debian/patches/00list: Added.
* debian/patches/01_fix_manpage_issues.dpatch: Added. Content and style
  fixes for the manpage.

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
include /usr/share/dpatch/dpatch.make
 
9
 
 
10
PACKAGE=winefish
 
11
 
 
12
CFLAGS= -Wall -g
 
13
 
 
14
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
 
15
  CFLAGS += -O0
 
16
else
 
17
  CFLAGS += -O2
 
18
endif
 
19
 
 
20
config.status: configure
 
21
        dh_testdir
 
22
        # Add here commands to configure the package.
 
23
        CFLAGS="$(CFLAGS)" ./configure \
 
24
                --prefix=/usr \
 
25
                --mandir=\$${prefix}/share/man \
 
26
                --with-icon-path=\$${prefix}/share/pixmaps \
 
27
                --with-freedesktop_org-menu=\$${prefix}/share/applications \
 
28
                --with-freedesktop_org-mime=\$${prefix}/share/mime \
 
29
                --without-gnome2_4-mime \
 
30
                --without-gnome2_4-appreg \
 
31
                --disable-rpath \
 
32
                --disable-update-databases
 
33
 
 
34
build: build-stamp
 
35
 
 
36
build-stamp: patch-stamp config.status
 
37
        dh_testdir
 
38
        # Add here commands to compile the package.
 
39
        $(MAKE)
 
40
 
 
41
        touch build-stamp
 
42
 
 
43
clean: unpatch
 
44
        dh_testdir
 
45
        dh_testroot
 
46
        -rm -f build-stamp patch-stamp
 
47
        
 
48
        # Add here commands to clean up after the build process.
 
49
        -$(MAKE) distclean
 
50
        
 
51
        -test -r /usr/share/misc/config.sub && \
 
52
                cp -f /usr/share/misc/config.sub config.sub
 
53
        -test -r /usr/share/misc/config.guess && \
 
54
                cp -f /usr/share/misc/config.guess config.guess
 
55
        -test -r /usr/share/gettext/config.rpath && \
 
56
                cp -f /usr/share/gettext/config.rpath config.rpath
 
57
        
 
58
        dh_clean
 
59
 
 
60
install: build
 
61
        dh_testdir
 
62
        dh_testroot
 
63
        dh_clean -k
 
64
        dh_installdirs
 
65
 
 
66
        # Add here commands to install the package into debian/winefish.
 
67
        $(MAKE) install DESTDIR=$(CURDIR)/debian/$(PACKAGE)
 
68
        mv $(CURDIR)/debian/$(PACKAGE)/usr/share/pixmaps/gnome-application-winefish-project.png \
 
69
                $(CURDIR)/debian/$(PACKAGE)/usr/share/icons/hicolor/48x48/mimetypes/gnome-mime-application-winefish-project.png
 
70
 
 
71
 
 
72
# Build architecture-independent files here.
 
73
binary-indep: build install
 
74
# We have nothing to do by default.
 
75
 
 
76
# Build architecture-dependent files here.
 
77
binary-arch: build install
 
78
        dh_testdir
 
79
        dh_testroot
 
80
        dh_install
 
81
        dh_installdocs
 
82
        dh_installmenu
 
83
        dh_installchangelogs CHANGES
 
84
        dh_link
 
85
        dh_strip
 
86
        dh_compress
 
87
        dh_fixperms
 
88
        dh_installdeb
 
89
        dh_shlibdeps
 
90
        dh_gencontrol
 
91
        dh_md5sums
 
92
        dh_builddeb
 
93
 
 
94
binary: binary-indep binary-arch
 
95
.PHONY: build clean binary-indep binary-arch binary install