aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Brazhnikov <makc@FreeBSD.org>2021-12-09 22:20:06 +0000
committerMax Brazhnikov <makc@FreeBSD.org>2021-12-09 22:23:41 +0000
commit201e9aec1071644ee9e9867bc62795251166da96 (patch)
tree34230f47dbe7a2354efe2b5ca465111dea399fb4
parent8d35ca774529c9eca32dc124782b6f8b7b29e390 (diff)
www/kristall: add new port
Minimalistic Gemini/HTTP(S) browser WWW: https://kristall.random-projects.net PR: 254567 (based on) Submitted by: Olga Smirnova
-rw-r--r--www/Makefile1
-rw-r--r--www/kristall/Makefile30
-rw-r--r--www/kristall/distinfo3
-rw-r--r--www/kristall/files/patch-Makefile27
-rw-r--r--www/kristall/files/patch-src_kristall.pro10
-rw-r--r--www/kristall/pkg-descr4
-rw-r--r--www/kristall/pkg-plist9
7 files changed, 84 insertions, 0 deletions
diff --git a/www/Makefile b/www/Makefile
index 4ddb0b5c93bc..b918337b3421 100644
--- a/www/Makefile
+++ b/www/Makefile
@@ -283,6 +283,7 @@
SUBDIR += kf5-kjsembed
SUBDIR += kiwix-tools
SUBDIR += kohana
+ SUBDIR += kristall
SUBDIR += lagrange
SUBDIR += larbin
SUBDIR += libapreq2
diff --git a/www/kristall/Makefile b/www/kristall/Makefile
new file mode 100644
index 000000000000..74133072af73
--- /dev/null
+++ b/www/kristall/Makefile
@@ -0,0 +1,30 @@
+PORTNAME= kristall
+DISTVERSIONPREFIX= V
+DISTVERSION= git2021.11.20
+CATEGORIES= www
+
+MAINTAINER= mistresssilvara@hotmail.com
+COMMENT= Minimalistic Gemini/HTTP(S) browser
+
+LICENSE= GPLv3
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+LIB_DEPENDS= libcmark.so:textproc/cmark \
+ libgumbo.so:devel/gumbo
+
+USES= compiler:c++17-lang desktop-file-utils gl iconv pkgconfig \
+ qt:5 shared-mime-info ssl
+USE_QT= core gui multimedia network svg widgets buildtools_build \
+ linguisttools_build qmake_build
+USE_GL= gl
+
+USE_GITHUB= yes
+GH_ACCOUNT= MasterQ32
+GH_TAGNAME= 6b39f244
+
+MAKE_ARGS= INSTALL_PROGRAM="${INSTALL_PROGRAM}" \
+ QMAKE_COMMAND=${QMAKE} \
+ QMAKE_CONFIG="external-gumbo-parser external-cmark"
+ALL_TARGET= ${PORTNAME}
+
+.include <bsd.port.mk>
diff --git a/www/kristall/distinfo b/www/kristall/distinfo
new file mode 100644
index 000000000000..7186b94aceea
--- /dev/null
+++ b/www/kristall/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1639085495
+SHA256 (MasterQ32-kristall-Vgit2021.11.20-6b39f244_GH0.tar.gz) = 7e56901413b8ac169298413d4a6f4e55a5e9cdf3aad762c7d1013076d281720d
+SIZE (MasterQ32-kristall-Vgit2021.11.20-6b39f244_GH0.tar.gz) = 22015661
diff --git a/www/kristall/files/patch-Makefile b/www/kristall/files/patch-Makefile
new file mode 100644
index 000000000000..244d2585845e
--- /dev/null
+++ b/www/kristall/files/patch-Makefile
@@ -0,0 +1,27 @@
+--- Makefile.orig 2021-12-09 21:36:29 UTC
++++ Makefile
+@@ -27,13 +27,6 @@ QMAKE_COMMAND := qmake
+ UNAME := $(shell uname)
+ UNAME_M := $(shell uname -m)
+ # Homebrew on macOS does not link Qt5 into the system path.
+-ifeq ($(UNAME),Darwin)
+- ifeq ($(UNAME_M),arm64)
+- HOMEBREW_PATH=export PATH="$(PATH):/opt/homebrew/opt/qt5/bin";
+- else
+- HOMEBREW_PATH=export PATH="$(PATH):/usr/local/opt/qt/bin";
+- endif
+-endif
+
+ kristall: build/kristall
+ cp build/kristall $@
+@@ -41,8 +34,8 @@ kristall: build/kristall
+ .PHONY: build/kristall
+ build/kristall: src/*
+ mkdir -p build
+- cd build; $(HOMEBREW_PATH) $(QMAKE_COMMAND) "CONFIG+=$(QMAKE_CONFIG)" ../src/kristall.pro && $(MAKE)
+- cd doc; ./gen-man.sh
++ (cd build && $(HOMEBREW_PATH) $(QMAKE_COMMAND) "CONFIG+=$(QMAKE_CONFIG)" ../src/kristall.pro && $(MAKE))
++ (cd doc && ./gen-man.sh)
+
+ install: kristall
+ # Prepare directories
diff --git a/www/kristall/files/patch-src_kristall.pro b/www/kristall/files/patch-src_kristall.pro
new file mode 100644
index 000000000000..5080e63516e8
--- /dev/null
+++ b/www/kristall/files/patch-src_kristall.pro
@@ -0,0 +1,10 @@
+--- src/kristall.pro.orig 2021-11-20 14:16:34 UTC
++++ src/kristall.pro
+@@ -19,7 +19,6 @@ DEFINES += KRISTALL_VERSION="\"$(shell cd $$PWD; git d
+ !win32: LIBS += -lcrypto
+
+ # We need iconv on non-linux platforms
+-!linux: LIBS += -liconv
+
+ # Initialize build flags from environment variables.
+ QMAKE_CFLAGS *= $$(CFLAGS)
diff --git a/www/kristall/pkg-descr b/www/kristall/pkg-descr
new file mode 100644
index 000000000000..0a82d93a6a29
--- /dev/null
+++ b/www/kristall/pkg-descr
@@ -0,0 +1,4 @@
+Graphical small-internet client for windows, linux, MacOS X and BSDs.
+Supports gemini, http, https, gopher, finger.
+
+WWW: https://kristall.random-projects.net
diff --git a/www/kristall/pkg-plist b/www/kristall/pkg-plist
new file mode 100644
index 000000000000..4f2615bb22b3
--- /dev/null
+++ b/www/kristall/pkg-plist
@@ -0,0 +1,9 @@
+bin/kristall
+share/applications/Kristall.desktop
+share/icons/hicolor/128x128/apps/net.random-projects.kristall.png
+share/icons/hicolor/16x16/apps/net.random-projects.kristall.png
+share/icons/hicolor/32x32/apps/net.random-projects.kristall.png
+share/icons/hicolor/64x64/apps/net.random-projects.kristall.png
+share/icons/hicolor/scalable/apps/net.random-projects.kristall.svg
+share/man/man1/kristall.1.gz
+share/mime/packages/kristall.xml