1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96
|
#!/usr/bin/make -f
# debian/rules for sidplay and associated packages, (C) 1998-2001 by ujr.
# Made using the sample rules from debhelper [GNU copyrighted by Joey Hess].
## Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
## Uncomment this to see what should happen.
#export DH_NO_ACT=1
build: build-stamp
build-stamp:
dh_testdir debian/rules src html-info
# well, ./configure isn't interactive here and doesn't take long, so it's
# carried out in order to assist building the package for people with other
# architectures and compiler environments
./configure --prefix=/usr
# Intel specific optimization patch!
if test `dpkg --print-architecture` = i386; then \
if test ! -f src/libcfg.h.in.org; then cp -a src/libcfg.h.in src/libcfg.h.in.org; fi; \
set +e; \
patch -p1 -N < libsidplay-ix86-optimize.patch; \
set -e; \
fi
# Make the library - since 1.36.36 it seems no longer necessary to build
# shared and static libraries separately, because of libtool usage...
# We should use egcs or g++>2.95 in order to prevent problems occuring
# with '-O2 -fPIC' or '-g'.
# Chopped down the CXXFLAGS, just use -D_REENTRANT as required by Policy
# Old:
# $(MAKE) CXXFLAGS="-pipe -funroll-loops -O3 -g -Wall -D_REENTRANT" \
# LDFLAGS="-lc"
$(MAKE) CXXFLAGS="-O3 -g -Wall -D_REENTRANT" LDFLAGS="-lstdc++"
touch build-stamp
clean:
dh_testroot
dh_testdir debian/rules src html-info
-rm -f build-stamp
-cp -a src/libcfg.h.in.org src/libcfg.h.in
-rm src/libcfg.h.in.org
-$(MAKE) distclean
rm -f conftest*
dh_clean
# Build architecture-independent files here.
binary-indep: build
# Nothing to do here.
# Build architecture-dependent files here.
binary-arch: build
# according to Lintian this needs versioned Build-Depends,
# which seems unnecessary (as dh_testversion probably is here)
# dh_testversion 1.2.26
dh_testroot
dh_testdir debian/rules src html-info
dh_clean -k
dh_installdirs -A
# Installation
$(MAKE) prefix=`pwd`/debian/tmp/usr install
cp -a `pwd`/debian/tmp/* `pwd`/debian/libsidplay1-dev
rm -rf `pwd`/debian/tmp/usr/include
rm -f `pwd`/debian/tmp/usr/lib/libsidplay.a
rm -f `pwd`/debian/tmp/usr/lib/libsidplay.so
rm -f `pwd`/debian/libsidplay1-dev/usr/lib/libsidplay.so.1*
rm -f `pwd`/debian/libsidplay1-dev/usr/lib/libsidplay.la
# Package organisation
dh_installdocs src/*.txt
# unneeded dh_ scripts from the sample debian/rules file
# dh_installexamples
# dh_installinit
# dh_installcron
# dh_installmanpages
# dh_undocumented
dh_installchangelogs
# use the same /usr/share/doc directory for all packages built here
-rm -rf debian/libsidplay1-dev/usr/share/doc/libsidplay1-dev
ln -s libsidplay1 debian/libsidplay1-dev/usr/share/doc/libsidplay1-dev
dh_strip
dh_compress
dh_fixperms
# dh_suidregister
dh_installdeb
# This trick prevents libsidplay from showing up in shlibs (removed, because
# it is broken... )
dh_shlibdeps
dh_gencontrol
# dh_makeshlibs -V -plibsidplay1
dh_md5sums
dh_builddeb
binary: binary-indep binary-arch
.PHONY: build clean binary-indep binary-arch binary
# vim:tw=0
|