debian swirl logo

Back to the packages list italc

#!/usr/bin/make -f

include /usr/share/dpkg/buildflags.mk
include /usr/share/cdbs/1/class/cmake.mk
include /usr/share/cdbs/1/rules/debhelper.mk

DEB_DH_INSTALL_SOURCEDIR = debian/tmp
CPPFLAGS += -I/usr/include/X11
CFLAGS += -fPIC
GNU_CPU_TYPE:= $(shell dpkg-architecture -qDEB_BUILD_GNU_CPU)
CXXFLAGS += -fPIC -D'BUILD_TYPE=$(GNU_CPU_TYPE)'
DEB_CONFIGURE_EXTRA_FLAGS = --with-linux LDFLAGS=-L/usr/lib/X11
DEB_DH_MAKESHLIBS_ARGS += -V

DEB_CMAKE_NORMAL_ARGS += -DCMAKE_SKIP_RPATH=OFF

DEB_DH_SHLIBDEPS_ARGS_italc-master = -L libItalcCore -l debian/libitalccore/usr/lib/italc
DEB_DH_SHLIBDEPS_ARGS_italc-client = -L libItalcCore -l debian/libitalccore/usr/lib/italc
DEB_DH_SHLIBDEPS_ARGS_italc-management-console = -L libItalcCore -l debian/libitalccore/usr/lib/italc
DEB_DH_SHLIBDEPS_ARGS_libitalccore = -L libItalcCore -l debian/libitalccore/usr/lib/italc

debian/italc.xpm: ima/data/italc.png
		convert -resize 32 $< $@

makebuilddir/libitalccore::
		test -d debian/qm.bak/ || ( mkdir -p debian/qm.bak/; find lib/resources/ -name *.qm | while read qm; do cp -av $$qm debian/qm.bak/; done; )

configure/libitalccore::
		cd obj-$(DEB_BUILD_GNU_TYPE) && $(MAKE) finalize-locales

common-install-arch:: debian/italc.xpm
		install -D -m 644 debian/italc.xpm debian/italc-master/usr/share/pixmaps/italc.xpm
		install -D -m 644 debian/config/iTALC.conf.in debian/italc-client/etc/xdg/iTALC\ Solutions/iTALC.conf
		ln -s ../xdg/iTALC\ Solutions/iTALC.conf debian/italc-client/etc/italc/italc.conf

clean::
		find debian/qm.bak/*.qm | while read qm; do cp -av $$qm lib/resources/; done
		rm -Rf debian/qm.bak/
		rm -f debian/italc.xpm
		rm -f lupus/config.log
		rm -f lupus/config.status
		rm -f config.log
		rm -f config.status

Builds:

italc-client
intelligent teaching and learning with computers - client
italc-management-console
intelligent teaching and learning with computers - management console
italc-master
intelligent teaching and learning with computers - master
libitalccore
intelligent teaching and learning with computers - libraries