1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-28 10:08:24 +00:00
freebsd-ports/devel/redasm/Makefile
Alexey Dokuchaev 59e117564d - 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
2019-03-13 09:04:54 +00:00

39 lines
1.0 KiB
Makefile

# Created by: Alexey Dokuchaev <danfe@FreeBSD.org>
# $FreeBSD$
PORTNAME= redasm
PORTVERSION= 2.0
DISTVERSIONPREFIX= v
PORTREVISION= 1
CATEGORIES= devel
MAINTAINER= danfe@FreeBSD.org
COMMENT= Interactive, multiarchitecture disassembler
LICENSE= GPLv3
USES= cmake compiler:c++11-lang qt:5
USE_QT= buildtools_build qmake_build core gui network webengine
USE_GITHUB= yes
GH_ACCOUNT= REDasmOrg
GH_PROJECT= REDasm
GH_TUPLE= REDasmOrg:REDasm-Library:2059871:libra/LibREDasm \
Dax89:QHexView:e96ea40:qhv/QHexView \
aquynh:capstone:4948fd1:cs/LibREDasm/depends/capstone
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
${INSTALL_LIB} ${BUILD_WRKSRC}/LibREDasm.so ${STAGEDIR}${PREFIX}/lib
.include <bsd.port.mk>