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 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61
|
#!/usr/bin/make -f
# -*- mode: makefile; coding: utf-8 -*-
# Copyright © 2007 Luca Brivio <lucab83@infinito.it>
# Copyright © 2008, 2011 Jonas Smedegaard <dr@jones.dk>
# Description: Main Debian packaging script for morla
#
# 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
# Autoreconf needed only if enabling patches currently broken
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://www.morlardf.net/src/
DEB_UPSTREAM_TARBALL_MD5 = 944fc4f999b145c74f91f20a5548bb76
# Needed by upstream build process
# GtkHTML and JavaScript support needs enabling + improving patches
CDBS_BUILD_DEPENDS += , libglib2.0-dev, libgtk2.0-dev, gettext
#CDBS_BUILD_DEPENDS += , libgtkhtml3.14-dev, libmozjs-dev
CDBS_BUILD_DEPENDS += , libxslt1-dev, libnxml0-dev, libcurl4-gnutls-dev, librasqal3-dev, librdf0-dev
CDBS_BUILD_DEPENDS += , graphviz, pkg-config
# Needed by our packaging routines
CDBS_BUILD_DEPENDS += , netpbm
DEB_COPYRIGHT_CHECK_IGNORE_REGEX = ^.*\.(png)|debian/(changelog|copyright(|_hints|_newhints))$
# Avoid virtually empty NEWS and README
DEB_INSTALL_DOCS_ALL =
DEB_INSTALL_DOCS_ALL += JAVASCRIPT
DEB_INSTALL_EXAMPLES_morla = doap.rdf
# Generate pixmap file for use as menu icon
build/morla::
pngtopnm icons/32_color.png | ppmtoxpm -name morla > debian/morla.xpm
clean::
rm -f debian/morla.xpm
# ensure copyright check is done before reconfiguring autotools
debian/autoreconf.after: debian/stamp-copyright-check
# Avoid development files
install/morla::
rm -rf $(DEB_DESTDIR)/usr/include
rm -f $(DEB_DESTDIR)/usr/lib/morla/*.a $(DEB_DESTDIR)/usr/lib/morla/*.la
|