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
|
#!/usr/bin/make -f
# Copyright 2003 Goedson Teixeira Paixao <goedson@debian.org>
#
# 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, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
# 02111-1307 USA.
include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/autotools.mk
include /usr/share/cdbs/1/class/gnome.mk
makebuilddir::
[ -f $(CURDIR)/configure.backup ] || cp $(CURDIR)/configure $(CURDIR)/configure.backup
sed -i -r 's/(hardcode_into_libs)=.*$$/\1=no/;s/(hardcode_libdir_flag_spec)=.*--rpath.*$$//' $(CURDIR)/configure
clean::
-rm po/*.gmo
[ ! -f $(CURDIR)/configure.backup ] || mv $(CURDIR)/configure.backup $(CURDIR)/configure
install/gpaint::
# Rename executable
mv $(CURDIR)/debian/gpaint/usr/bin/gpaint-2 $(CURDIR)/debian/gpaint/usr/bin/gpaint
# Install GNOME menu item
mkdir -p debian/gpaint/usr/share/applications
install -o root -g root -m 644 gpaint.desktop debian/gpaint/usr/share/applications/gpaint.desktop
mkdir -p debian/gpaint/usr/share/pixmaps
install -o root -g root -m 644 debian/gpaint.xpm debian/gpaint/usr/share/pixmaps/gpaint.xpm
mkdir -p debian/gpaint/usr/share/icons/hicolor/scalable/apps/
install -o root -g root -m 644 debian/gpaint.svg debian/gpaint/usr/share/icons/hicolor/scalable/apps/gpaint.svg
# Install manpage
mkdir -p debian/gpaint/usr/share/man/man1/
install -o root -g root -m 644 debian/gpaint.1 debian/gpaint/usr/share/man/man1/
|