2000-04-02 20:45:01 -07:00
|
|
|
#!/usr/bin/make -f
|
|
|
|
# Sample debian/rules that uses debhelper.
|
|
|
|
# This file is public domain software, originally written by Joey Hess.
|
|
|
|
#
|
|
|
|
# This version is for a multibinary package. It also allows you to build any
|
|
|
|
# of the binary packages independantly, via binary-<package> targets.
|
1999-08-17 15:56:46 -07:00
|
|
|
|
2000-04-02 20:45:01 -07:00
|
|
|
# Uncomment this to turn on verbose mode.
|
|
|
|
#export DH_VERBOSE=1
|
1999-10-02 17:37:09 -07:00
|
|
|
|
2000-04-02 20:45:01 -07:00
|
|
|
# This is the debhelper compatability version to use.
|
|
|
|
export DH_COMPAT=2
|
1999-10-10 05:49:48 -07:00
|
|
|
|
2000-04-02 20:45:01 -07:00
|
|
|
# This has to be exported to make some magic below work.
|
|
|
|
export DH_OPTIONS
|
1999-10-10 05:49:48 -07:00
|
|
|
|
2000-04-02 20:45:01 -07:00
|
|
|
# Other Stuff
|
|
|
|
pwd:=$(shell pwd)
|
2004-08-13 13:11:31 -07:00
|
|
|
cfg=--prefix=/usr --enable-xrandr=yes --enable-fsstd=yes --mandir=/usr/share/man
|
2000-04-02 20:45:01 -07:00
|
|
|
INSTALL=/usr/bin/install -o root -g root
|
1999-10-10 05:49:48 -07:00
|
|
|
|
2000-04-02 20:45:01 -07:00
|
|
|
build: build-stamp
|
|
|
|
build-stamp:
|
|
|
|
|
1999-08-17 15:56:46 -07:00
|
|
|
dh_testdir
|
2000-04-02 20:45:01 -07:00
|
|
|
|
2000-05-24 10:56:48 -07:00
|
|
|
test -x autogen.sh && ./autogen.sh $(cfg) || ./configure $(cfg)
|
2000-04-02 20:45:01 -07:00
|
|
|
|
|
|
|
$(MAKE)
|
|
|
|
|
|
|
|
touch build-stamp
|
|
|
|
|
1999-08-17 15:56:46 -07:00
|
|
|
clean:
|
|
|
|
dh_testdir
|
|
|
|
dh_testroot
|
2000-04-02 20:45:01 -07:00
|
|
|
rm -f build-stamp
|
1999-10-21 10:56:12 -07:00
|
|
|
|
2000-04-02 20:45:01 -07:00
|
|
|
# Add here commands to clean up after the build process.
|
2004-08-13 13:11:31 -07:00
|
|
|
#-$(MAKE) clean
|
|
|
|
-$(MAKE) distclean
|
2000-04-02 20:45:01 -07:00
|
|
|
|
|
|
|
rm -rf build-stamp
|
|
|
|
dh_clean
|
|
|
|
|
|
|
|
install: DH_OPTIONS=
|
1999-10-17 12:37:35 -07:00
|
|
|
install: build
|
1999-10-10 05:49:48 -07:00
|
|
|
dh_testdir
|
|
|
|
dh_testroot
|
1999-11-06 06:22:30 -08:00
|
|
|
dh_clean -k
|
2000-04-02 20:45:01 -07:00
|
|
|
dh_installdirs
|
1999-10-10 11:02:27 -07:00
|
|
|
|
2000-04-02 20:45:01 -07:00
|
|
|
$(MAKE) install DESTDIR=$(pwd)/debian/enlightenment-data
|
|
|
|
|
|
|
|
# The lucida font doesn't exist on Debian boxes or something *shrug*
|
|
|
|
# Changed to "fixed" in all themes
|
|
|
|
find debian/enlightenment-data/usr/share/enlightenment/themes/ -type f \
|
|
|
|
-name '*.cfg' -exec grep -l lucida {} \; | \
|
|
|
|
xargs perl -i -pwe 's#".*?lucida.*?"#"fixed"#'
|
|
|
|
|
|
|
|
# Move files to sub-packages and remove empty directories
|
|
|
|
dh_movefiles --sourcedir=debian/enlightenment-data
|
2000-05-24 10:56:48 -07:00
|
|
|
cd debian/enlightenment-data/usr; rm -rf bin \
|
2000-04-02 20:45:01 -07:00
|
|
|
debian/enlightenment-data/usr/share/man
|
1999-10-10 05:49:48 -07:00
|
|
|
|
2000-04-02 20:45:01 -07:00
|
|
|
# Populate /usr/share/doc/enlightenment with interesting looking stuff
|
2000-05-24 10:56:48 -07:00
|
|
|
$(INSTALL) -m 644 ABOUT-NLS INSTALL README AUTHORS NEWS \
|
2000-04-02 20:45:01 -07:00
|
|
|
debian/enlightenment/usr/share/doc/enlightenment/
|
2004-08-13 13:11:31 -07:00
|
|
|
$(INSTALL) -m 644 ChangeLog \
|
2000-04-02 20:45:01 -07:00
|
|
|
debian/enlightenment/usr/share/doc/enlightenment/changelog-src
|
|
|
|
$(INSTALL) -m 755 sample-scripts/*.{pl,sh} \
|
|
|
|
debian/enlightenment/usr/share/doc/enlightenment/examples
|
|
|
|
|
|
|
|
# Add stub to menus.cfg for Debian menus
|
2004-08-13 13:11:31 -07:00
|
|
|
perl -pw debian/menumangler.pl config/menus.cfg > \
|
2000-04-02 20:45:01 -07:00
|
|
|
debian/enlightenment-data/usr/share/enlightenment/config/menus.cfg
|
2004-08-13 13:11:31 -07:00
|
|
|
|
2000-04-02 20:45:01 -07:00
|
|
|
# Something is stuffed with EBIN in the install script, so hardcode it
|
|
|
|
perl -pi -lwe 's/^EBIN=.*/EBIN=\/usr\/bin/' \
|
2004-08-13 13:11:31 -07:00
|
|
|
debian/enlightenment-data/usr/share/enlightenment/scripts/enlightenment.install
|
2000-04-02 20:45:01 -07:00
|
|
|
|
2000-05-24 10:56:48 -07:00
|
|
|
# man page
|
|
|
|
cp -v debian/e-utils.1 debian/enlightenment/usr/share/man/man1/
|
|
|
|
|
2000-04-02 20:45:01 -07:00
|
|
|
# This single target is used to build all the packages, all at once, or
|
|
|
|
# one at a time. So keep in mind: any options passed to commands here will
|
|
|
|
# affect _all_ packages. Anything you want to only affect one package
|
|
|
|
# should be put in another target, such as the install target.
|
|
|
|
binary-common:
|
1999-10-10 05:49:48 -07:00
|
|
|
dh_testdir
|
|
|
|
dh_testroot
|
2000-04-02 20:45:01 -07:00
|
|
|
dh_installdocs
|
|
|
|
dh_installmenu
|
1999-10-21 10:56:12 -07:00
|
|
|
dh_installchangelogs
|
2000-04-02 20:45:01 -07:00
|
|
|
dh_link
|
1999-10-21 10:56:12 -07:00
|
|
|
dh_compress
|
2000-05-24 10:56:48 -07:00
|
|
|
dh_strip
|
1999-10-10 05:49:48 -07:00
|
|
|
dh_fixperms
|
|
|
|
dh_installdeb
|
|
|
|
dh_shlibdeps
|
|
|
|
dh_gencontrol
|
|
|
|
dh_md5sums
|
|
|
|
dh_builddeb
|
1999-10-02 17:37:09 -07:00
|
|
|
|
2000-04-02 20:45:01 -07:00
|
|
|
# Build architecture independant packages using the common target.
|
2000-05-24 10:56:48 -07:00
|
|
|
binary-indep: build install
|
2000-04-02 20:45:01 -07:00
|
|
|
$(MAKE) -f debian/rules DH_OPTIONS=-i binary-common
|
|
|
|
|
|
|
|
# Build architecture dependant packages using the common target.
|
2000-05-24 10:56:48 -07:00
|
|
|
binary-arch: build install
|
2000-04-02 20:45:01 -07:00
|
|
|
$(MAKE) -f debian/rules DH_OPTIONS=-a binary-common
|
|
|
|
|
|
|
|
# Any other binary targets build just one binary package at a time.
|
|
|
|
binary-%: build install
|
|
|
|
make -f debian/rules binary-common DH_OPTIONS=-p$*
|
|
|
|
|
|
|
|
manpage:
|
2000-05-24 10:56:48 -07:00
|
|
|
pod2man debian/e-utils.pod \
|
2000-04-02 20:45:01 -07:00
|
|
|
--center="Debian GNU/Linux" \
|
2004-08-13 13:11:31 -07:00
|
|
|
--release="sarge" > debian/e-utils.1
|
2000-04-02 20:45:01 -07:00
|
|
|
|
|
|
|
binary: install binary-indep binary-arch
|
|
|
|
.PHONY: build clean binary-indep binary-arch binary install
|