1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/gmyth-stream/gmencoder/debian/rules Wed Jan 23 20:09:09 2008 +0000
1.3 @@ -0,0 +1,107 @@
1.4 +#!/usr/bin/make -f
1.5 +# -*- makefile -*-
1.6 +# Sample debian/rules that uses debhelper.
1.7 +# This file was originally written by Joey Hess and Craig Small.
1.8 +# As a special exception, when this file is copied by dh-make into a
1.9 +# dh-make output file, you may use that output file without restriction.
1.10 +# This special exception was added by Craig Small in version 0.37 of dh-make.
1.11 +
1.12 +# Uncomment this to turn on verbose mode.
1.13 +#export DH_VERBOSE=1
1.14 +
1.15 +
1.16 +# These are used for cross-compiling and for saving the configure script
1.17 +# from having to guess our platform (since we know it already)
1.18 +DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
1.19 +DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
1.20 +
1.21 +
1.22 +CFLAGS = -Wall -g
1.23 +
1.24 +ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
1.25 + CFLAGS += -O0
1.26 +else
1.27 + CFLAGS += -O2
1.28 +endif
1.29 +
1.30 +config.status: configure
1.31 + dh_testdir
1.32 + # Add here commands to configure the package.
1.33 + ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info CFLAGS="$(CFLAGS)" LDFLAGS="-Wl,-z,defs"
1.34 +
1.35 +
1.36 +build: build-stamp
1.37 +
1.38 +build-stamp: config.status
1.39 + dh_testdir
1.40 +
1.41 + # Add here commands to compile the package.
1.42 + $(MAKE)
1.43 + #docbook-to-man debian/gmencoder.sgml > gmencoder.1
1.44 +
1.45 + touch $@
1.46 +
1.47 +clean:
1.48 + dh_testdir
1.49 + dh_testroot
1.50 + rm -f build-stamp
1.51 +
1.52 + # Add here commands to clean up after the build process.
1.53 + -$(MAKE) distclean
1.54 +ifneq "$(wildcard /usr/share/misc/config.sub)" ""
1.55 + cp -f /usr/share/misc/config.sub config.sub
1.56 +endif
1.57 +ifneq "$(wildcard /usr/share/misc/config.guess)" ""
1.58 + cp -f /usr/share/misc/config.guess config.guess
1.59 +endif
1.60 +
1.61 +
1.62 + dh_clean
1.63 +
1.64 +install: build
1.65 + dh_testdir
1.66 + dh_testroot
1.67 + dh_clean -k
1.68 + dh_installdirs
1.69 +
1.70 + # Add here commands to install the package into debian/gmencoder.
1.71 + $(MAKE) DESTDIR=$(CURDIR)/debian/gmencoder install
1.72 +
1.73 +
1.74 +# Build architecture-independent files here.
1.75 +binary-indep: build install
1.76 +# We have nothing to do by default.
1.77 +
1.78 +# Build architecture-dependent files here.
1.79 +binary-arch: build install
1.80 + dh_testdir
1.81 + dh_testroot
1.82 + dh_installchangelogs ChangeLog
1.83 + dh_installdocs
1.84 + dh_installexamples
1.85 + dh_install
1.86 +# dh_installmenu
1.87 +# dh_installdebconf
1.88 +# dh_installlogrotate
1.89 +# dh_installemacsen
1.90 +# dh_installpam
1.91 +# dh_installmime
1.92 +# dh_python
1.93 +# dh_installinit
1.94 +# dh_installcron
1.95 +# dh_installinfo
1.96 + dh_installman
1.97 + dh_link
1.98 + dh_strip
1.99 + dh_compress
1.100 + dh_fixperms
1.101 +# dh_perl
1.102 +# dh_makeshlibs
1.103 + dh_installdeb
1.104 + dh_shlibdeps
1.105 + dh_gencontrol
1.106 + dh_md5sums
1.107 + dh_builddeb
1.108 +
1.109 +binary: binary-indep binary-arch
1.110 +.PHONY: build clean binary-indep binary-arch binary install