git: d936331b8f90 - main - devel/xopcodecalc: new port had been added (+)
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 17 Nov 2021 06:44:30 UTC
The branch main has been updated by danfe:
URL: https://cgit.FreeBSD.org/ports/commit/?id=d936331b8f901c36ae9d6aaa4bcd77286e6857c8
commit d936331b8f901c36ae9d6aaa4bcd77286e6857c8
Author: Alexey Dokuchaev <danfe@FreeBSD.org>
AuthorDate: 2021-11-17 06:42:58 +0000
Commit: Alexey Dokuchaev <danfe@FreeBSD.org>
CommitDate: 2021-11-17 06:43:06 +0000
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
---
devel/Makefile | 1 +
devel/xopcodecalc/Makefile | 34 ++++++++++++++++++++++
devel/xopcodecalc/distinfo | 5 ++++
.../files/patch-gui__source_gui__source.pro | 25 ++++++++++++++++
devel/xopcodecalc/pkg-descr | 4 +++
devel/xopcodecalc/pkg-plist | 7 +++++
6 files changed, 76 insertions(+)
diff --git a/devel/Makefile b/devel/Makefile
index b19be96d1112..cb27a45d097e 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -7186,6 +7186,7 @@
SUBDIR += xfce4-dev-tools
SUBDIR += xmake
SUBDIR += xmltooling
+ SUBDIR += xopcodecalc
SUBDIR += xorg-macros
SUBDIR += xparam
SUBDIR += xsd
diff --git a/devel/xopcodecalc/Makefile b/devel/xopcodecalc/Makefile
new file mode 100644
index 000000000000..2a0fa3842298
--- /dev/null
+++ b/devel/xopcodecalc/Makefile
@@ -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
diff --git a/devel/xopcodecalc/distinfo b/devel/xopcodecalc/distinfo
new file mode 100644
index 000000000000..9e21da97228b
--- /dev/null
+++ b/devel/xopcodecalc/distinfo
@@ -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
diff --git a/devel/xopcodecalc/files/patch-gui__source_gui__source.pro b/devel/xopcodecalc/files/patch-gui__source_gui__source.pro
new file mode 100644
index 000000000000..14868c1567ef
--- /dev/null
+++ b/devel/xopcodecalc/files/patch-gui__source_gui__source.pro
@@ -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++*{
diff --git a/devel/xopcodecalc/pkg-descr b/devel/xopcodecalc/pkg-descr
new file mode 100644
index 000000000000..d89354bac764
--- /dev/null
+++ b/devel/xopcodecalc/pkg-descr
@@ -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
diff --git a/devel/xopcodecalc/pkg-plist b/devel/xopcodecalc/pkg-plist
new file mode 100644
index 000000000000..c50098f3da3a
--- /dev/null
+++ b/devel/xopcodecalc/pkg-plist
@@ -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