summaryrefslogtreecommitdiff
path: root/cad/solvespace
diff options
context:
space:
mode:
authorplunky <plunky@pkgsrc.org>2017-12-21 11:48:41 +0000
committerplunky <plunky@pkgsrc.org>2017-12-21 11:48:41 +0000
commitcaba32fdee6f0fb0ceda15c4ee1e0e22a381e90c (patch)
treed393a377c103ed222d4a1e6c62a913f914b0d63a /cad/solvespace
parent5f947e80dab80fff469b760998623f1ec846ff96 (diff)
downloadpkgsrc-caba32fdee6f0fb0ceda15c4ee1e0e22a381e90c.tar.gz
fix incorrect path in desktop file (reported by Mustafa Dogan)
Diffstat (limited to 'cad/solvespace')
-rw-r--r--cad/solvespace/Makefile9
1 files changed, 8 insertions, 1 deletions
diff --git a/cad/solvespace/Makefile b/cad/solvespace/Makefile
index f3e5705359a..117b77c7e17 100644
--- a/cad/solvespace/Makefile
+++ b/cad/solvespace/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.2 2017/12/21 08:40:06 plunky Exp $
+# $NetBSD: Makefile,v 1.3 2017/12/21 11:48:41 plunky Exp $
#
#
# Both of these hashes need to be updated when the solvespace version
@@ -13,6 +13,7 @@ LIBDXF_HASH= 8f958955f54668c142ded760dc951ffd16d9c71b
SOLVESPACE_HASH= 7c1ca460769fc8cbef26d296338d4bbc6f2ef6d0
DISTNAME= solvespace-2.3
+PKGREVISION= 1
CATEGORIES= cad
MASTER_SITES= http://github.com/solvespace/solvespace/archive/
DIST_SUBDIR= ${PKGNAME_NOREV}
@@ -36,6 +37,12 @@ USE_CMAKE= yes
CMAKE_ARGS+= -DGIT_COMMIT_HASH=${SOLVESPACE_HASH}
+SUBST_CLASSES+= desktop
+SUBST_STAGE.desktop= post-patch
+SUBST_MESSAGE.desktop= Fixing absolute path in desktop file
+SUBST_FILES.desktop= src/unix/solvespace.desktop
+SUBST_SED.desktop= -e "s,/usr/bin,${PREFIX}/bin,"
+
SUBST_CLASSES+= libdxfrw
SUBST_STAGE.libdxfrw= post-patch
SUBST_MESSAGE.libdxfrw= Set libdxfrw directory