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 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105
|
#!/usr/bin/make -f
# Based on sample debian/rules file - for GNU Hello (1.3).
# Copyright 1994,1995 by Ian Jackson.
# Copyright 1999 James Troup
# Copyright 2000 Gopal Narayanan
# I hereby give you perpetual unlimited permission to copy,
# modify and relicense this file, provided that you do not remove
# my name from the file itself. (I assert my moral right of
# paternity under the Copyright, Designs and Patents Act 1988.)
# This file may have to be extensively modified
# Modified July 2000 to use debhelper
include /usr/share/quilt/quilt.make
INSTALL =/usr/bin/install
GZIP =/bin/gzip
INSTALL_DATA =$(INSTALL) -m 644 -o root -g root
GZIP_DATA =$(GZIP) -9
TOPDIR = "`pwd`/debian"
XPLANETDIR = $(TOPDIR)/xplanet
XPLANETIMAGESDIR = $(TOPDIR)/xplanet-images
CONFDIRS = satellites config markers origin stars
CONFFILES = satellites/iss satellites/iss.tle config/default config/earth_markers config/moon_orbit config/overlay_clouds markers/earth origin/cassini origin/galileo rgb.txt
build build-arch build-indep: build-stamp
build-stamp: $(QUILT_STAMPFN)
dh_testdir
./configure --prefix=/usr --with-map-extension=jpg \
--with-x --with-gif --with-jpeg --with-png \
--with-pnm --with-tiff --with-freetype --with-xscreensaver \
--without-cspice --with-pango
#--with-magick
# $(MAKE) CPPFLAGS="-O3 -Wall -I`pwd`"
$(MAKE) CPPFLAGS="-O3 -Wall"
touch build-stamp
clean: unpatch
dh_testdir
-rm -f build-stamp install-stamp
# -$(MAKE) distclean
[ ! -f Makefile ] || $(MAKE) distclean
dh_clean
install: install-stamp
install-stamp: build-stamp
dh_testdir
dh_testroot
dh_clean -k
dh_installdirs
$(MAKE) prefix=$(XPLANETDIR)/usr/ mandir=$(XPLANETDIR)/usr/share/man \
install
for i in $(CONFDIRS); do \
mkdir $(XPLANETDIR)/etc/xplanet/$$i; \
done
for i in $(CONFFILES); do \
mv $(XPLANETDIR)/usr/share/xplanet/$$i $(XPLANETDIR)/etc/xplanet/$$i; \
dh_link -pxplanet /etc/xplanet/$$i /usr/share/xplanet/$$i; \
done
dh_link -pxplanet /usr/share/xplanet/config/README /usr/share/doc/xplanet/README.config
touch install-stamp
binary-indep: build install
dh_testdir -i
dh_testroot -i
dh_installdocs -i
dh_install -i --sourcedir=debian/xplanet
-rm debian/xplanet-images/usr/share/xplanet/images/README
dh_link -i /usr/share/doc/xplanet-images/README /usr/share/xplanet/images/README
dh_installchangelogs -i
dh_strip -i
dh_compress -i
dh_fixperms -i
dh_installdeb -i
dh_shlibdeps -i
dh_gencontrol -i
dh_md5sums -i
dh_builddeb -i
binary-arch: build install
dh_testdir -a
dh_testroot -a
dh_installdocs -a
dh_installmenu -a
dh_installman -a
#be sure to delete image file dir contents in case of
#separate build without xplanet-images
-rm debian/xplanet/usr/share/xplanet/images/*
#delete empty images/ dir
-rmdir debian/xplanet/usr/share/xplanet/images
dh_installchangelogs -a ChangeLog
dh_link -a
dh_strip -a
dh_compress -a
dh_fixperms -a
dh_installdeb -a
dh_shlibdeps -a
dh_gencontrol -a
dh_md5sums -a
dh_builddeb -a
binary: binary-indep binary-arch
.PHONY: build clean binary binary-arch binary-indep install
|