summaryrefslogtreecommitdiff
path: root/devel/radare2-cutter/Makefile
blob: ed68cec90a5d7899b58302ae250e61babd20df5f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# $NetBSD: Makefile,v 1.13 2019/07/20 22:46:16 wiz Exp $

DISTNAME=	cutter-1.8.0
PKGNAME=	radare2-${DISTNAME}
PKGREVISION=	3
CATEGORIES=	devel
MASTER_SITES=	${MASTER_SITE_GITHUB:=radareorg/}
GITHUB_PROJECT=	cutter
GITHUB_TAG=	v${PKGVERSION_NOREV}

MAINTAINER=	pkgsrc-users@NetBSD.org
HOMEPAGE=	https://github.com/radareorg/cutter/
COMMENT=	Qt and C++ GUI for radare2 reverse engineering framework
LICENSE=	gnu-gpl-v3

USE_LANGUAGES=	c c++

USE_CMAKE=	yes
USE_TOOLS+=	gmake pax pkg-config

WRKSRC=	${WRKDIR}/${DISTNAME}/src

CONFIGURE_DIRS=	${WRKDIR}/build
CMAKE_ARG_PATH=	${WRKSRC}

INSTALLATION_DIRS+=	bin share/icons/hicolor/scalable/apps
INSTALLATION_DIRS+=	share/doc/${PKGBASE}

NOT_PAX_MPROTECT_SAFE+=	bin/Cutter

post-extract:
	${RUN} mkdir -p ${WRKDIR}/build

do-install:
	${RUN} cd ${WRKDIR}/build && \
		${INSTALL_PROGRAM} Cutter \
		${DESTDIR}${PREFIX}/bin/Cutter
	${RUN} cd ${WRKSRC} && \
		${INSTALL_DATA} img/cutter.svg \
		${DESTDIR}${PREFIX}/share/icons/hicolor/scalable/apps/cutter.svg
	${RUN} cd ${WRKDIR}/${DISTNAME}/docs && \
		${PAX} -wr * ${DESTDIR}${PREFIX}/share/doc/${PKGBASE}

.include "../../devel/radare2/buildlink3.mk"
.include "../../graphics/hicolor-icon-theme/buildlink3.mk"
.include "../../lang/python/application.mk"
.include "../../x11/qt5-qtbase/buildlink3.mk"
.include "../../x11/qt5-qtsvg/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"