aboutsummaryrefslogtreecommitdiff
path: root/graphics/darktable
diff options
context:
space:
mode:
authorB. Watson <urchlay@slackware.uk>2023-05-10 01:58:42 -0400
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2023-05-13 19:27:33 +0700
commitc0c5f441779216f00361d3d47645b16f527d0548 (patch)
tree54e10635839663a9872d90ac0905c5850d469130 /graphics/darktable
parent984ddb88667497f500370b2d693c2a3a3d55fa39 (diff)
graphics/darktable: Use cmake rpath support.
Signed-off-by: B. Watson <urchlay@slackware.uk> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'graphics/darktable')
-rw-r--r--graphics/darktable/darktable.SlackBuild7
1 files changed, 6 insertions, 1 deletions
diff --git a/graphics/darktable/darktable.SlackBuild b/graphics/darktable/darktable.SlackBuild
index 925a30cf83d11..2c20db3062c6b 100644
--- a/graphics/darktable/darktable.SlackBuild
+++ b/graphics/darktable/darktable.SlackBuild
@@ -22,11 +22,14 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+# 20230510 bkw: use cmake rpath support, so lensfun03 doesn't need
+# /etc/ld.so.conf.d/ any more.
+
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=darktable
VERSION=${VERSION:-4.2.1}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
# Slackware's lensfun isn't compatible
@@ -87,6 +90,8 @@ find -L . \
mkdir -p build
cd build
cmake \
+ -DCMAKE_INSTALL_RPATH=/opt/$LENSFUN/lib$LIBDIRSUFFIX \
+ -DCMAKE_INSTALL_RPATH_USE_LINK_PATH=ON \
-DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
-DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
-DCMAKE_INSTALL_PREFIX=/usr \