2000-09-09 22:10:08 -04:00
|
|
|
#!/usr/bin/make -f
|
|
|
|
|
2001-08-01 08:30:48 -04:00
|
|
|
export DH_COMPAT=3
|
2000-09-09 22:10:08 -04:00
|
|
|
|
|
|
|
majorname = $(shell grep library_names src/libraw1394.la | cut -d"'" -f 2 | cut -d" " -f 2)
|
|
|
|
fullversionname = $(shell grep library_names src/libraw1394.la | cut -d"'" -f 2 | cut -d" " -f 1)
|
|
|
|
|
2001-08-01 08:30:48 -04:00
|
|
|
major = 5
|
2000-12-11 19:28:06 -05:00
|
|
|
libraw = libraw1394-$(major)
|
2000-09-09 22:10:08 -04:00
|
|
|
|
2001-08-01 08:30:48 -04:00
|
|
|
# maintainer files for the so package (of the name $(libraw))
|
|
|
|
somaint = postinst config templates
|
|
|
|
|
2000-11-23 17:55:47 -05:00
|
|
|
|
2000-09-09 22:10:08 -04:00
|
|
|
build: build-stamp
|
|
|
|
build-stamp:
|
|
|
|
dh_testdir
|
|
|
|
|
2001-08-01 08:30:48 -04:00
|
|
|
./configure --prefix=/usr --mandir=\$${prefix}/share/man
|
2000-09-09 22:10:08 -04:00
|
|
|
$(MAKE)
|
|
|
|
|
2003-07-12 21:12:19 -04:00
|
|
|
$(MAKE) -C doc libraw1394.pdf
|
|
|
|
|
2000-09-09 22:10:08 -04:00
|
|
|
touch build-stamp
|
|
|
|
|
2001-08-01 08:30:48 -04:00
|
|
|
clean:
|
2000-09-09 22:10:08 -04:00
|
|
|
dh_testdir
|
|
|
|
dh_testroot
|
2001-08-01 08:30:48 -04:00
|
|
|
rm -f build-stamp $(somaint:%=debian/$(libraw).%)
|
2000-09-09 22:10:08 -04:00
|
|
|
|
|
|
|
-$(MAKE) distclean
|
|
|
|
|
|
|
|
dh_clean
|
|
|
|
|
|
|
|
install: build
|
|
|
|
dh_testdir
|
|
|
|
dh_testroot
|
|
|
|
dh_clean -k
|
|
|
|
dh_installdirs
|
|
|
|
|
|
|
|
$(MAKE) install prefix=`pwd`/debian/tmp/usr
|
|
|
|
|
|
|
|
binary-indep: build install
|
|
|
|
# Nothing to do here
|
|
|
|
|
2001-08-01 08:30:48 -04:00
|
|
|
binary-arch: build install
|
2000-09-09 22:10:08 -04:00
|
|
|
dh_testdir
|
|
|
|
dh_testroot
|
|
|
|
|
2001-08-01 08:30:48 -04:00
|
|
|
for i in $(somaint); do \
|
|
|
|
ln -sf libraw1394.$$i.in debian/$(libraw).$$i; \
|
|
|
|
done
|
|
|
|
|
2000-12-11 19:28:06 -05:00
|
|
|
dh_movefiles -p$(libraw) \
|
2000-09-09 22:10:08 -04:00
|
|
|
usr/lib/$(majorname) \
|
|
|
|
usr/lib/$(fullversionname)
|
|
|
|
|
2001-08-01 08:30:48 -04:00
|
|
|
dh_movefiles -plibraw1394-dev \
|
|
|
|
usr/lib \
|
|
|
|
usr/bin \
|
|
|
|
usr/include/libraw1394 \
|
|
|
|
usr/share/aclocal/libraw1394.m4
|
|
|
|
|
|
|
|
dh_installman
|
2001-05-24 18:10:45 -04:00
|
|
|
dh_installdocs
|
2000-09-09 22:10:08 -04:00
|
|
|
dh_installchangelogs
|
2001-08-01 08:30:48 -04:00
|
|
|
dh_installdebconf
|
2000-09-09 22:10:08 -04:00
|
|
|
dh_strip
|
|
|
|
dh_compress
|
|
|
|
dh_fixperms
|
2001-05-28 12:13:48 -04:00
|
|
|
dh_makeshlibs -V
|
2000-09-09 22:10:08 -04:00
|
|
|
dh_installdeb
|
2001-08-01 08:30:48 -04:00
|
|
|
LD_PRELOAD='' dh_shlibdeps -v -ldebian/$(libraw)/usr/lib
|
2000-09-09 22:10:08 -04:00
|
|
|
dh_gencontrol
|
|
|
|
dh_md5sums
|
|
|
|
dh_builddeb
|
|
|
|
|
|
|
|
binary: binary-indep binary-arch
|
|
|
|
.PHONY: build clean binary-indep binary-arch binary install
|