pkgsrc/devel/bokken/Makefile

47 lines
1.4 KiB
Makefile
Raw Normal View History

# $NetBSD: Makefile,v 1.2 2015/11/17 13:58:56 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
USE_TOOLS+= pax
NO_BUILD= yes
REPLACE_PYTHON= bokken.py lib/web/utils.py ui/xdot.py
REPLACE_SH= bokken
PYTHON_VERSIONS_INCOMPATIBLE= 33 34 # 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,'
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 "../../x11/py-gtk2/buildlink3.mk"
.include "../../x11/py-gtksourceview/buildlink3.mk"
.include "../../graphics/py-pygraphviz/buildlink3.mk"
.include "../../devel/py-radare2/buildlink3.mk"
.include "../../lang/python/application.mk"
.include "../../sysutils/desktop-file-utils/desktopdb.mk"
.include "../../mk/bsd.pkg.mk"