1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66
|
#!/usr/bin/make -f
# Copyright 2003 Goedson Teixeira Paixao <goedson@debian.org>
# Copyright 2006-2008 Neil Williams <linux@codehelp.co.uk>
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License as
# published by the Free Software Foundation; either version 2, or (at
# your option) any later version.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
# 02110-1301, USA.
include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/autotools.mk
# backends do not need ldconfig (anymore)
DEB_DH_MAKESHLIBS_ARGS=-Xlibqof2-backend
DEB_DH_MAKESHLIBS_ARGS_libqof2-backend-qsf=-n
DEB_DH_MAKESHLIBS_ARGS_libqof2-backend-sqlite=-n
DEB_DH_MAKESHLIBS_ARGS_libqof2-backend-gda=-n
# multiarch
DEB_CONFIGURE_EXTRA_FLAGS += --libdir=\$${prefix}/lib/$(DEB_HOST_MULTIARCH)
ifneq ($(DEB_BUILD_GNU_TYPE),$(DEB_HOST_GNU_TYPE))
# internal libraries need to be redirected to foreign version
DEB_MAKE_INVOKE+="QOF_LIBS=-L/usr/lib/$(DEB_HOST_MULTIARCH) -lqof"
# prevent CDBS overwriting CC
DEB_CONFIGURE_SCRIPT_ENV =
# Emdebian-specific customisation
DEB_CONFIGURE_EXTRA_FLAGS += --disable-gdasql --disable-gdabackend
# enable dpkg-shlibdeps to find the internal libraries.
DEB_SHLIBDEPS_INCLUDE_libqof2 = ./debian/tmp/usr/lib/
build/libqof2::
cp qof.symbols debian/libqof2.symbols
cat qofsql.symbols >> debian/libqof2.symbols
$(RM) doc/html/jquery.js
clean/libqof2::
$(RM) debian/libqof2.symbols
else
# GDA backend isn't ready.
#DEB_CONFIGURE_EXTRA_FLAGS += --enable-gdabackend
DEB_CONFIGURE_EXTRA_FLAGS += --disable-gdasql
ifeq (,$(findstring nocheck,$(DEB_BUILD_OPTIONS)))
DEB_MAKE_CHECK_TARGET = check
endif
build/libqof2::
cp qof.symbols debian/libqof2.symbols
cat qofsql.symbols >> debian/libqof2.symbols
$(RM) doc/html/jquery.js
clean/libqof2::
$(RM) debian/libqof2.symbols
endif
|