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
|
|
|
|
# This is the debhelper compatability version to use.
|
2001-08-29 19:31:33 +00:00
|
|
|
export DH_COMPAT=2
|
2001-02-27 02:04:08 +00:00
|
|
|
|
|
|
|
package=mplayer
|
|
|
|
|
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)
|
2001-05-17 11:47:00 +00:00
|
|
|
./configure --prefix=/usr
|
2001-07-28 07:53:11 +00:00
|
|
|
|
|
|
|
touch configure-stamp
|
|
|
|
|
|
|
|
build: configure-stamp build-stamp
|
|
|
|
build-stamp:
|
|
|
|
dh_testdir
|
|
|
|
|
|
|
|
# Add here commands to compile the package.
|
|
|
|
#$(MAKE)
|
|
|
|
#/usr/bin/docbook-to-man debian/etherconf.sgml > etherconf.1
|
2001-08-22 20:58:50 +00:00
|
|
|
${MAKE} mplayer
|
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-07-28 07:53:11 +00:00
|
|
|
# Add here commands to clean up after the build process.
|
|
|
|
#-$(MAKE) clean
|
|
|
|
# $(checkdir)
|
|
|
|
# -rm -f build
|
2001-08-27 20:03:01 +00:00
|
|
|
-$(MAKE) distclean
|
2001-07-28 07:53:11 +00:00
|
|
|
# -rm -f `find . -name "*~"`
|
2001-08-29 19:33:17 +00:00
|
|
|
# -rm -rf debian/tmp debian/files* core debian/substvars
|
2001-07-28 07:53:11 +00:00
|
|
|
dh_clean
|
2001-02-27 02:04:08 +00:00
|
|
|
|
2001-05-21 08:32:00 +00:00
|
|
|
|
|
|
|
|
2001-07-28 07:53:11 +00:00
|
|
|
install: build
|
|
|
|
dh_testdir
|
|
|
|
dh_testroot
|
|
|
|
dh_clean -k
|
|
|
|
dh_installdirs
|
|
|
|
|
|
|
|
# Add here commands to install the package into debian/<packagename>
|
|
|
|
# $(MAKE) prefix=`pwd`/debian/`dh_listpackages`/usr install
|
2001-08-23 16:44:52 +00:00
|
|
|
# $(MAKE) install prefix=$(CURDIR)/debian/tmp/usr
|
2001-08-29 19:33:17 +00:00
|
|
|
# install -d $(CURDIR)/debian/tmp/usr/bin
|
2001-09-06 18:10:56 +00:00
|
|
|
install -m 755 -s mplayer $(CURDIR)/debian/`dh_listpackages`/usr/bin/mplayer
|
2001-08-23 16:44:52 +00:00
|
|
|
#Do we really need this?:
|
|
|
|
# install -o root -g root -m 4755 fibmap_mplayer usr/bin/fibmap_mplayer
|
|
|
|
|
2001-05-21 08:32:00 +00:00
|
|
|
|
2001-07-28 07:53:11 +00:00
|
|
|
# Build architecture-independent files here.
|
|
|
|
binary-indep: build install
|
|
|
|
# We have nothing to do by default.
|
|
|
|
|
|
|
|
|
|
|
|
# Build architecture-dependent files here.
|
|
|
|
binary-arch: build install
|
|
|
|
dh_testdir
|
|
|
|
dh_testroot
|
|
|
|
dh_installdebconf
|
2001-08-22 20:58:50 +00:00
|
|
|
dh_installdocs DOCS/*
|
2001-08-28 19:34:32 +00:00
|
|
|
dh_installexamples etc/example.conf
|
2001-07-28 07:53:11 +00:00
|
|
|
dh_installmenu
|
|
|
|
# dh_installmime
|
2001-08-27 21:16:24 +00:00
|
|
|
dh_installmanpages TVout/fbset/fb.modes.5 TVout/fbset/fbset.8
|
2001-07-28 07:53:11 +00:00
|
|
|
dh_installinfo
|
|
|
|
# dh_undocumented
|
|
|
|
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 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
|
2001-07-28 07:53:11 +00:00
|
|
|
# debstd
|
|
|
|
# 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
|