summaryrefslogtreecommitdiffstats
path: root/ubuntu/maverick/applications/wlassistant/debian/rules
blob: 53862cce6b7b5c2b49b832cdd6e9d38ec2a2019e (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
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
#!/usr/bin/make -f

FILENAME = $(DEB_SOURCE_PACKAGE)_$(DEB_UPSTREAM_VERSION).orig.tar.gz
UPFILENAME = $(DEB_SOURCE_PACKAGE)-$(shell echo $(DEB_UPSTREAM_VERSION) | sed 's/~/-/').tar.bz2
URL = http://heanet.dl.sourceforge.net/$(DEB_SOURCE_PACKAGE)/$(UPFILENAME)

include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/rules/simple-patchsys.mk

DEB_CONFIGURE_INCLUDEDIR := /opt/trinity/include/kde
DEB_CONFIGURE_MANDIR := /opt/trinity/share/man
DEB_CONFIGURE_PREFIX := /opt/trinity
DEB_CONFIGURE_INFODIR := /opt/trinity/share/info

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

PATH := /opt/trinity/bin:${PATH}

DEB_SCONS_PREFIX=/opt/trinity

DEB_CONFIGURE_EXTRA_FLAGS := --prefix=/opt/trinity --with-extra-libs=/opt/trinity/lib --with-extra-includes=/opt/trinity/include/kde

CONFIG_STATUS=$(DEB_BUILDDIR)/config.status
SCONS_CMD=scons

common-configure-arch common-configure-indep:: common-configure-impl
common-configure-impl:: $(CONFIG_STATUS)
$(CONFIG_STATUS):
	$(SCONS_CMD) configure prefix=$(DEB_SCONS_PREFIX)
	touch $(CONFIG_STATUS)

common-build-arch common-build-indep:: common-build-impl
common-build-impl::
	$(SCONS_CMD)

common-install-arch common-install-indep:: common-install-impl
common-install-impl::
	DESTDIR=$(DEB_DESTDIR) $(SCONS_CMD) install

install/wlassistant-trinity::
	mv $(CURDIR)/debian/wlassistant-trinity/opt/trinity/share/applnk/Utilities/wlassistant.desktop \
	   $(CURDIR)/debian/wlassistant-trinity/opt/trinity/share/applications/kde/
	rmdir $(CURDIR)/debian/wlassistant-trinity/opt/trinity/share/applnk/Utilities
	rmdir $(CURDIR)/debian/wlassistant-trinity/opt/trinity/share/applnk

clean::
	rm -f $(CONFIG_STATUS)
	rm -rf cache
	rm -rf .sconf_temp
	rm -rf admin
	rm -rf build/
	rm -f bksys/*.pyc
	rm -f generic.cache.py kde.cache.py configure.log
	rm -f scons/*.pyc scons/signatures.dblite

cleanbuilddir common-configure-arch:: 

DEB_INSTALL_MANPAGES_wlassistant-trinity = debian/wlassistant-trinity.manpage

get-orig-source:
	 @@dh_testdir
	 @@[ -d ../tarballs/. ]
	@@echo Downloading $(UPFILENAME) from $(URL) ...
	@@wget -N -nv -T10 -t3 -O ../tarballs/$(UPFILENAME) $(URL)
	@@echo Converting $(UPFILENAME) to $(FILENAME)
	@@bzcat ../tarballs/$(UPFILENAME) | gzip -9 > ../tarballs/$(FILENAME)