2001-02-27 03:04:08 +01:00
|
|
|
#!/usr/bin/make -f
|
|
|
|
# Made with the aid of debmake, by Christoph Lameter,
|
|
|
|
# based on the sample debian/rules file for GNU hello by Ian Jackson.
|
2001-07-28 09:53:11 +02:00
|
|
|
#export DH_VERBOSE=1
|
|
|
|
# This is the debhelper compatability version to use.
|
2002-01-04 11:39:51 +01:00
|
|
|
export DH_COMPAT=3
|
2001-02-27 03:04:08 +01:00
|
|
|
|
2001-12-20 18:18:48 +01:00
|
|
|
package := mplayer
|
|
|
|
prefix := debian/$(package)
|
|
|
|
arch := $(shell dpkg --print-architecture)
|
|
|
|
|
|
|
|
ifeq ($(arch),powerpc)
|
|
|
|
arch-conf += --disable-mp1e
|
|
|
|
endif
|
|
|
|
|
2001-02-27 03:04:08 +01:00
|
|
|
|
2001-07-28 09:53:11 +02:00
|
|
|
configure: configure-stamp
|
|
|
|
configure-stamp:
|
|
|
|
dh_testdir
|
|
|
|
# Add here commands to configure the package.
|
2001-02-27 03:04:08 +01:00
|
|
|
$(checkdir)
|
2002-01-08 20:03:29 +01:00
|
|
|
./configure --prefix=/usr --confdir=/etc/mplayer --enable-gui $(DEB_BUILD_OPTIONS)
|
2001-07-28 09:53:11 +02:00
|
|
|
|
|
|
|
touch configure-stamp
|
|
|
|
|
|
|
|
build: configure-stamp build-stamp
|
|
|
|
build-stamp:
|
|
|
|
dh_testdir
|
|
|
|
|
2001-12-20 18:18:48 +01:00
|
|
|
# commands to compile the package.
|
|
|
|
${MAKE}
|
2001-07-28 09:53:11 +02:00
|
|
|
|
|
|
|
touch build-stamp
|
2001-02-27 03:04:08 +01:00
|
|
|
|
|
|
|
clean:
|
2001-07-28 09:53:11 +02:00
|
|
|
dh_testdir
|
|
|
|
dh_testroot
|
|
|
|
rm -f build-stamp configure-stamp
|
2001-02-27 03:04:08 +01:00
|
|
|
|
2001-12-20 18:18:48 +01:00
|
|
|
# commands to clean up after the build process.
|
2001-08-27 22:03:01 +02:00
|
|
|
-$(MAKE) distclean
|
2001-07-28 09:53:11 +02:00
|
|
|
dh_clean
|
2001-02-27 03:04:08 +01:00
|
|
|
|
2001-12-20 18:18:48 +01:00
|
|
|
# Build architecture-independent files here.
|
|
|
|
binary-indep: build
|
|
|
|
# We have nothing to do by default.
|
2001-05-21 10:32:00 +02:00
|
|
|
|
2001-12-20 18:18:48 +01:00
|
|
|
# Build architecture-dependent files here.
|
|
|
|
binary-arch: build
|
2001-07-28 09:53:11 +02:00
|
|
|
dh_testdir
|
|
|
|
dh_testroot
|
|
|
|
dh_clean -k
|
|
|
|
dh_installdirs
|
|
|
|
|
2001-12-20 18:18:48 +01:00
|
|
|
# commands to install the package into debian/<packagename>
|
2002-01-05 02:33:39 +01:00
|
|
|
$(MAKE) prefix=$(prefix)/usr CONFDIR=$(prefix)/etc/mplayer DATADIR=$(prefix)/usr/share/mplayer install
|
2001-11-07 11:06:51 +01:00
|
|
|
dh_link usr/bin/mplayer usr/bin/gmplayer
|
|
|
|
|
2001-07-28 09:53:11 +02:00
|
|
|
dh_installdebconf
|
2001-08-22 22:58:50 +02:00
|
|
|
dh_installdocs DOCS/*
|
2001-08-28 21:34:32 +02:00
|
|
|
dh_installexamples etc/example.conf
|
2001-07-28 09:53:11 +02:00
|
|
|
dh_installmenu
|
|
|
|
# dh_installmime
|
|
|
|
dh_installinfo
|
|
|
|
dh_installchangelogs
|
|
|
|
dh_link
|
|
|
|
dh_strip
|
|
|
|
dh_compress
|
|
|
|
dh_fixperms
|
|
|
|
# dh_makeshlibs
|
|
|
|
dh_installdeb
|
|
|
|
dh_perl
|
|
|
|
dh_shlibdeps
|
|
|
|
dh_gencontrol
|
|
|
|
dh_md5sums
|
|
|
|
dh_builddeb
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#binary-arch: checkroot build
|
|
|
|
# $(checkdir)
|
|
|
|
# -rm -rf debian/tmp
|
|
|
|
# install -d debian/tmp
|
|
|
|
# cd debian/tmp && install -d `cat ../dirs`
|
|
|
|
|
2001-05-21 10:32:00 +02:00
|
|
|
|
2001-02-27 03:04:08 +01:00
|
|
|
# Must have debmake installed for this to work. Otherwise please copy
|
|
|
|
# /usr/bin/debstd into the debian directory and change debstd to debian/debstd
|
2001-07-28 09:53:11 +02:00
|
|
|
# debstd
|
|
|
|
# dpkg-gencontrol -isp
|
|
|
|
# chown -R root.root debian/tmp
|
|
|
|
# chmod -R go=rX debian/tmp
|
|
|
|
# dpkg --build debian/tmp ..
|
2001-02-27 03:04:08 +01:00
|
|
|
|
|
|
|
binary: binary-indep binary-arch
|
|
|
|
|
|
|
|
.PHONY: binary binary-arch binary-indep clean checkroot
|