summaryrefslogtreecommitdiffstats
path: root/ubuntu/lucid_automake/applications/kdesvn/debian/rules
blob: 3ca36df631fb12eef1eb17b41b4baa60e700ba8b (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
#!/usr/bin/make -f

PATH := /opt/kde3/bin:$(PATH)
  
include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/cmake.mk
include /usr/share/cdbs/1/rules/utils.mk
include /usr/share/cdbs/1/rules/patchsys-quilt.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)

DEB_CMAKE_EXTRA_FLAGS := -DLIB_SUFFIX="" -DCMAKE_LIBRARY_PATH="/opt/kde3/lib" -DCMAKE_INCLUDE_PATH="/opt/kde3/include/tde" -DCMAKE_CXX_FLAGS="-I/opt/kde3/include/tde" -DCMAKE_LDFLAGS="-L/opt/kde3/lib"

DEB_COMPRESS_EXCLUDE := .dcl .docbook -license .tag .sty .el

DEB_DH_MAKESHLIBS_ARGS_libsvnqt4 := -V

# Tell dh_shlibdeps where to find our own libs.
DEB_SHLIBDEPS_INCLUDE := debian/tmp/opt/kde3/lib

common-install-impl::
	mkdir -p debian/tmp/opt/kde3
	mkdir -p debian/tmp/opt/kde3/include/tde
	mkdir -p debian/tmp/usr/lib
	mkdir -p debian/tmp/opt/kde3/lib
	mkdir -p debian/tmp/usr/lib/kde3
	mkdir -p debian/tmp/usr/lib64/kde3
	touch debian/tmp/usr/lib/kde3/removeme
	touch debian/tmp/usr/lib64/kde3/removeme
	mv debian/tmp/usr/lib/kde3/* debian/tmp/usr/lib/
	mv debian/tmp/usr/lib64/kde3/* debian/tmp/usr/lib64/
	rm -rf debian/tmp/usr/lib/kde3
	rm -rf debian/tmp/usr/lib64/kde3
	cp -Rp debian/tmp/usr/bin debian/tmp/opt/kde3/
	cp -Rp debian/tmp/usr/lib/* debian/tmp/opt/kde3/lib/
	cp -Rp debian/tmp/usr/lib64/* debian/tmp/opt/kde3/lib/
	cp -Rp debian/tmp/usr/share debian/tmp/opt/kde3/
	cp -Rp debian/tmp/usr/include/* debian/tmp/opt/kde3/include/tde/
	rm -rf debian/tmp/usr/bin
	rm -rf debian/tmp/usr/lib/kde3
	rm -rf debian/tmp/usr/lib64/kde3
	rm -rf debian/tmp/usr/share
	rm -rf debian/tmp/usr/include
	rm -rf debian/tmp/opt/kde3/lib/removeme