new package: fritzing

This commit is contained in:
Tee KOBAYASHI 2022-12-02 07:44:23 +09:00 committed by xtkoba
parent 482fb82e7e
commit 9fe014f0cd
4 changed files with 66 additions and 0 deletions

View File

@ -0,0 +1,25 @@
TERMUX_PKG_HOMEPAGE=https://fritzing.org/
TERMUX_PKG_DESCRIPTION="An Electronic Design Automation software"
TERMUX_PKG_LICENSE="GPL-3.0"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION=0.9.6
TERMUX_PKG_SRCURL=https://github.com/fritzing/fritzing-app/archive/refs/tags/${TERMUX_PKG_VERSION}.tar.gz
TERMUX_PKG_SHA256=eb4ebe461c5d42edb4b10f1f824e7c855ad54555e222c5999061dead09834491
TERMUX_PKG_DEPENDS="fritzing-data, libc++, libgit2, qt5-qtbase, qt5-qtserialport, qt5-qtsvg, quazip"
TERMUX_PKG_BUILD_DEPENDS="boost, boost-headers, qt5-qtbase-cross-tools"
TERMUX_PKG_BUILD_IN_SRC=true
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
PREFIX=$TERMUX_PREFIX
PKG_CONFIG=pkg-config
DEFINES=QUAZIP_INSTALLED
"
termux_step_post_get_source() {
rm -rf src/lib/quazip pri/quazip.pri
}
termux_step_configure() {
"${TERMUX_PREFIX}/opt/qt/cross/bin/qmake" \
-spec "${TERMUX_PREFIX}/lib/qt/mkspecs/termux-cross" \
${TERMUX_PKG_EXTRA_CONFIGURE_ARGS}
}

View File

@ -0,0 +1,27 @@
Borrowed from https://github.com/gentoo/gentoo/blob/7a1ecd6cc46b1f97eef4b3d79c1bb03d41c133d0/sci-electronics/fritzing/files/fritzing-0.9.4-quazip1.patch
--- a/phoenix.pro
+++ b/phoenix.pro
@@ -205,7 +205,8 @@
contains(DEFINES, QUAZIP_INSTALLED) {
!build_pass:message("using installed QuaZIP library")
- LIBS += -lquazip5
+ CONFIG += link_pkgconfig
+ PKGCONFIG += quazip1-qt5
} else {
include(pri/quazip.pri)
}
--- a/src/utils/folderutils.cpp
+++ b/src/utils/folderutils.cpp
@@ -35,8 +35,8 @@
#include "../debugdialog.h"
#ifdef QUAZIP_INSTALLED
-#include <quazip5/quazip.h>
-#include <quazip5/quazipfile.h>
+#include <quazip.h>
+#include <quazipfile.h>
#else
#include "../lib/quazip/quazip.h"
#include "../lib/quazip/quazipfile.h"

View File

@ -0,0 +1,3 @@
TERMUX_SUBPKG_DESCRIPTION="Platform-independent data for fritzing"
TERMUX_SUBPKG_PLATFORM_INDEPENDENT=true
TERMUX_SUBPKG_INCLUDE="share/fritzing/"

View File

@ -0,0 +1,11 @@
--- a/phoenix.pro
+++ b/phoenix.pro
@@ -175,7 +175,7 @@
RESOURCES += phoenixresources.qrc
# Disable this if you have (and want) libgit2 dynamically
-LIBGIT_STATIC = true
+LIBGIT_STATIC = false
include(pri/libgit2detect.pri)
include(pri/boostdetect.pri)