debian swirl logo

Back to the packages list gnuift

#!/usr/bin/make -f
# rules
#
# Robert Jordens 
#
# This software may be used and distributed according to the terms
# of the GNU General Public License, incorporated herein by reference.
#
# $Id: rules 158 2003-09-15 14:53:01Z rj $
#

# Fix for existant, but inaccessible home directory.
HOME := $(shell pwd)/nonexistant
export HOME

include /usr/share/cdbs/1/class/makefile.mk
DEB_UPSTREAM_VERSION := $(shell echo $(DEB_VERSION) | sed 's/-[^-]*$$//')
DEB_UPSTREAM_TARBALL_VERSION := $(shell echo $(DEB_UPSTREAM_VERSION) | sed 's/\+[^+]*$$//')
DEB_TAR_SRCDIR := gift-$(DEB_UPSTREAM_TARBALL_VERSION)
include /usr/share/cdbs/1/rules/tarball.mk
include /usr/share/cdbs/1/rules/simple-patchsys.mk
include /usr/share/cdbs/1/class/autotools.mk
include /usr/share/cdbs/1/rules/debhelper.mk

ifneq (,$(findstring parallel,$(DEB_BUILD_OPTIONS)))
	PARALLEL_JOBS := $(shell echo $(DEB_BUILD_OPTIONS) | \
		sed -e 's/.*parallel= \([0-9]\+\).*/\1/')
		ifeq ($(DEB_BUILD_OPTIONS),$(PARALLEL_JOBS))
		PARALLEL_JOBS := $(shell if [ -f /proc/cpuinfo ]; \
				then echo `cat /proc/cpuinfo | grep 'processor' | wc -l`; \
				else echo 1; fi)
		endif
	NJOBS := -j$(PARALLEL_JOBS)
endif
DEB_MAKE_ENVVARS := MAKEFLAGS=$(NJOBS) LIBRARY_PATH=$(CURDIR)/debian/tmp/usr/lib

DEB_CONFIGURE_EXTRA_FLAGS := --enable-shared=yes --enable-static=yes \
		--enable-set-web-publishing-directory=/var/www/gnuift \
		--enable-set-web-publishing-location=http://localhost/gnuift \
		--enable-bayesian --enable-multi-threading

DEB_DH_MAKESHLIBS_ARGS := -V
DEB_SHLIBDEPS_INCLUDE := debian/libgnuift0c2a/usr/lib debian/libmrml1c2a/usr/lib
DEB_PERL_INCLUDE := debian/gnuift/usr/bin debian/gnuift-perl/usr/share/perl5/GIFT debian/gnuift-perl/usr/share/gnuift debian/gnuift/usr/share/gnuift

DEB_INSTALL_DOCS_ALL := $(shell cat debian/docs)
DEB_INSTALL_CHANGELOGS_ALL := $(DEB_BUILDDIR)/ChangeLog

post-patches:: debian/stamp-autotools-maintregen-arch
debian/stamp-autotools-maintregen-arch:
		cd $(DEB_BUILDDIR); sh ./bootstrap-cvs.sh ; \
			cp /usr/bin/libtool $(DEB_BUILDDIR); \
			libtoolize --force --copy --install
		touch debian/stamp-autotools-maintregen-arch

build/gnuift::
		docbook-to-man debian/gnuift.sgml > debian/gnuift.1

# after the directories are created but before dh_compress is run.
common-binary-post-install-arch::
		dh_buildinfo

.PHONY: update-create-orig-tarball
update-create-orig-tarball:
		mkdir -p tmp-orig-tree/$(DEB_SOURCE_PACKAGE)-$(DEB_UPSTREAM_VERSION).orig
		cp *.tar.* tmp-orig-tree/$(DEB_SOURCE_PACKAGE)-$(DEB_UPSTREAM_VERSION).orig
		tar -C tmp-orig-tree -czvf \
			../$(DEB_SOURCE_PACKAGE)_$(DEB_UPSTREAM_VERSION).orig.tar.gz \
			$(DEB_SOURCE_PACKAGE)-$(DEB_UPSTREAM_VERSION).orig

.PHONY: update-clean
update-clean:
		rm -rf tmp-orig-tree

clean:: update-clean

clean::
		-rm -f Doc/*.txt Doc/*.tex GIFTServer/gift-mrml-messages/*.mrml \
		       dtd/mrml-parsing-log debian/gnuift.1 
		-rm -rf Doc/autoDoc
		-rm -f debian/stamp-autotools-maintregen-arch

Builds:

gnuift-doc
documentation for gnuift
gnuift
gnu image finding tool - index and search images by content
gnuift-perl
gnu image finding tool - perl modules
libgnuift0c2a
gnu image finding tool - libraries
libgnuift0-dev
libgnuift development files
libmrml1c2a
multimedia retrieval markup language
libmrml1-dev
libmrml development files