2001-02-27 02:04:08 +00: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 07:53:11 +00:00
|
|
|
#export DH_VERBOSE=1
|
2001-02-27 02:04:08 +00:00
|
|
|
|
2009-08-08 07:45:36 +00:00
|
|
|
# do not run the actual rules of this makefile in parallel. sub-makes
|
|
|
|
# can go in parallel
|
|
|
|
.NOTPARALLEL:
|
|
|
|
|
2001-12-20 17:18:48 +00:00
|
|
|
package := mplayer
|
2002-02-03 20:27:20 +00:00
|
|
|
prefix := $(shell pwd)/debian/$(package)
|
|
|
|
|
2001-12-20 17:18:48 +00:00
|
|
|
arch := $(shell dpkg --print-architecture)
|
|
|
|
|
2009-08-02 15:17:26 +00:00
|
|
|
# See http://wiki.debian.org/Teams/Dpkg/DebianRules; #465282 and
|
|
|
|
# https://wiki.ubuntu.com/DistCompilerFlags
|
|
|
|
CLEAN_ENV=env -u CFLAGS -u CPPFLAGS -u LDFLAGS -u FFLAGS -u CXXFLAGS
|
2001-02-27 02:04:08 +00:00
|
|
|
|
2009-08-08 07:45:36 +00:00
|
|
|
ifneq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
|
|
|
|
NUMJOBS = $(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
|
|
|
|
MAKEFLAGS += -j$(NUMJOBS)
|
|
|
|
endif
|
|
|
|
|
2001-07-28 07:53:11 +00:00
|
|
|
configure: configure-stamp
|
|
|
|
configure-stamp:
|
|
|
|
dh_testdir
|
|
|
|
# Add here commands to configure the package.
|
2001-02-27 02:04:08 +00:00
|
|
|
$(checkdir)
|
2005-11-17 06:31:50 +00:00
|
|
|
# If you plan to install the target .deb on a wide variety of machines,
|
|
|
|
# you may want to add the "--enable-runtime-cpudetection" option to
|
|
|
|
# the line below, but beware: the resulting binary will run slower
|
2009-08-02 15:17:26 +00:00
|
|
|
$(CLEAN_ENV) \
|
2009-08-08 07:39:28 +00:00
|
|
|
./configure --prefix=/usr --confdir=/etc/mplayer $(DEB_BUILD_CONFIGURE)
|
2001-07-28 07:53:11 +00:00
|
|
|
|
|
|
|
touch configure-stamp
|
|
|
|
|
|
|
|
build: configure-stamp build-stamp
|
|
|
|
build-stamp:
|
|
|
|
dh_testdir
|
|
|
|
|
2001-12-20 17:18:48 +00:00
|
|
|
# commands to compile the package.
|
2009-08-02 15:17:26 +00:00
|
|
|
$(CLEAN_ENV) \
|
2009-05-13 02:58:57 +00:00
|
|
|
${MAKE}
|
2001-07-28 07:53:11 +00:00
|
|
|
|
|
|
|
touch build-stamp
|
2001-02-27 02:04:08 +00:00
|
|
|
|
|
|
|
clean:
|
2001-07-28 07:53:11 +00:00
|
|
|
dh_testdir
|
|
|
|
dh_testroot
|
|
|
|
rm -f build-stamp configure-stamp
|
2001-02-27 02:04:08 +00:00
|
|
|
|
2001-12-20 17:18:48 +00:00
|
|
|
# commands to clean up after the build process.
|
2001-08-27 20:03:01 +00:00
|
|
|
-$(MAKE) distclean
|
2001-07-28 07:53:11 +00:00
|
|
|
dh_clean
|
2001-02-27 02:04:08 +00:00
|
|
|
|
2001-12-20 17:18:48 +00:00
|
|
|
# Build architecture-independent files here.
|
|
|
|
binary-indep: build
|
|
|
|
# We have nothing to do by default.
|
2001-05-21 08:32:00 +00:00
|
|
|
|
2001-12-20 17:18:48 +00:00
|
|
|
# Build architecture-dependent files here.
|
|
|
|
binary-arch: build
|
2001-07-28 07:53:11 +00:00
|
|
|
dh_testdir
|
|
|
|
dh_testroot
|
|
|
|
dh_clean -k
|
|
|
|
dh_installdirs
|
|
|
|
|
2001-12-20 17:18:48 +00:00
|
|
|
# commands to install the package into debian/<packagename>
|
2002-09-03 23:31:11 +00:00
|
|
|
$(MAKE) prefix=$(prefix)/usr BINDIR=$(prefix)/usr/bin CONFDIR=$(prefix)/etc/mplayer LIBDIR=$(prefix)/usr/lib DATADIR=$(prefix)/usr/share/mplayer MANDIR=$(prefix)/usr/share/man install
|
2004-06-29 12:53:34 +00:00
|
|
|
|
2009-08-08 07:13:23 +00:00
|
|
|
install -D -m 644 etc/example.conf $(prefix)/etc/mplayer/mplayer.conf
|
2006-06-22 09:39:14 +00:00
|
|
|
dh_installdocs -X.svn -Xmplayer.1 DOCS/*
|
2003-09-21 13:12:58 +00:00
|
|
|
dh_installexamples etc/example.conf etc/dvb-menu.conf etc/input.conf etc/menu.conf
|
2004-08-23 08:03:31 +00:00
|
|
|
dh_installmime
|
2001-07-28 07:53:11 +00:00
|
|
|
dh_installinfo
|
2003-04-25 13:57:17 +00:00
|
|
|
dh_installchangelogs
|
|
|
|
#ChangeLog
|
2001-07-28 07:53:11 +00:00
|
|
|
dh_link
|
|
|
|
dh_strip
|
|
|
|
dh_compress
|
|
|
|
dh_fixperms
|
2005-10-25 22:13:36 +00:00
|
|
|
dh_makeshlibs
|
2001-07-28 07:53:11 +00:00
|
|
|
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 08:32:00 +00:00
|
|
|
|
2001-02-27 02:04:08 +00: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
|
2009-05-13 02:58:57 +00:00
|
|
|
# debstd
|
2001-07-28 07:53:11 +00:00
|
|
|
# dpkg-gencontrol -isp
|
|
|
|
# chown -R root.root debian/tmp
|
|
|
|
# chmod -R go=rX debian/tmp
|
|
|
|
# dpkg --build debian/tmp ..
|
2001-02-27 02:04:08 +00:00
|
|
|
|
|
|
|
binary: binary-indep binary-arch
|
|
|
|
|
|
|
|
.PHONY: binary binary-arch binary-indep clean checkroot
|