You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tde-packaging/ubuntu/maverick_automake/applications/kdesvn/debian/rules

50 lines
1.8 KiB

#!/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/kde
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/kde" -DCMAKE_CXX_FLAGS="-I/opt/kde3/include/kde" -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/kde
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/kde/
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