3
# Sample debian/rules that uses debhelper.
5
# This file was originally written by Joey Hess and Craig Small.
6
# As a special exception, when this file is copied by dh-make into a
7
# dh-make output file, you may use that output file without restriction.
8
# This special exception was added by Craig Small in version 0.37 of dh-make.
10
# Modified to make a template file for a multi-binary package with separated
11
# build-arch and build-indep targets by Bill Allombert 2001
13
# Uncomment this to turn on verbose mode.
16
# This has to be exported to make some magic below work.
19
DEB_HOST_ARCH := $(shell dpkg-architecture -qDEB_HOST_ARCH)
21
ifeq ($(DEB_HOST_ARCH),amd64)
22
GTM_DIST = /opt/lsb-gtm/V5.3-004_x86_64
24
GTM_DIST = /opt/lsb-gtm/V5.3-004_i686
29
configure: configure-stamp
32
# Add here commands to configure the package.
38
build: build-arch build-indep
40
build-arch: build-arch-stamp
41
build-arch-stamp: configure-stamp
42
cd src/libopenvista && gtm_dist="$(GTM_DIST)" ./compile.sh
43
cd src/gtmsignal && ./compile.sh
46
build-indep: build-indep-stamp
47
build-indep-stamp: configure-stamp
49
# Add here commands to compile the indep part of the package.
56
rm -f build-arch-stamp build-indep-stamp configure-stamp
58
rm -f src/libopenvista/libopenvista.so
59
rm -f src/libopenvista/openvista.xc
60
rm -f src/gtmsignal/gtmsignal
64
install: install-indep install-arch
71
# Add here commands to install the indep part of the package into
72
# debian/<package>-doc.
83
install COPYING.AGPL debian/openvista-libs-5.3004/usr/share/doc/openvista-libs-5.3004/AGPL
85
mkdir -p debian/openvista-libs-5.3004$(GTM_DIST)
87
install src/libopenvista/libopenvista.so debian/openvista-libs-5.3004$(GTM_DIST)
88
install -m 644 src/libopenvista/openvista.xc debian/openvista-libs-5.3004$(GTM_DIST)
90
install src/gtmsignal/gtmsignal debian/openvista-libs-5.3004$(GTM_DIST)
93
# Must not depend on anything. This is to be called by
94
# binary-arch/binary-indep
95
# in another 'make' thread.
104
# dh_installlogrotate
117
# use group bin for now; will change to group gtm in postinst
118
chown bin:bin debian/openvista-libs-5.3004$(GTM_DIST)/*
119
chmod 440 debian/openvista-libs-5.3004$(GTM_DIST)/*
120
chown root debian/openvista-libs-5.3004$(GTM_DIST)/gtmsignal
121
chmod 4550 debian/openvista-libs-5.3004$(GTM_DIST)/gtmsignal
129
# Build architecture independant packages using the common target.
130
binary-indep: build-indep install-indep
131
$(MAKE) -f debian/rules DH_OPTIONS=-i binary-common
133
# Build architecture dependant packages using the common target.
134
binary-arch: build-arch install-arch
135
$(MAKE) -f debian/rules DH_OPTIONS=-s binary-common
137
binary: binary-arch binary-indep
138
.PHONY: build clean binary-indep binary-arch binary install install-indep install-arch configure