devel/xopcodecalc: new port had been added (+)

This small program calculates and displays x86 CPU opcodes in
graphical, easily readable way.  It is based on Qt libraries.

WWW: https://github.com/horsicq/XOpcodeCalc
This commit is contained in:
Alexey Dokuchaev 2021-11-17 06:42:58 +00:00
parent 43acf909ae
commit d936331b8f
6 changed files with 76 additions and 0 deletions

View file

@ -7186,6 +7186,7 @@
SUBDIR += xfce4-dev-tools
SUBDIR += xmake
SUBDIR += xmltooling
SUBDIR += xopcodecalc
SUBDIR += xorg-macros
SUBDIR += xparam
SUBDIR += xsd

View file

@ -0,0 +1,34 @@
# Created by: Alexey Dokuchaev <danfe@FreeBSD.org>
PORTNAME= ${GH_PROJECT:[1]:tl}
PORTVERSION= 0.03
CATEGORIES= devel
MAINTAINER= danfe@FreeBSD.org
COMMENT= Graphical x86 CPU opcode calculator
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
USES= pkgconfig qt:5
GNU_CONFIGURE= yes
USE_QT= buildtools_build qmake_build core gui widgets
USE_GITHUB= yes
GH_ACCOUNT= horsicq
GH_PROJECT= XOpcodeCalc XOptions:xo
GH_TAGNAME= 01bba2a:xo
GH_SUBDIR= XOptions:xo
post-extract:
@${CHMOD} +x ${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT}
do-install:
${INSTALL_PROGRAM} ${INSTALL_WRKSRC}/build/release/xocalc \
${STAGEDIR}${PREFIX}/bin
cd ${INSTALL_WRKSRC}/DEBIAN && ${COPYTREE_SHARE} hicolor \
${STAGEDIR}${PREFIX}/share/icons
.include <bsd.port.mk>
PATCH_ARGS+= -l

View file

@ -0,0 +1,5 @@
TIMESTAMP = 1627490833
SHA256 (horsicq-XOpcodeCalc-0.03_GH0.tar.gz) = 781566e0c352ec4ec3c8e39434dc4a3c0261cd2febeb5aef77b7f22bde0ed1ec
SIZE (horsicq-XOpcodeCalc-0.03_GH0.tar.gz) = 520646
SHA256 (horsicq-XOptions-01bba2a_GH0.tar.gz) = ca63c9ccd8ac6f204f5ea83a1520003821574a33e51419e899ddc03409879193
SIZE (horsicq-XOptions-01bba2a_GH0.tar.gz) = 7366

View file

@ -0,0 +1,25 @@
--- gui_source/gui_source.pro.orig 2021-07-28 16:47:13 UTC
+++ gui_source/gui_source.pro
@@ -62,18 +62,18 @@ win32-msvc*{
}
}
-linux-g++*{
+unix {
BITSIZE = $$system(getconf LONG_BIT)
!contains(BITSIZE, 64) {
- message("Linux gcc x32 build")
+ message("Unix 32-bit build")
ASM_FILES = ../asm/gcc32.s
} else {
- message("Linux gcc x64 build")
+ message("Unix 64-bit build")
ASM_FILES = ../asm/gcc64.s
}
preprocess.output = ${QMAKE_FILE_BASE}.o
- preprocess.commands = gcc -c ${QMAKE_FILE_IN}
+ preprocess.commands = $$QMAKE_CC -c ${QMAKE_FILE_IN}
}
win32-g++*{

View file

@ -0,0 +1,4 @@
This small program calculates and displays x86 CPU opcodes in
graphical, easily readable way. It is based on Qt libraries.
WWW: https://github.com/horsicq/XOpcodeCalc

View file

@ -0,0 +1,7 @@
bin/xocalc
share/icons/hicolor/16x16/apps/xocalc.png
share/icons/hicolor/20x20/apps/xocalc.png
share/icons/hicolor/24x24/apps/xocalc.png
share/icons/hicolor/32x32/apps/xocalc.png
share/icons/hicolor/48x48/apps/xocalc.png
share/icons/hicolor/256x256/apps/xocalc.png