File: rules

package info (click to toggle)
cegui-mk2 0.8.7-1.3
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 57,304 kB
  • sloc: cpp: 305,402; python: 1,175; ansic: 788; sh: 608; xml: 191; java: 162; makefile: 39
file content (53 lines) | stat: -rwxr-xr-x 2,867 bytes parent folder | download
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
#!/usr/bin/make -f

include /usr/share/cdbs/1/class/cmake.mk
include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/rules/autoreconf.mk
LDFLAGS+=-llua5.1 -ldl
DEB_CMAKE_EXTRA_FLAGS= -DBoost_INCLUDE_DIR=/usr/include -DCEGUI_BUILD_RENDERER_DIRECTFB=OFF \
			-DCEGUI_SAMPLES_USE_DIRECTFB=OFF -DCEGUI_BUILD_RENDERER_OPENGL=ON \
			-DCEGUI_SAMPLES_USE_OGRE=ON -DCEGUI_BUILD_XMLPARSER_EXPAT=ON \
			-DCEGUI_BUILD_IMAGECODEC_SILLY=ON -DCEGUI_BUILD_IMAGECODEC_DEVIL=ON\
			-DCEGUI_BUILD_IMAGECODEC_FREEIMAGE=ON -DCEGUI_BUILD_RENDERER_NULL=ON \
			-DCEGUI_BUILD_PYTHON_MODULES=ON -DCEGUI_BUILD_XMLPARSER_TINYXML=ON\
			-DCEGUI_BUILD_XMLPARSER_XERCES=ON -DCEGUI_BUILD_RENDERER_OPENGL3=ON \
			-DPYTHON_EXECUTABLE=/usr/bin/python -DPYTHON_INCLUDE_DIR=/usr/include/python2.7

export AUTOMAKE = automake --foreign

common-configure-arch common-configure-indep::
	cd $(DEB_SRCDIR) && \
	  if ! test -f aclocal.m4 ; then touch aclocal.m4 ; fi

clean::
	rm -f $(DEB_SRCDIR)/bin/Demo6 $(DEB_SRCDIR)/bin/Demo7 $(DEB_SRCDIR)/bin/Demo8 \
	$(DEB_SRCDIR)/bin/DragDropDemo $(DEB_SRCDIR)/bin/FalagardDemo1 \
	$(DEB_SRCDIR)/bin/FirstWindow $(DEB_SRCDIR)/bin/FontDemo $(DEB_SRCDIR)/bin/Minesweeper \
	$(DEB_SRCDIR)/bin/ScrollablePaneDemo $(DEB_SRCDIR)/bin/TabControlDemo  \
	$(DEB_SRCDIR)/bin/TextDemo $(DEB_SRCDIR)/bin/TreeDemo $(DEB_SRCDIR)/bin/InventoryDemo
	rm -f $(DEB_SRCDIR)/config.log $(DEB_SRCDIR)/conftstm.o $(DEB_SRCDIR)/doc/doxygen/doxyfile
	rm -rf $(DEB_SRCDIR)/obj-x86_64-linux-gnu
	rm -rf $(DEB_SRCDIR)/doc/doxygen/html/ $(DEB_SRCDIR)/doc/doxygen/doxygen_sqlite3.db

install/libcegui-mk2-doc::
	doxygen doc/doxygen/doxyfile.in
	cp -rf $(DEB_SRCDIR)/doc/doxygen/html/ \
	$(DEB_SRCDIR)/debian/libcegui-mk2-doc/usr/share/doc/libcegui-mk2-0.8.7/
	rm -f $(DEB_SRCDIR)/debian/libcegui-mk2-docc/usr/share/doc/libcegui-mk2-0.8.7/html/jquery.js
	#These rules are deleting duplicated fonts.
	rm -f $(DEB_SRCDIR)/debian/libcegui-mk2-doc/usr/share/cegui-0.8.7/fonts/DejaVuSans.ttf  \
	      $(DEB_SRCDIR)/debian/libcegui-mk2-doc/usr/share/cegui-0.8.7/fonts/DejaVuSerif.ttf \
	      $(DEB_SRCDIR)/debian/libcegui-mk2-doc/usr/share/cegui-0.8.7/fonts/Junicode.ttf \
	      $(DEB_SRCDIR)/debian/libcegui-mk2-doc/usr/share/cegui-0.8.7/fonts/Jura-DemiBold.ttf \
	      $(DEB_SRCDIR)/debian/libcegui-mk2-doc/usr/share/cegui-0.8.7/fonts/Jura-Light.ttf \
	      $(DEB_SRCDIR)/debian/libcegui-mk2-doc/usr/share/cegui-0.8.7/fonts/Jura-Medium.ttf \
	      $(DEB_SRCDIR)/debian/libcegui-mk2-doc/usr/share/cegui-0.8.7/fonts/batang.ttf

#common-install-arch::
#	for file in debian/tmp/usr/lib/*.la; do \
#	sed -i "/dependency_libs/ s/'.*'/''/" $$file ; \
#	done

#DEB_CONFIGURE_EXTRA_FLAGS := --enable-lua-module=yes --enable-toluacegui=no \
                             --with-default-xml-parser=TinyXMLParser --enable-null-renderer
DEB_DH_INSTALL_SOURCEDIR   := $(DEB_SRCDIR)/debian/tmp