* dex-reader is designed to read the Dalvik Executable (.dex/.odex) format. It has a light weight API similar with ASM. * dex-translator is designed to do the convert job. It reads the dex instruction to dex-ir format, after some optimize, convert to ASM format. * dex-ir used by dex-translator, is designed to represent the dex instruction dex-tools tools to work with .class files. * d2j-smali disassemble dex to smali files and assemble dex from smali files. different implementation to smali/baksmali, same syntax, but we support escape in type desc "Lcom/dex2jar\t\u1234;" * dex-writer write dex same way as dex-reader. ok benoit@.
38 lines
882 B
Makefile
38 lines
882 B
Makefile
# $OpenBSD: Makefile,v 1.1.1.1 2016/06/15 19:49:40 rpointel Exp $
|
|
|
|
COMMENT = tools to work with android .dex and java .class files
|
|
|
|
DISTNAME = dex2jar-2.0
|
|
|
|
CATEGORIES = devel security
|
|
|
|
HOMEPAGE = https://github.com/pxb1988/dex2jar
|
|
|
|
MAINTAINER = Remi Pointel <rpointel@openbsd.org>
|
|
|
|
# Apachev2
|
|
PERMIT_PACKAGE_CDROM = Yes
|
|
|
|
MASTER_SITES = ${MASTER_SITE_SOURCEFORGE:=dex2jar/}
|
|
|
|
EXTRACT_SUFX = .zip
|
|
|
|
MODULES = java
|
|
MODJAVA_VER = 1.7
|
|
MODJAVA_JRERUN =Yes
|
|
|
|
RUN_DEPENDS = java/javaPathHelper
|
|
|
|
NO_BUILD = Yes
|
|
NO_TEST = Yes
|
|
|
|
do-install:
|
|
${INSTALL_SCRIPT_DIR} ${PREFIX}/share/dex2jar/
|
|
cp -r ${WRKSRC}/lib/ ${PREFIX}/share/dex2jar/
|
|
${INSTALL_SCRIPT} ${WRKSRC}/*.sh ${PREFIX}/share/dex2jar/
|
|
.for i in baksmali dex-recompute-checksum dex2jar dex2smali jar2dex jar2jasmin jasmin2jar smali std-apk
|
|
ln -s ${TRUEPREFIX}/share/dex2jar/d2j-${i}.sh ${PREFIX}/bin/${i}
|
|
.endfor
|
|
|
|
.include <bsd.port.mk>
|