2001-02-19 21:15:25 +00:00
|
|
|
#! /usr/bin/make -f
|
|
|
|
# This file is public domain software, originally written by Joey Hess.
|
|
|
|
|
|
|
|
# Uncomment this to turn on verbose mode.
|
|
|
|
#export DH_VERBOSE=1
|
|
|
|
|
|
|
|
# This is the debhelper compatibility version to use.
|
|
|
|
export DH_COMPAT=2
|
|
|
|
|
2002-09-30 16:51:30 +00:00
|
|
|
PACKAGE := quakeforge
|
|
|
|
QFCC := qfcc
|
|
|
|
common := $(PACKAGE)-common
|
|
|
|
maptools := $(PACKAGE)-maptools
|
|
|
|
dev := $(PACKAGE)-dev
|
|
|
|
|
|
|
|
alsa := $(PACKAGE)-alsa
|
|
|
|
gllib := $(PACKAGE)-libs-gl
|
|
|
|
glx := $(PACKAGE)-glx
|
|
|
|
oss := $(PACKAGE)-oss
|
|
|
|
sdl := $(PACKAGE)-sdl
|
|
|
|
servers := $(PACKAGE)-servers
|
|
|
|
sgl := $(PACKAGE)-sgl
|
|
|
|
svga := $(PACKAGE)-svga
|
|
|
|
swlib := $(PACKAGE)-libs-sw
|
|
|
|
utils := $(PACKAGE)-utils
|
|
|
|
x11 := $(PACKAGE)-x11
|
2001-10-14 12:17:11 +00:00
|
|
|
|
|
|
|
build := $(shell pwd)/debian/tmp
|
|
|
|
tmp := debian/tmp
|
2001-02-19 21:15:25 +00:00
|
|
|
|
|
|
|
ifeq ($(DEB_BUILD_GNU_TYPE),)
|
|
|
|
RETARGET=
|
|
|
|
else
|
2002-05-31 06:42:04 +00:00
|
|
|
RETARGET= --build=$(DEB_BUILD_GNU_TYPE)
|
2001-02-19 21:15:25 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
configure: configure-stamp
|
|
|
|
configure-stamp:
|
|
|
|
dh_testdir
|
|
|
|
# Add here commands to configure the package.
|
2002-05-29 16:06:09 +00:00
|
|
|
if test -d CVS; then ./bootstrap; fi
|
2001-02-19 21:15:25 +00:00
|
|
|
./configure --prefix=/usr $(RETARGET) --bindir=/usr/games \
|
2002-04-16 08:07:40 +00:00
|
|
|
--without-fbdev \
|
|
|
|
--disable-xmms \
|
2001-02-19 21:15:25 +00:00
|
|
|
--mandir=\$${prefix}/share/man \
|
|
|
|
--infodir=\$${prefix}/share/info \
|
2002-10-01 05:06:51 +00:00
|
|
|
--with-plugin-path=\$${prefix}/lib/quakeforge/plugins \
|
2001-10-14 12:17:11 +00:00
|
|
|
--with-clients=glx,sdl,sgl,svga,x11 \
|
|
|
|
--with-servers=master,nq,qw
|
2001-02-19 21:15:25 +00:00
|
|
|
|
2001-10-14 12:17:11 +00:00
|
|
|
touch $@
|
2001-02-19 21:15:25 +00:00
|
|
|
|
2001-10-14 12:17:11 +00:00
|
|
|
build: configure-stamp changelog-stamp build-stamp
|
2001-02-19 21:15:25 +00:00
|
|
|
build-stamp:
|
|
|
|
dh_testdir
|
2002-06-02 06:45:23 +00:00
|
|
|
$(MAKE) $(QFSMP)
|
2001-10-14 12:17:11 +00:00
|
|
|
touch $@
|
2001-02-19 21:15:25 +00:00
|
|
|
|
2001-10-14 12:17:11 +00:00
|
|
|
changelog-stamp:
|
|
|
|
dh_testdir
|
|
|
|
# Add here commands to build the changelog
|
2002-05-29 16:06:50 +00:00
|
|
|
if test -d CVS; then $(MAKE) changelog; fi
|
2001-10-14 12:17:11 +00:00
|
|
|
touch $@
|
|
|
|
|
2001-02-19 21:15:25 +00:00
|
|
|
clean:
|
|
|
|
dh_testdir
|
|
|
|
dh_testroot
|
2001-10-17 21:35:24 +00:00
|
|
|
rm -f build-stamp configure-stamp changelog-stamp debian/quakeforge-common.conffiles
|
2001-02-19 21:15:25 +00:00
|
|
|
|
|
|
|
# Add here commands to clean up after the build process.
|
|
|
|
-$(MAKE) distclean
|
|
|
|
|
|
|
|
dh_clean
|
|
|
|
|
2001-10-14 12:17:11 +00:00
|
|
|
install: DH_OPTIONS=
|
2001-02-19 21:15:25 +00:00
|
|
|
install: build
|
|
|
|
dh_testdir
|
|
|
|
dh_testroot
|
|
|
|
dh_clean -k
|
|
|
|
|
|
|
|
# Add here commands to install the package into debian/tmp.
|
2001-10-14 12:17:11 +00:00
|
|
|
$(MAKE) DESTDIR=$(build) install
|
|
|
|
install -m644 -D debian/quakeforge.conf $(build)/etc/quakeforge.conf
|
|
|
|
|
|
|
|
# quakeforge-common
|
|
|
|
find $(tmp)/etc ! -type d | sed -e "s:^$(tmp)::" > debian/$(common).conffiles
|
2002-04-16 08:07:40 +00:00
|
|
|
install -D -m755 debian/$(common).shlibs debian/$(common)/DEBIAN/shlibs
|
2001-10-14 12:17:11 +00:00
|
|
|
dh_movefiles -p$(common) --sourcedir=$(tmp) \
|
|
|
|
etc/quakeforge.conf \
|
|
|
|
usr/lib/libQFcd.so.* \
|
|
|
|
usr/lib/libQFconsole.so.* \
|
2002-04-16 08:07:40 +00:00
|
|
|
usr/lib/libQFcsqc.so.* \
|
2001-10-14 12:17:11 +00:00
|
|
|
usr/lib/libQFgamecode.so.* \
|
|
|
|
usr/lib/libQFgamecode_builtins.so.* \
|
2002-11-11 18:10:26 +00:00
|
|
|
usr/lib/libQFgib.so.* \
|
2003-08-16 03:58:35 +00:00
|
|
|
usr/lib/libQFimage.so.* \
|
2001-10-14 12:17:11 +00:00
|
|
|
usr/lib/libQFjs.so.* \
|
|
|
|
usr/lib/libQFmodels.so.* \
|
|
|
|
usr/lib/libQFsound.so.* \
|
|
|
|
usr/lib/libQFutil.so.* \
|
2002-10-01 05:06:51 +00:00
|
|
|
usr/lib/quakeforge/plugins/cd_linux.so* \
|
|
|
|
usr/lib/quakeforge/plugins/console_client.so* \
|
|
|
|
usr/lib/quakeforge/plugins/snd_output_disk.so* \
|
2003-10-18 01:52:28 +00:00
|
|
|
usr/lib/quakeforge/plugins/snd_render_default.so* \
|
|
|
|
usr/share/games/quakeforge/QF/menu.dat*
|
2001-10-14 12:17:11 +00:00
|
|
|
dh_installdocs -p$(common) NEWS TODO
|
|
|
|
dh_installchangelogs -p$(common) ChangeLog
|
|
|
|
|
|
|
|
# quakeforge-dev
|
|
|
|
dh_movefiles -p$(dev) --sourcedir=$(tmp) \
|
|
|
|
usr/lib/libQFcd.*a \
|
|
|
|
usr/lib/libQFcd.so \
|
|
|
|
usr/lib/libQFconsole.*a \
|
|
|
|
usr/lib/libQFconsole.so \
|
2002-04-16 08:07:40 +00:00
|
|
|
usr/lib/libQFcsqc.*a \
|
|
|
|
usr/lib/libQFcsqc.so \
|
2001-10-14 12:17:11 +00:00
|
|
|
usr/lib/libQFgamecode.*a \
|
|
|
|
usr/lib/libQFgamecode.so \
|
2002-09-30 16:51:30 +00:00
|
|
|
usr/lib/libQFgamecode_builtins.*a \
|
|
|
|
usr/lib/libQFgamecode_builtins.so \
|
2002-11-11 18:10:26 +00:00
|
|
|
usr/lib/libQFgib.a \
|
|
|
|
usr/lib/libQFgib.so \
|
2003-08-16 03:58:35 +00:00
|
|
|
usr/lib/libQFimage.*a \
|
|
|
|
usr/lib/libQFimage.so \
|
2001-10-14 12:17:11 +00:00
|
|
|
usr/lib/libQFjs.*a \
|
|
|
|
usr/lib/libQFjs.so \
|
|
|
|
usr/lib/libQFmodels.*a \
|
|
|
|
usr/lib/libQFmodels.so \
|
|
|
|
usr/lib/libQFsound.*a \
|
|
|
|
usr/lib/libQFsound.so \
|
|
|
|
usr/lib/libQFutil.*a \
|
|
|
|
usr/lib/libQFutil.so \
|
|
|
|
usr/include/QF/GL/*.h \
|
|
|
|
usr/include/QF/plugin/*.h \
|
2002-09-30 18:19:51 +00:00
|
|
|
usr/include/QF/*.h
|
2001-10-14 12:17:11 +00:00
|
|
|
install -d -m755 debian/$(dev)/usr/share/doc
|
|
|
|
ln -s $(common) debian/$(dev)/usr/share/doc/$(dev)
|
|
|
|
|
|
|
|
# quakeforge-libs-gl
|
|
|
|
dh_movefiles -p$(gllib) --sourcedir=$(tmp) \
|
|
|
|
usr/lib/libQFmodels_gl.so.* \
|
|
|
|
usr/lib/libQFrenderer_gl.so.*
|
2002-04-16 08:07:40 +00:00
|
|
|
install -D -m755 debian/$(gllib).shlibs debian/$(gllib)/DEBIAN/shlibs
|
2001-10-14 12:17:11 +00:00
|
|
|
install -d -m755 debian/$(gllib)/usr/share/doc
|
|
|
|
ln -s $(common) debian/$(gllib)/usr/share/doc/$(gllib)
|
|
|
|
|
|
|
|
# quakeforge-libs-sw
|
|
|
|
dh_movefiles -p$(swlib) --sourcedir=$(tmp) \
|
2002-09-30 18:19:51 +00:00
|
|
|
usr/lib/libQFmodels_sw.so.*
|
2002-04-16 08:07:40 +00:00
|
|
|
install -D -m755 debian/$(swlib).shlibs debian/$(swlib)/DEBIAN/shlibs
|
2001-10-14 12:17:11 +00:00
|
|
|
install -d -m755 debian/$(swlib)/usr/share/doc
|
|
|
|
ln -s $(common) debian/$(swlib)/usr/share/doc/$(swlib)
|
|
|
|
|
|
|
|
# quakeforge-servers
|
|
|
|
dh_movefiles -p$(servers) --sourcedir=$(tmp) \
|
|
|
|
usr/games/qw-master \
|
|
|
|
usr/games/qw-server \
|
|
|
|
usr/games/nq-server \
|
2002-10-01 05:06:51 +00:00
|
|
|
usr/lib/quakeforge/plugins/console_server.so*
|
2001-10-14 12:17:11 +00:00
|
|
|
install -d -m755 debian/$(servers)/usr/share/doc
|
|
|
|
ln -s $(common) debian/$(servers)/usr/share/doc/$(servers)
|
|
|
|
|
|
|
|
# quakeforge-glx
|
|
|
|
dh_movefiles -p$(glx) --sourcedir=$(tmp) \
|
|
|
|
usr/games/nq-glx \
|
2001-10-15 22:52:53 +00:00
|
|
|
usr/games/qw-client-glx
|
2001-10-14 12:17:11 +00:00
|
|
|
install -d -m755 debian/$(glx)/usr/share/doc
|
|
|
|
ln -s $(common) debian/$(glx)/usr/share/doc/$(glx)
|
|
|
|
|
|
|
|
# quakeforge-sdl
|
|
|
|
dh_movefiles -p$(sdl) --sourcedir=$(tmp) \
|
|
|
|
usr/games/nq-sdl \
|
2001-10-15 22:52:53 +00:00
|
|
|
usr/games/qw-client-sdl
|
2001-10-14 12:17:11 +00:00
|
|
|
install -d -m755 debian/$(sdl)/usr/share/doc
|
|
|
|
ln -s $(common) debian/$(sdl)/usr/share/doc/$(sdl)
|
|
|
|
|
|
|
|
# quakeforge-sgl
|
|
|
|
dh_movefiles -p$(sgl) --sourcedir=$(tmp) \
|
|
|
|
usr/games/nq-sgl \
|
2001-10-15 22:52:53 +00:00
|
|
|
usr/games/qw-client-sgl
|
2001-10-14 12:17:11 +00:00
|
|
|
install -d -m755 debian/$(sgl)/usr/share/doc
|
|
|
|
ln -s $(common) debian/$(sgl)/usr/share/doc/$(sgl)
|
|
|
|
|
|
|
|
# quakeforge-svga
|
|
|
|
dh_movefiles -p$(svga) --sourcedir=$(tmp) \
|
|
|
|
usr/games/nq-svga \
|
|
|
|
usr/games/qw-client-svga
|
|
|
|
install -d -m755 debian/$(svga)/usr/share/doc
|
|
|
|
ln -s $(common) debian/$(svga)/usr/share/doc/$(svga)
|
|
|
|
|
|
|
|
# quakeforge-x11
|
|
|
|
dh_movefiles -p$(x11) --sourcedir=$(tmp) \
|
|
|
|
usr/games/nq-x11 \
|
2001-10-15 22:52:53 +00:00
|
|
|
usr/games/qw-client-x11
|
2001-10-14 12:17:11 +00:00
|
|
|
install -d -m755 debian/$(x11)/usr/share/doc
|
|
|
|
ln -s $(common) debian/$(x11)/usr/share/doc/$(x11)
|
|
|
|
|
|
|
|
# quakeforge-alsa
|
|
|
|
dh_movefiles -p$(alsa) --sourcedir=$(tmp) \
|
2003-09-10 22:02:32 +00:00
|
|
|
usr/lib/quakeforge/plugins/snd_output_alsa.so*
|
2001-10-14 12:17:11 +00:00
|
|
|
install -d -m755 debian/$(alsa)/usr/share/doc
|
|
|
|
ln -s $(common) debian/$(alsa)/usr/share/doc/$(alsa)
|
|
|
|
|
|
|
|
# quakeforge-oss
|
|
|
|
dh_movefiles -p$(oss) --sourcedir=$(tmp) \
|
2002-10-01 05:06:51 +00:00
|
|
|
usr/lib/quakeforge/plugins/snd_output_oss.so*
|
2001-10-14 12:17:11 +00:00
|
|
|
install -d -m755 debian/$(oss)/usr/share/doc
|
|
|
|
ln -s $(common) debian/$(oss)/usr/share/doc/$(oss)
|
|
|
|
|
2002-04-16 08:07:40 +00:00
|
|
|
# qfcc
|
|
|
|
install -D -m755 $(tmp)/usr/games/qfcc $(tmp)/usr/bin/qfcc
|
|
|
|
rm -f $(tmp)/usr/games/qfcc
|
|
|
|
dh_movefiles -p$(QFCC) --sourcedir=$(tmp) \
|
|
|
|
usr/bin/qfcc \
|
2002-09-30 16:51:30 +00:00
|
|
|
usr/share/man/man1/qfcc.1 \
|
2002-11-01 18:11:20 +00:00
|
|
|
usr/include/QF/ruamoko/* \
|
|
|
|
usr/lib/ruamoko/*
|
2002-04-16 08:07:40 +00:00
|
|
|
install -d -m755 debian/$(QFCC)/usr/share/doc
|
|
|
|
ln -s $(common) debian/$(QFCC)/usr/share/doc/$(QFCC)
|
|
|
|
|
2002-09-30 16:51:30 +00:00
|
|
|
# quakeforge-utils
|
|
|
|
install -D -m755 $(tmp)/usr/games/pak $(tmp)/usr/bin/pak
|
|
|
|
install -D -m755 $(tmp)/usr/games/zpak $(tmp)/usr/bin/zpak
|
|
|
|
install -D -m755 $(tmp)/usr/games/qfdefs $(tmp)/usr/bin/qfdefs
|
|
|
|
install -D -m755 $(tmp)/usr/games/qfprogs $(tmp)/usr/bin/qfprogs
|
|
|
|
install -D -m755 $(tmp)/usr/games/qfwavinfo $(tmp)/usr/bin/qfwavinfo
|
|
|
|
rm -f $(tmp)/usr/games/pak \
|
|
|
|
$(tmp)/usr/games/zpak \
|
|
|
|
$(tmp)/usr/games/qfdefs \
|
|
|
|
$(tmp)/usr/games/qfprogs \
|
|
|
|
$(tmp)/usr/games/qfwavinfo
|
|
|
|
dh_movefiles -p$(utils) --sourcedir=$(tmp) \
|
|
|
|
usr/bin/pak \
|
|
|
|
usr/bin/zpak \
|
|
|
|
usr/bin/qfdefs \
|
|
|
|
usr/bin/qfprogs \
|
|
|
|
usr/bin/qfwavinfo \
|
|
|
|
usr/share/man/man1/pak.1
|
|
|
|
install -d -m755 debian/$(utils)/usr/share/doc
|
|
|
|
ln -s $(common) debian/$(utils)/usr/share/doc/$(utils)
|
|
|
|
|
|
|
|
# quakeforge-maptools
|
|
|
|
install -D -m755 $(tmp)/usr/games/qfbsp $(tmp)/usr/bin/qfbsp
|
|
|
|
install -D -m755 $(tmp)/usr/games/qflight $(tmp)/usr/bin/qflight
|
|
|
|
install -D -m755 $(tmp)/usr/games/qfvis $(tmp)/usr/bin/qfvis
|
|
|
|
dh_movefiles -p$(maptools) --sourcedir=$(tmp) \
|
|
|
|
usr/bin/qfbsp \
|
|
|
|
usr/bin/qflight \
|
|
|
|
usr/bin/qfvis \
|
|
|
|
usr/share/man/man1/qflight.1 \
|
|
|
|
usr/share/man/man1/qfvis.1
|
|
|
|
install -d -m755 debian/$(maptools)/usr/share/doc
|
|
|
|
ln -s $(common) debian/$(maptools)/usr/share/doc/$(maptools)
|
|
|
|
|
2001-10-14 12:17:11 +00:00
|
|
|
# quakeforge
|
2002-09-30 16:51:30 +00:00
|
|
|
find $(tmp) -type d -empty -print | xargs -r rmdir -p --ignore-fail-on-non-empty
|
2001-10-14 12:17:11 +00:00
|
|
|
dh_movefiles -p$(PACKAGE) --sourcedir=$(tmp)
|
|
|
|
install -d -m755 debian/$(PACKAGE)/usr/share/doc
|
|
|
|
ln -s $(common) debian/$(PACKAGE)/usr/share/doc/$(PACKAGE)
|
2001-02-19 21:15:25 +00:00
|
|
|
|
|
|
|
# Build architecture-independent files here.
|
|
|
|
# Pass -i to all debhelper commands in this target to reduce clutter.
|
|
|
|
binary-indep: DH_OPTIONS=-i
|
|
|
|
binary-indep: build install
|
|
|
|
# We don't have any packages with Architecture: all
|
|
|
|
|
|
|
|
# Build architecture-dependent files here.
|
|
|
|
# Pass -a to all debhelper commands in this target to reduce clutter.
|
|
|
|
binary-arch: DH_OPTIONS=-a
|
|
|
|
binary-arch: build install
|
|
|
|
dh_testdir
|
|
|
|
dh_testroot
|
|
|
|
dh_installexamples
|
|
|
|
dh_installmenu
|
2002-04-16 08:07:40 +00:00
|
|
|
dh_installman -p$(QFCC)
|
2002-09-30 16:51:30 +00:00
|
|
|
dh_installman -p$(maptools)
|
|
|
|
dh_installman -p$(utils)
|
2001-02-19 21:15:25 +00:00
|
|
|
dh_undocumented
|
2002-11-08 18:50:08 +00:00
|
|
|
dh_strip -Xruamoko
|
2001-02-19 21:15:25 +00:00
|
|
|
dh_link
|
|
|
|
dh_compress
|
|
|
|
dh_fixperms
|
2001-07-23 07:21:44 +00:00
|
|
|
dh_makeshlibs
|
2001-02-19 21:15:25 +00:00
|
|
|
# You may want to make some executables suid here.
|
2001-09-16 17:06:36 +00:00
|
|
|
chmod 4755 debian/quakeforge-svga/usr/games/qw-client-svga debian/quakeforge-svga/usr/games/nq-svga
|
2001-02-19 21:15:25 +00:00
|
|
|
dh_installdeb
|
|
|
|
dh_shlibdeps
|
|
|
|
dh_gencontrol
|
|
|
|
dh_md5sums
|
|
|
|
dh_builddeb
|
|
|
|
|
|
|
|
binary: binary-indep binary-arch
|
|
|
|
.PHONY: build clean binary-indep binary-arch binary install
|