2000-09-09 22:10:08 -04:00
|
|
|
#!/usr/bin/make -f
|
|
|
|
|
|
|
|
export DH_COMPAT=1
|
|
|
|
|
2000-12-11 19:28:06 -05:00
|
|
|
potato-build = no
|
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)
|
|
|
|
major = $(shell echo $(majorname) | cut -d"." -f 3)
|
|
|
|
|
2000-12-11 19:28:06 -05:00
|
|
|
libraw = libraw1394-$(major)
|
2001-05-06 20:03:03 -04:00
|
|
|
source-version = $(shell dpkg-parsechangelog | grep ^Version | cut -d" " -f 2)
|
2000-09-09 22:10:08 -04:00
|
|
|
|
2000-11-23 17:55:47 -05:00
|
|
|
autoclean-files:
|
|
|
|
echo $@ >$@
|
|
|
|
|
2000-09-09 22:10:08 -04:00
|
|
|
build: build-stamp
|
|
|
|
build-stamp:
|
|
|
|
dh_testdir
|
|
|
|
|
|
|
|
./configure --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info
|
|
|
|
$(MAKE)
|
|
|
|
|
|
|
|
touch build-stamp
|
|
|
|
|
2000-11-23 17:55:47 -05:00
|
|
|
clean: autoclean-files
|
2000-09-09 22:10:08 -04:00
|
|
|
dh_testdir
|
|
|
|
dh_testroot
|
|
|
|
rm -f build-stamp
|
|
|
|
|
|
|
|
-$(MAKE) distclean
|
|
|
|
|
|
|
|
dh_clean
|
2000-11-23 20:03:43 -05:00
|
|
|
xargs <autoclean-files rm -f
|
2000-09-09 22:10:08 -04:00
|
|
|
|
|
|
|
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
|
|
|
|
|
2000-11-23 17:55:47 -05:00
|
|
|
binary-arch: build install autoclean-files
|
2000-09-09 22:10:08 -04:00
|
|
|
dh_testdir
|
|
|
|
dh_testroot
|
|
|
|
|
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)
|
|
|
|
|
2000-12-11 19:28:06 -05:00
|
|
|
echo >>autoclean-files \
|
|
|
|
debian/substvars \
|
|
|
|
debian/$(libraw).postinst \
|
|
|
|
debian/$(libraw).substvars
|
|
|
|
|
|
|
|
echo "soversion=$(major)" >>debian/substvars
|
|
|
|
if [ "$(potato-build)" = "yes" ]; then \
|
|
|
|
cp debian/libraw1394-potato.postinst.in \
|
|
|
|
debian/$(libraw).postinst; \
|
|
|
|
echo "makedev-depend=" >>debian/$(libraw).substvars; \
|
|
|
|
else \
|
|
|
|
cp debian/libraw1394.postinst.in \
|
|
|
|
debian/$(libraw).postinst; \
|
2001-05-06 20:03:03 -04:00
|
|
|
echo "makedev-depend=, makedev (>= 2.3.1-49)" \
|
2000-12-11 19:28:06 -05:00
|
|
|
>>debian/$(libraw).substvars; \
|
|
|
|
fi
|
2000-11-23 17:55:47 -05:00
|
|
|
|
2001-05-06 20:03:03 -04:00
|
|
|
echo >>autoclean-files debian/shlibs.local
|
|
|
|
echo >debian/shlibs.local "libraw1394 $(major) $(libraw) (= $(source-version))"
|
|
|
|
|
2000-11-24 21:05:35 -05:00
|
|
|
dh_installdocs README NEWS
|
2000-09-09 22:10:08 -04:00
|
|
|
dh_installchangelogs
|
|
|
|
dh_strip
|
|
|
|
dh_compress
|
|
|
|
dh_fixperms
|
|
|
|
dh_makeshlibs
|
|
|
|
dh_installdeb
|
|
|
|
dh_shlibdeps
|
|
|
|
dh_gencontrol
|
|
|
|
dh_md5sums
|
|
|
|
dh_builddeb
|
|
|
|
|
|
|
|
binary: binary-indep binary-arch
|
|
|
|
.PHONY: build clean binary-indep binary-arch binary install
|