2 # Made with the aid of debmake, by Christoph Lameter,
3 # based on the sample debian/rules file for GNU hello by Ian Jackson.
6 # do not run the actual rules of this makefile in parallel. sub-makes
11 prefix := $(shell pwd
)/debian
/$(package
)
13 arch
:= $(shell dpkg
--print-architecture
)
15 # See http://wiki.debian.org/Teams/Dpkg/DebianRules; #465282 and
16 # https://wiki.ubuntu.com/DistCompilerFlags
17 CLEAN_ENV
=env
-u CFLAGS
-u CPPFLAGS
-u LDFLAGS
-u FFLAGS
-u CXXFLAGS
19 ifneq (,$(filter parallel
=%,$(DEB_BUILD_OPTIONS
)))
20 NUMJOBS
= $(patsubst parallel
=%,%,$(filter parallel
=%,$(DEB_BUILD_OPTIONS
)))
21 MAKEFLAGS
+= -j
$(NUMJOBS
)
24 configure
: configure-stamp
27 # Add here commands to configure the package.
29 # If you plan to install the target .deb on a wide variety of machines,
30 # you may want to add the "--enable-runtime-cpudetection" option to
31 # the line below, but beware: the resulting binary will run slower
32 ifneq (grep
'--prefix' mplayer_options
,0)
33 echo
'--prefix=/usr' >> mplayer_options
38 build
: configure-stamp build-stamp
42 # commands to compile the package.
51 rm -f build-stamp configure-stamp
53 # commands to clean up after the build process.
57 # Build architecture-independent files here.
59 # We have nothing to do by default.
61 # Build architecture-dependent files here.
68 # commands to install the package into debian/<packagename>
69 $(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
71 install -D
-m
644 mplayer
/etc
/example.conf
$(prefix)/etc
/mplayer
/mplayer.conf
72 dh_installdocs
-X.svn
-Xmplayer
.1 mplayer
/DOCS
/*
73 dh_installexamples mplayer
/etc
/example.conf mplayer
/etc
/dvb-menu.conf mplayer
/etc
/input.conf mplayer
/etc
/menu.conf
89 binary
: binary-indep binary-arch
91 .PHONY
: binary binary-arch binary-indep
clean checkroot