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/dilos/core/tdegraphics/debian/rules

50 lines
1.8 KiB

#!/usr/bin/make -f
# Set LD_LIBRARY_PATH to the installed library directory to allow dh_shlibdeps to function
# Also include the main Trinity path
ifeq ("$(LD_LIBRARY_PATH)", "")
LD_LIBRARY_PATH=debian/tmp/usr/lib
else
LD_LIBRARY_PATH += :debian/tmp/usr/lib
endif
export LD_LIBRARY_PATH
include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/cmake.mk
include debian/cdbs/debian-tde.mk
DEB_CMAKE_EXTRA_FLAGS := \
-DLIB_SUFFIX="" \
-DCMAKE_INSTALL_PREFIX="/usr" \
-DCONFIG_INSTALL_DIR="/etc/trinity" \
-DSYSCONF_INSTALL_DIR="/etc/trinity" \
-DXDG_MENU_INSTALL_DIR="/etc/xdg/menus" \
-DCMAKE_LIBRARY_PATH="/usr/lib" \
-DCMAKE_INCLUDE_PATH="/usr/include/" \
-DCMAKE_VERBOSE_MAKEFILE="ON" \
-DCMAKE_SKIP_RPATH="OFF" \
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
-DBUILD_ALL="ON" \
-DWITH_ALL_OPTIONS="ON" \
-DCMAKE_C_COMPILER=gcc \
-DLIB_SUFFIX="/$(DEB_HOST_MULTIARCH)"
DEB_DH_STRIP_ARGS := --dbg-package=tdegraphics-trinity-dbg \
-Xkcm_kgamma.so -Xxf86gammacfg -Xlibtext2path.so.0.0.0 \
-Xlibksvgrendererlibart.so
PACKAGES_WITH_LIBS := kfaxview-trinity kghostview-trinity kpovmodeler-trinity ksvg-trinity \
kuickshow-trinity kview-trinity kviewshell-trinity libkscan1-trinity
DEB_DH_MAKESHLIBS_ARGS_kghostview-trinity := -V'kghostview-trinity (>= 4:3.5.5-1)'
DEB_DH_MAKESHLIBS_ARGS_kpovmodeler-trinity := -V'kpovmodeler-trinity (>= 4:3.5.5-1)'
DEB_DH_MAKESHLIBS_ARGS_ksvg-trinity := -V'ksvg-trinity (>= 4:3.5.5-1)'
DEB_DH_MAKESHLIBS_ARGS_kview-trinity := -V'kview-trinity (>= 4:3.5.5-1)'
DEB_DH_MAKESHLIBS_ARGS_kviewshell-trinity := -V'kviewshell-trinity (>= 4:3.5.5-1)'
DEB_DH_MAKESHLIBS_ARGS_libkscan1-trinity := -V'libkscan1-trinity (>= 4:3.5.5-1)'
binary-post-install/kuickshow-trinity::
ifeq ($(DEB_HOST_ARCH), powerpc)
chrpath -d -k debian/kuickshow-trinity/usr/lib/libtdeinit_kuickshow.so
endif