summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexey Dokuchaev <danfe@FreeBSD.org>2019-03-13 09:04:54 +0000
committerAlexey Dokuchaev <danfe@FreeBSD.org>2019-03-13 09:04:54 +0000
commit59e117564dbf94f18b737fcef18b27024baf5752 (patch)
tree0738bac133d400b36a7d76da57b14e1e3283a820
parent- Add LICENSE (diff)
- Installing LibREDasm.so as a normal library and setting USE_LDCONFIG
flag was bogus, because the port builds with CMAKE_INSTALL_RPATH set to "." and the library filename itself is non-standard, so make that path absolute, $cwd-agnostic one instead (${PREFIX}/lib) - Ensure that correct Git hash is displayed in program windows' titles
Notes
Notes: svn path=/head/; revision=495570
-rw-r--r--devel/redasm/Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/devel/redasm/Makefile b/devel/redasm/Makefile
index 8988a749618f..c303277907ee 100644
--- a/devel/redasm/Makefile
+++ b/devel/redasm/Makefile
@@ -4,6 +4,7 @@
PORTNAME= redasm
PORTVERSION= 2.0
DISTVERSIONPREFIX= v
+PORTREVISION= 1
CATEGORIES= devel
MAINTAINER= danfe@FreeBSD.org
@@ -13,7 +14,6 @@ LICENSE= GPLv3
USES= cmake compiler:c++11-lang qt:5
USE_QT= buildtools_build qmake_build core gui network webengine
-USE_LDCONFIG= yes
USE_GITHUB= yes
GH_ACCOUNT= REDasmOrg
@@ -27,6 +27,9 @@ PLIST_FILES= bin/REDasm lib/LibREDasm.so
post-patch:
@${REINPLACE_CMD} -e 's,formats\.size(),formatsCount,' \
${WRKSRC}/mainwindow.cpp
+ @${REINPLACE_CMD} -e '/Git/s,find_package,#&, ; \
+ /CMAKE_INSTALL_RPATH/s,\.,${PREFIX}/lib, ; \
+ s|unknown|b47ed30|' ${WRKSRC}/CMakeLists.txt
do-install:
${INSTALL_PROGRAM} ${BUILD_WRKSRC}/REDasm ${STAGEDIR}${PREFIX}/bin