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 67
|
#!/usr/bin/make -f
# -*- Makefile -*-
DISABLE_UPDATE_UPLOADERS := 1
include /usr/share/gnome-pkg-tools/1/rules/uploaders.mk
include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/rules/utils.mk
include /usr/share/cdbs/1/class/gnome.mk
-include /usr/share/gnome-pkg-tools/1/rules/gnome-get-source.mk
GNOME_MODULE := libgda
SONAME := 4
LDFLAGS += -Wl,-z,defs -Wl,--as-needed -Wl,-O1
DEB_DH_MAKESHLIBS_ARGS_ALL += -X /usr/lib/libgda-4.0/providers
DEB_DH_INSTALL_SOURCEDIR := debian/tmp
DEB_MAKE_CHECK_TARGET = check || true
DEB_CONFIGURE_EXTRA_FLAGS += --with-postgres=$(shell pg_config --includedir) \
--without-bdb \
--without-mSQL \
--without-ibmdb2 \
--without-sybase \
--without-tds \
--without-oracle \
--without-firebird \
--without-xbase \
--without-mdb \
--without-ldap \
--without-java \
--enable-system-sqlite
# Only build the docs if this file is present (e.g. when building arch.all packages)
$(DEB_BUILDDIR)/config.status: DEB_CONFIGURE_EXTRA_FLAGS += $(shell if test -f /usr/share/pkgconfig/gtk-doc.pc; then echo "--enable-gtk-doc"; fi)
clean::
sed -e 's#@SONAME@#$(SONAME)#g' \
-e 's#@GNOME_TEAM@#$(UPLOADERS)#g' \
debian/control.in >debian/control
# remove generated files
rm -f libsql/lexer.c
rm -f libsql/parser.c
binary-install/libgda-4.0-common::
# Don't ship our own copy of jquery.js
rm debian/libgda-4.0-common/usr/share/libgda-4.0/web/jquery.js
ln -s ../../javascript/jquery/jquery.js \
debian/libgda-4.0-common/usr/share/libgda-4.0/web/
binary-install/libgda-4.0-bin::
# Remove gda_trml2{html,pdf} from /usr/bin, see GNOME #579458
rm -r debian/libgda-4.0-bin/usr/bin/gda_trml2*
common-binary-post-install-arch::
for i in libgda-4.0-common libgda-4.0-bin libgda-4.0-dev libgda-4.0-$(SONAME)-dbg \
libgda-4.0-mysql libgda-4.0-postgres libgda-4.0-sqlite; \
do \
rm -rf debian/$$i/usr/share/doc; \
dh_link -p$$i usr/share/doc/libgda-4.0-$(SONAME) usr/share/doc/$$i; \
done
binary-predeb/gir1.0-gda-4.0::
dh_girepository -p$(cdbs_curpkg)
.PHONY: clean common-binary-post-install-arch
|