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.
107 lines
4.2 KiB
107 lines
4.2 KiB
14 years ago
|
#!/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/opt/trinity/lib
|
||
|
else
|
||
|
LD_LIBRARY_PATH += :debian/tmp/opt/trinity/lib
|
||
|
endif
|
||
|
export LD_LIBRARY_PATH
|
||
|
|
||
|
include /usr/share/cdbs/1/rules/debhelper.mk
|
||
|
include /usr/share/cdbs/1/class/cmake.mk
|
||
11 years ago
|
#include /usr/share/cdbs/1/rules/patchsys-quilt.mk
|
||
14 years ago
|
include /usr/share/cdbs/1/rules/utils.mk
|
||
|
|
||
11 years ago
|
DEB_CMAKE_EXTRA_FLAGS := \
|
||
|
-DLIB_SUFFIX="" \
|
||
|
-DCMAKE_INSTALL_PREFIX="/opt/trinity" \
|
||
|
-DCONFIG_INSTALL_DIR="/etc/trinity" \
|
||
|
-DSYSCONF_INSTALL_DIR="/etc/trinity" \
|
||
|
-DXDG_MENU_INSTALL_DIR="/etc/xdg/menus" \
|
||
|
-DCMAKE_LIBRARY_PATH="/opt/trinity/lib" \
|
||
|
-DCMAKE_INCLUDE_PATH="/opt/trinity/include/" \
|
||
|
-DCMAKE_VERBOSE_MAKEFILE="ON" \
|
||
|
-DCMAKE_SKIP_RPATH="OFF" \
|
||
|
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
|
||
|
-DBUILD_ALL="ON" \
|
||
|
-DWITH_TIFF="ON" \
|
||
|
-DWITH_OPENEXR="ON" \
|
||
|
-DWITH_PDF="ON"
|
||
14 years ago
|
|
||
|
# Honour "parallel=N" option of DEB_BUILD_OPTIONS. Comment out to
|
||
|
# never build in parallel, regardless of DEB_BUILD_OPTIONS.
|
||
|
DEB_BUILD_PARALLEL = true
|
||
|
|
||
13 years ago
|
DEB_DH_STRIP_ARGS := --dbg-package=tdegraphics-trinity-dbg
|
||
14 years ago
|
|
||
12 years ago
|
DEB_DH_BUILDDEB_ARGS += -- -Z$(shell dpkg-deb --help | grep -q ":.* xz[,.]" \
|
||
|
&& echo xz || echo bzip2)
|
||
|
|
||
6 years ago
|
PACKAGES_WITH_LIBS := kfaxview-trinity kghostview-trinity kpovmodeler-trinity ksvg-trinity \
|
||
14 years ago
|
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)
|
||
13 years ago
|
chrpath -d -k debian/kuickshow-trinity/opt/trinity/lib/libtdeinit_kuickshow.so
|
||
14 years ago
|
endif
|
||
|
|
||
|
#shlibs_ver = 4:3.5.0-1
|
||
|
#$(foreach p,$(PACKAGES_WITH_LIBS),$(eval DEB_DH_MAKESHLIBS_ARGS_$(p) := -V'$(p) (>= $(shlibs_ver))'))
|
||
|
|
||
|
binary-post-install/kpdf-trinity::
|
||
12 years ago
|
mv debian/kpdf-trinity/usr/share/man debian/kpdf-trinity/opt/trinity/share/
|
||
14 years ago
|
|
||
|
binary-post-install/kghostview-trinity::
|
||
12 years ago
|
mv debian/kghostview-trinity/usr/share/man debian/kghostview-trinity/opt/trinity/share/
|
||
14 years ago
|
|
||
|
binary-post-install/kcolorchooser-trinity::
|
||
12 years ago
|
mv debian/kcolorchooser-trinity/usr/share/man debian/kcolorchooser-trinity/opt/trinity/share/
|
||
14 years ago
|
|
||
|
binary-post-install/kdvi-trinity::
|
||
12 years ago
|
mv debian/kdvi-trinity/usr/share/man debian/kdvi-trinity/opt/trinity/share/
|
||
14 years ago
|
|
||
|
binary-post-install/kfaxview-trinity::
|
||
12 years ago
|
mv debian/kfaxview-trinity/usr/share/man debian/kfaxview-trinity/opt/trinity/share/
|
||
14 years ago
|
|
||
11 years ago
|
binary-post-install/tdeiconedit-trinity::
|
||
|
mv debian/tdeiconedit-trinity/usr/share/man debian/tdeiconedit-trinity/opt/trinity/share/
|
||
14 years ago
|
|
||
|
binary-post-install/kooka-trinity::
|
||
12 years ago
|
mv debian/kooka-trinity/usr/share/man debian/kooka-trinity/opt/trinity/share/
|
||
14 years ago
|
|
||
|
binary-post-install/kpovmodeler-trinity::
|
||
12 years ago
|
mv debian/kpovmodeler-trinity/usr/share/man debian/kpovmodeler-trinity/opt/trinity/share/
|
||
14 years ago
|
|
||
|
binary-post-install/ksnapshot-trinity::
|
||
12 years ago
|
mv debian/ksnapshot-trinity/usr/share/man debian/ksnapshot-trinity/opt/trinity/share/
|
||
14 years ago
|
|
||
|
binary-post-install/kview-trinity::
|
||
12 years ago
|
mv debian/kview-trinity/usr/share/man debian/kview-trinity/opt/trinity/share/
|
||
14 years ago
|
|
||
|
binary-post-install/kcoloredit-trinity::
|
||
12 years ago
|
mv debian/kcoloredit-trinity/usr/share/man debian/kcoloredit-trinity/opt/trinity/share/
|
||
14 years ago
|
|
||
|
binary-post-install/kfax-trinity::
|
||
12 years ago
|
mv debian/kfax-trinity/usr/share/man debian/kfax-trinity/opt/trinity/share/
|
||
14 years ago
|
|
||
|
binary-post-install/kolourpaint-trinity::
|
||
12 years ago
|
mv debian/kolourpaint-trinity/usr/share/man debian/kolourpaint-trinity/opt/trinity/share/
|
||
14 years ago
|
|
||
|
binary-post-install/kruler-trinity::
|
||
12 years ago
|
mv debian/kruler-trinity/usr/share/man debian/kruler-trinity/opt/trinity/share/
|
||
14 years ago
|
|
||
|
binary-post-install/kuickshow-trinity::
|
||
12 years ago
|
mv debian/kuickshow-trinity/usr/share/man debian/kuickshow-trinity/opt/trinity/share/
|
||
14 years ago
|
|
||
|
binary-post-install/kviewshell-trinity::
|
||
12 years ago
|
mv debian/kviewshell-trinity/usr/share/man debian/kviewshell-trinity/opt/trinity/share/
|