File: rules

package info (click to toggle)
pinot 1.0-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 6,308 kB
  • sloc: cpp: 39,057; sh: 10,481; ansic: 4,174; makefile: 612; xml: 372
file content (45 lines) | stat: -rwxr-xr-x 1,891 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#!/usr/bin/make -f
# -*- mode: makefile; coding: utf-8 -*-
# Copyright © 2009, 2010, 2011, 2012 Jonas Smedegaard <dr@jones.dk>
# Description: Main Debian packaging script for Pinot
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2, or (at your option)
# any later version.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
# General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program.  If not, see <http://www.gnu.org/licenses/>.

-include /usr/share/cdbs/1/rules/upstream-tarball.mk
include /usr/share/cdbs/1/rules/autoreconf.mk
include /usr/share/cdbs/1/rules/utils.mk
include /usr/share/cdbs/1/class/autotools.mk
include /usr/share/cdbs/1/rules/debhelper.mk

DEB_UPSTREAM_URL = http://pinot-search.googlecode.com/files
DEB_UPSTREAM_TARBALL_MD5 = 1d186dff07fbe0037cc6e5540056cf77

# Limit linking to actually used libs
LDFLAGS += -Wl,--as-needed

DEB_DH_MAKESHLIBS_ARGS = -Xusr/lib/pinot

binary-fixup/pinot::
	chmod a+x $(CURDIR)/debian/$(cdbs_curpkg)/usr/share/pinot/*.sh

binary-install/pinot::
	dh_icons

# Needed by upstream build process
CDBS_BUILD_DEPENDS += , libcurl4-openssl-dev, libxapian-dev, libboost-dev
CDBS_BUILD_DEPENDS += , libexttextcat-dev, libtag1-dev, libsqlite3-dev
CDBS_BUILD_DEPENDS += , libgmime-2.6-dev | libgmime-2.4-dev, libxml++2.6-dev, libdbus-glib-1-dev
CDBS_BUILD_DEPENDS += , libsigc++-2.0-dev, libglib2.0-dev, libssl-dev
CDBS_BUILD_DEPENDS += , libglibmm-2.4-dev, libgtkmm-2.4-dev, shared-mime-info
CDBS_BUILD_DEPENDS += , desktop-file-utils, libattr1-dev, libexiv2-dev (>= 0.18~)