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
|
#!/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/simple-patchsys.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 := 3
DEB_DH_INSTALL_SOURCEDIR := debian/tmp
DEB_CONFIGURE_SCRIPT_ENV += LDFLAGS="-Wl,-z,defs -Wl,-O1"
DEB_CONFIGURE_EXTRA_FLAGS += --enable-gtk-doc --with-postgres=$(shell pg_config --includedir) --without-freetds --with-sybase=/usr
DEB_DH_STRIP_ARGS := --dbg-package=libgda2-$(SONAME)
DEB_DH_MAKESHLIBS_ARGS_ALL := -X/usr/lib/libgda/providers
clean::
sed -e 's#@SONAME@#$(SONAME)#g' \
-e 's#@GNOME_TEAM@#$(UPLOADERS)#g' \
debian/control.in >debian/control
binary-install/libgda2-$(SONAME)::
dh_install -plibgda2-$(SONAME) --autodest \
--sourcedir=$(DEB_DH_INSTALL_SOURCEDIR) \
usr/lib/*.so.* usr/lib/libgda/providers/libgda-xml.so
common-binary-post-install-arch::
for i in libgda2-common libgda2-bin libgda2-dev libgda2-$(SONAME)-dbg \
gda2-mysql gda2-odbc gda2-postgres gda2-sqlite \
gda2-sybase; \
do \
rm -rf debian/$$i/usr/share/doc; \
dh_link -p$$i usr/share/doc/libgda2-$(SONAME) usr/share/doc/$$i; \
done
.PHONY: post-patches clean common-binary-post-install-arch
|