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
50
51
52
53
54
55
56
|
# $NetBSD: Makefile,v 1.6 2016/07/09 13:03:37 wiz Exp $
DISTNAME= bokken-1.8
CATEGORIES= devel
MASTER_SITES= https://inguma.eu/attachments/download/212/
MAINTAINER= khorben@defora.org
HOMEPAGE= http://bokken.re/
COMMENT= Open Source Reverse Code Engineering
LICENSE= gnu-gpl-v2
DEPENDS+= ${PYPKGPREFIX}-graphviz-[0-9]*:../../graphics/py-graphviz
DEPENDS+= ${PYPKGPREFIX}-gtk2-[0-9]*:../../x11/py-gtk2
DEPENDS+= ${PYPKGPREFIX}-gtksourceview-[0-9]*:../../x11/py-gtksourceview
DEPENDS+= ${PYPKGPREFIX}-radare2-[0-9]*:../../devel/py-radare2
DEPENDS+= ${PYPKGPREFIX}-Pillow-[0-9]*:../../graphics/py-Pillow
USE_TOOLS+= pax
NO_BUILD= yes
REPLACE_PYTHON= bokken.py lib/web/utils.py ui/xdot.py
REPLACE_SH= bokken
PYTHON_VERSIONS_INCOMPATIBLE= 34 35 # py-gtk2
SUBST_CLASSES+= bin-bokken
SUBST_STAGE.bin-bokken= post-patch
SUBST_MESSAGE.bin-bokken= Fixing path to bokken.py
SUBST_FILES.bin-bokken= bokken
SUBST_SED.bin-bokken= -e 's,`dirname $$0`,"${PREFIX}/share/bokken",'
SUBST_CLASSES+= bin-dot
SUBST_STAGE.bin-dot= post-patch
SUBST_MESSAGE.bin-dot= Fixing path to dot(1)
SUBST_FILES.bin-dot= ui/graph.py
SUBST_SED.bin-dot= -e 's,/usr/bin/dot,${PREFIX}/bin/dot,'
SUBST_CLASSES+= bin-python
SUBST_STAGE.bin-python= post-patch
SUBST_MESSAGE.bin-python= Fixing path to python${PYVERSSUFFIX}(1)
SUBST_FILES.bin-python= bokken
SUBST_SED.bin-python= -e 's,"python","python${PYVERSSUFFIX}",'
SUBST_SED.bin-python+= -e 's,\(PYTHON_VER=\).*,\1${PYVERSSUFFIX},'
SUBST_SED.bin-python+= -e 's,-eq,=,'
INSTALLATION_DIRS= bin share/bokken
do-install:
cd ${WRKSRC} && ${PAX} -rw . ${DESTDIR}${PREFIX}/share/bokken
${RM} ${DESTDIR}${PREFIX}/share/bokken/.gitignore
${MV} ${DESTDIR}${PREFIX}/share/bokken/bokken ${DESTDIR}${PREFIX}/bin/bokken
.include "../../lang/python/application.mk"
.include "../../sysutils/desktop-file-utils/desktopdb.mk"
.include "../../mk/bsd.pkg.mk"
|