debian swirl logo

Back to the packages list morla

#!/usr/bin/make -f
# -*- mode: makefile; coding: utf-8 -*-
# Copyright © 2007 Luca Brivio 
# Copyright © 2008, 2011 Jonas Smedegaard 
# 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 .

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, libgconf2-dev
#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

Builds:

morla
gtk+ rdf editor