Description: Change rpath and library path
libtmw doesn't have correct rpath. We add rpath for it.
Also we want to install libraries to /usr/lib/tiled so we made some changes
to the libpath.
Author: Ying-Chun Liu (PaulLiu) <paulliu@debian.org>
Last-Update: 2011-02-07
---
Index: tiled-qt-0.8.0/src/tiled/tiled.pro
===================================================================
--- tiled-qt-0.8.0.orig/src/tiled/tiled.pro 2011-12-12 05:49:29.000000000 +0800
+++ tiled-qt-0.8.0/src/tiled/tiled.pro 2011-12-16 23:38:17.982211073 +0800
@@ -25,7 +25,7 @@
# Make sure the Tiled executable can find libtiled
!win32:!macx {
- QMAKE_RPATHDIR += \$\$ORIGIN/../lib
+ QMAKE_RPATHDIR += \$\$ORIGIN/../lib/tiled
# It is not possible to use ORIGIN in QMAKE_RPATHDIR, so a bit manually
QMAKE_LFLAGS += -Wl,-z,origin \'-Wl,-rpath,$$join(QMAKE_RPATHDIR, ":")\'
Index: tiled-qt-0.8.0/src/plugins/plugin.pri
===================================================================
--- tiled-qt-0.8.0.orig/src/plugins/plugin.pri 2011-12-12 05:49:29.000000000 +0800
+++ tiled-qt-0.8.0/src/plugins/plugin.pri 2011-12-16 23:38:17.982211073 +0800
@@ -30,7 +30,7 @@
# Set rpath so that the plugin will resolve libtiled correctly
!win32:!macx {
- QMAKE_RPATHDIR += \$\$ORIGIN/../..
+ QMAKE_RPATHDIR += \$\$ORIGIN/..
# It is not possible to use ORIGIN in QMAKE_RPATHDIR, so a bit manually
QMAKE_LFLAGS += -Wl,-z,origin \'-Wl,-rpath,$$join(QMAKE_RPATHDIR, ":")\'
Index: tiled-qt-0.8.0/src/tmxviewer/tmxviewer.pro
===================================================================
--- tiled-qt-0.8.0.orig/src/tmxviewer/tmxviewer.pro 2011-12-12 05:49:29.000000000 +0800
+++ tiled-qt-0.8.0/src/tmxviewer/tmxviewer.pro 2011-12-16 23:38:17.982211073 +0800
@@ -22,7 +22,7 @@
# Make sure the executable can find libtiled
!win32:!macx {
- QMAKE_RPATHDIR += \$\$ORIGIN/../lib
+ QMAKE_RPATHDIR += \$\$ORIGIN/../lib/tiled
# It is not possible to use ORIGIN in QMAKE_RPATHDIR, so a bit manually
QMAKE_LFLAGS += -Wl,-z,origin \'-Wl,-rpath,$$join(QMAKE_RPATHDIR, ":")\'