summaryrefslogtreecommitdiffstats
path: root/ubuntu/maverick_automake/applications/abakus/debian/rules
blob: c5622a9ec49460823098023b52ba5a80ab419754 (plain)
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
#!/usr/bin/make -f

include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/langcore.mk

DEB_CONFIGURE_INCLUDEDIR := /opt/kde3/include/tde
DEB_CONFIGURE_MANDIR := /opt/kde3/share/man
DEB_CONFIGURE_PREFIX := /opt/kde3
DEB_CONFIGURE_INFODIR := /opt/kde3/share/info

cdbs_configure_flags := --with-qt-dir=/usr/share/qt3 --disable-rpath --with-xinerama $(cdbs_kde_enable_final) $(cdbs_kde_enable_debug)

SCONS = scons --no-cache -Q
DEB_INSTALL_DOCS_ALL =
DEB_COMPRESS_EXCLUDE = .docbook

debian/abakus.xpm: src/hi64-app-abakus.png
	convert -resize 32 $< $@

common-build-arch:: build-stamp
build-stamp: debian/abakus.xpm 
	env PATH=/opt/kde3/bin:$(PATH) QTDIR=/usr/share/qt3 CMAKE_LIBRARY_PATH=/opt/kde3/lib CMAKE_INCLUDE_PATH=/opt/kde3/include/tde $(SCONS) configure prefix=$(DEB_DESTDIR)/opt/kde3
	env PATH=/opt/kde3/bin:$(PATH) QTDIR=/usr/share/qt3 CMAKE_LIBRARY_PATH=/opt/kde3/lib CMAKE_INCLUDE_PATH=/opt/kde3/include/tde $(SCONS)
	touch build-stamp

common-install-arch::
	env PATH=/opt/kde3/bin:$(PATH) QTDIR=/usr/share/qt3 CMAKE_LIBRARY_PATH=/opt/kde3/lib CMAKE_INCLUDE_PATH=/opt/kde3/include/tde $(SCONS) install
	install -D -m 644 debian/abakus.xpm debian/abakus-kde3/opt/kde3/share/pixmaps/abakus.xpm
	chrpath -d debian/abakus-kde3/opt/kde3/bin/abakus
	dh_icons -pabakus

clean::
	#env PATH=/opt/kde3/bin:$(PATH) QTDIR=/usr/share/qt3 CMAKE_LIBRARY_PATH=/opt/kde3/lib CMAKE_INCLUDE_PATH=/opt/kde3/include/tde $(SCONS) --clean
	rm -f debian/abakus.xpm
	rm -rf cache
	rm -rf .sconf_temp
	rm -f bksys/generic.pyc
	rm -f bksys/abakus.pyc
	rm -f bksys/help.pyc
	rm -f bksys/kde.pyc
	rm -f config.log