3 # Sample debian/rules that uses debhelper.
4 # GNU copyright 1997 to 1999 by Joey Hess.
6 # Uncomment this to turn on verbose mode.
9 # These are used for cross-compiling and for saving the configure script
10 # from having to guess our platform (since we know it already)
11 DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
12 DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
17 ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
22 ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
26 # shared library versions, option 1
29 # option 2, assuming the library is created as src/.libs/libfoo.so.2.0.5 or so
30 #version=`ls src/.libs/lib*.so.* | \
31 # awk '{if (match($$0,/[0-9]+\.[0-9]+\.[0-9]+$$/)) print substr($$0,RSTART)}'`
32 #major=`ls src/.libs/lib*.so.* | \
33 # awk '{if (match($$0,/\.so\.[0-9]+$$/)) print substr($$0,RSTART+4)}'`
35 config.status: configure
37 # Add here commands to configure the package.
38 CFLAGS="$(CFLAGS)" ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info --enable-shared --with-yaz=/usr/bin
42 build-stamp: config.status
45 # Add here commands to compile the package.
55 # Add here commands to clean up after the build process.
57 ifneq "$(wildcard /usr/share/misc/config.sub)" ""
58 cp -f /usr/share/misc/config.sub config.sub
60 ifneq "$(wildcard /usr/share/misc/config.guess)" ""
61 cp -f /usr/share/misc/config.guess config.guess
73 # Add here commands to install the package into debian/tmp
74 $(MAKE) install DESTDIR=$(CURDIR)/debian/tmp
77 # Build architecture-independent files here.
78 binary-indep: build install
79 # We have nothing to do by default.
81 # Build architecture-dependent files here.
82 binary-arch: build install
85 cp LICENSE debian/copyright
86 dh_installdocs -A README
87 dh_installchangelogs NEWS
90 mv debian/tmp/usr/share/doc/yazpp debian/tmp/usr/share/doc/yazpp-doc
108 dh_makeshlibs -V 'libyazpp4 (>= 1.3.1)'
110 dh_shlibdeps -l debian/libyazpp4/usr/lib
115 binary: binary-indep binary-arch
116 .PHONY: build clean binary-indep binary-arch binary install