aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuri Victorovich <yuri@FreeBSD.org>2026-09-25 22:18:22 +0000
committerYuri Victorovich <yuri@FreeBSD.org>2026-09-25 23:50:23 +0000
commit4648e57e235315a77b07f308516dcf37b0cadf37 (patch)
tree295bb89bbcfd1c22a402ff7a03856d4720af1895
parent9a97710a2dc0052e5ac626f4093296f28920a321 (diff)
graphics/hiptext: remove abandonware
-rw-r--r--MOVED1
-rw-r--r--graphics/Makefile1
-rw-r--r--graphics/hiptext/Makefile49
-rw-r--r--graphics/hiptext/distinfo3
-rw-r--r--graphics/hiptext/files/patch-Makefile37
-rw-r--r--graphics/hiptext/files/patch-artiste.cc19
-rw-r--r--graphics/hiptext/files/patch-hiptext.cc15
-rw-r--r--graphics/hiptext/files/patch-movie.cc29
-rw-r--r--graphics/hiptext/pkg-descr1
9 files changed, 1 insertions, 154 deletions
diff --git a/MOVED b/MOVED
index 46cf47ce0e5e..f40169efb937 100644
--- a/MOVED
+++ b/MOVED
@@ -5624,3 +5624,4 @@ net/openldap25-client|databases/openldap25-client|2026-09-24|Move all OpenLDAP p
net/openldap25-server|databases/openldap25-server|2026-09-24|Move all OpenLDAP ports to databases/
net/openldap26-client|databases/openldap26-client|2026-09-24|Move all OpenLDAP ports to databases/
net/openldap26-server|databases/openldap26-server|2026-09-24|Move all OpenLDAP ports to databases/
+graphics/hiptext||2026-09-25|Remove abandonware
diff --git a/graphics/Makefile b/graphics/Makefile
index e574bf881b07..9adc4bcef9f1 100644
--- a/graphics/Makefile
+++ b/graphics/Makefile
@@ -354,7 +354,6 @@
SUBDIR += hdr_histogram
SUBDIR += hdr_tools
SUBDIR += heimer
- SUBDIR += hiptext
SUBDIR += hobbes-icons-xpm
SUBDIR += hppsmtools
SUBDIR += hs-tart
diff --git a/graphics/hiptext/Makefile b/graphics/hiptext/Makefile
deleted file mode 100644
index 65bc67ba04b7..000000000000
--- a/graphics/hiptext/Makefile
+++ /dev/null
@@ -1,49 +0,0 @@
-PORTNAME= hiptext
-DISTVERSION= 0.2-8
-DISTVERSIONSUFFIX= -g35c91e0
-CATEGORIES= graphics
-
-MAINTAINER= yuri@FreeBSD.org
-COMMENT= Tool for rendering images and videos inside terminals
-WWW= https://github.com/jart/hiptext
-
-LICENSE= APACHE20
-
-BROKEN= compilation fails: does not build with ffmpeg-8, see https://github.com/jart/hiptext/issues/63
-
-BUILD_DEPENDS= ragel:devel/ragel
-LIB_DEPENDS= libgflags.so:devel/gflags \
- libglog.so:devel/glog \
- libpng.so:graphics/png \
- libswscale.so:multimedia/ffmpeg \
- libfreetype.so:print/freetype2
-TEST_DEPENDS= googletest>=1.7.0:devel/googletest
-RUN_DEPENDS= ${LOCALBASE}/share/fonts/dejavu/DejaVuSans.ttf:x11-fonts/dejavu
-
-USE_GITHUB= yes
-GH_ACCOUNT= jart
-GH_TAGNAME= f89b44f
-
-USES= compiler:c++14-lang gmake jpeg localbase
-CPPFLAGS+= -I${LOCALBASE}/include/freetype2
-CPPFLAGS+= -I${LOCALBASE}/ffmpeg4/include
-CXXFLAGS+= -DGLOG_USE_GLOG_EXPORT
-LDFLAGS+= -L${LOCALBASE}/lib -lfreetype
-LDFLAGS+= -L${LOCALBASE}/ffmpeg4/lib
-MAKE_ENV= GTEST_DIR="${LOCALBASE}" \
- TARGET_ARCH=""
-TEST_TARGET= check
-
-PLIST_FILES= bin/hiptext
-
-post-extract:
- @${RM} -r ${WRKSRC}/gtest
-
-post-patch:
- @${REINPLACE_CMD} -e 's|"DejaVuSansMono.ttf"|"${LOCALBASE}/share/fonts/dejavu/DejaVuSansMono.ttf"|' \
- ${WRKSRC}/font.cc
-
-do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/hiptext ${STAGEDIR}${PREFIX}/bin
-
-.include <bsd.port.mk>
diff --git a/graphics/hiptext/distinfo b/graphics/hiptext/distinfo
deleted file mode 100644
index 4a11ff0d0c11..000000000000
--- a/graphics/hiptext/distinfo
+++ /dev/null
@@ -1,3 +0,0 @@
-TIMESTAMP = 1773604235
-SHA256 (jart-hiptext-0.2-8-g35c91e0-f89b44f_GH0.tar.gz) = b07164083cb2912fdc7f19c46934c34eca3f5bfd7a34a5990c82b047b4bfa6d1
-SIZE (jart-hiptext-0.2-8-g35c91e0-f89b44f_GH0.tar.gz) = 1566318
diff --git a/graphics/hiptext/files/patch-Makefile b/graphics/hiptext/files/patch-Makefile
deleted file mode 100644
index 986e21681d00..000000000000
--- a/graphics/hiptext/files/patch-Makefile
+++ /dev/null
@@ -1,37 +0,0 @@
---- Makefile.orig 2016-06-21 21:09:17 UTC
-+++ Makefile
-@@ -17,7 +17,7 @@ CXXFLAGS ?= -g -O3
- PREFIX ?= /usr/local
- TARGET_ARCH ?= -march=native
- CXXFLAGS ?= -g -O3
--CXXFLAGS += -std=c++11 -Wall -Wextra
-+CXXFLAGS += -std=c++14 -Wall -Wextra
- CXXFLAGS += -fno-exceptions -fno-rtti
- LDLIBS += -lm -lglog -lgflags -lpng -ljpeg
- LDLIBS += -lavcodec -lavformat -lavutil -lswscale
-@@ -48,7 +48,7 @@ check: test
- ./test --alsologtostderr --gtest_color=yes
-
- clean:
-- $(RM) test hiptext $(wildcard *.o *.d *.S $(GTEST_DIR)/*.o) cpplint.py
-+ $(RM) test hiptext $(wildcard *.o *.d *.S) cpplint.py
-
- install: hiptext
- install --mode=0755 hiptext $(PREFIX)/bin
-@@ -78,12 +78,11 @@ pixel_parse.o: CXXFLAGS := $(filter-out
- font.%: CXXFLAGS += $(shell freetype-config --cflags)
-
- # google-test integration magic.
--GTEST_DIR ?= gtest
--TESTS = $(GTEST_DIR)/src/gtest-all.o $(GTEST_DIR)/src/gtest_main.o \
-- $(patsubst %.cc,%.o,$(wildcard *_test.cc))
--$(TESTS): CXXFLAGS += -I$(GTEST_DIR)/include -I$(GTEST_DIR) -pthread
-+GTEST_DIR ?= $(PREFIX)
-+TESTS = $(patsubst %.cc,%.o,$(wildcard *_test.cc))
-+$(TESTS): CXXFLAGS += -I$(GTEST_DIR)/include -pthread
- $(filter gtest%,$(TESTS)): CXXFLAGS := $(filter-out -MD -Wall,$(CXXFLAGS))
--test: $(TESTS) $(SOURCES) ; $(LINK.cc) $^ $(LDLIBS) -lpthread -o $@
-+test: $(TESTS) $(SOURCES) ; $(LINK.cc) $^ $(LDLIBS) -lpthread -L$(GTEST_DIR)/lib -lgtest -lgtest_main -o $@
-
- # Recompile sources when headers change.
- CXXFLAGS += -MD
diff --git a/graphics/hiptext/files/patch-artiste.cc b/graphics/hiptext/files/patch-artiste.cc
deleted file mode 100644
index 304fa46c2d03..000000000000
--- a/graphics/hiptext/files/patch-artiste.cc
+++ /dev/null
@@ -1,19 +0,0 @@
---- artiste.cc.orig 2016-06-21 21:09:17 UTC
-+++ artiste.cc
-@@ -9,6 +9,7 @@
- #include <sys/ioctl.h>
- #include <sys/termios.h>
- #include <sys/select.h>
-+#include <unistd.h>
- #include <gflags/gflags.h>
- #include <glog/logging.h>
-
-@@ -166,7 +167,7 @@ void Artiste::PrintMovie(Movie movie) {
- ComputeDimensions(RatioOf(movie.width(), movie.height()));
- movie.PrepareRGB(width_, height_);
- HideCursor();
-- sighandler_t old_handler = signal(SIGINT, OnCtrlC);
-+ sig_t old_handler = signal(SIGINT, OnCtrlC);
- for (auto graphic : movie) {
- if (g_done) {
- break;
diff --git a/graphics/hiptext/files/patch-hiptext.cc b/graphics/hiptext/files/patch-hiptext.cc
deleted file mode 100644
index bdcb897438ff..000000000000
--- a/graphics/hiptext/files/patch-hiptext.cc
+++ /dev/null
@@ -1,15 +0,0 @@
---- hiptext.cc.orig 2016-06-21 21:09:17 UTC
-+++ hiptext.cc
-@@ -197,9 +197,9 @@ inline string GetExtension(const string&
- int main(int argc, char** argv) {
- // if (!isatty(1))
- // FLAGS_color = false;
-- google::SetUsageMessage("hiptext [FLAGS]");
-- google::SetVersionString("0.1");
-- google::ParseCommandLineFlags(&argc, &argv, true);
-+ gflags::SetUsageMessage("hiptext [FLAGS]");
-+ gflags::SetVersionString("0.1");
-+ gflags::ParseCommandLineFlags(&argc, &argv, true);
- google::InitGoogleLogging(argv[0]);
- google::InstallFailureSignalHandler();
- const char* lang = std::getenv("LANG");
diff --git a/graphics/hiptext/files/patch-movie.cc b/graphics/hiptext/files/patch-movie.cc
deleted file mode 100644
index ae9370ae3a06..000000000000
--- a/graphics/hiptext/files/patch-movie.cc
+++ /dev/null
@@ -1,29 +0,0 @@
---- movie.cc.orig 2016-06-21 21:09:17 UTC
-+++ movie.cc
-@@ -53,7 +53,7 @@ void Movie::PrepareRGB(int width, int he
-
- // Prepare context for scaling and converting to RGB.
- sws_ = sws_getContext(context_->width, context_->height, context_->pix_fmt,
-- width_, height_, PIX_FMT_RGB24, SWS_FAST_BILINEAR,
-+ width_, height_, AV_PIX_FMT_RGB24, SWS_FAST_BILINEAR,
- nullptr, nullptr, nullptr);
- CHECK(codec_ = avcodec_find_decoder(context_->codec_id))
- << "Unsupported codec.\n";
-@@ -61,13 +61,13 @@ void Movie::PrepareRGB(int width, int he
- << "Could not open codec.\n";
-
- // Allocate Raw + RGB frame buffers.
-- CHECK(frame_ = avcodec_alloc_frame());
-- CHECK(frame_rgb_ = avcodec_alloc_frame());
-- int rgb_bytes = avpicture_get_size(PIX_FMT_RGB24, width_, height_);
-+ CHECK(frame_ = av_frame_alloc());
-+ CHECK(frame_rgb_ = av_frame_alloc());
-+ int rgb_bytes = avpicture_get_size(AV_PIX_FMT_RGB24, width_, height_);
- buffer_ = static_cast<uint8_t*>(av_malloc(rgb_bytes));
- LOG(INFO) << "RGB Buffer: " << rgb_bytes << " bytes.";
- int prep = avpicture_fill(reinterpret_cast<AVPicture*>(frame_rgb_),
-- buffer_, PIX_FMT_RGB24, width_, height_);
-+ buffer_, AV_PIX_FMT_RGB24, width_, height_);
- CHECK_GE(prep, 0) << "Failed to prepare RGB buffer.";
- LOG(INFO) << "RGB dimensions: " << width_ << "x" << height_;
- }
diff --git a/graphics/hiptext/pkg-descr b/graphics/hiptext/pkg-descr
deleted file mode 100644
index 570f2c606066..000000000000
--- a/graphics/hiptext/pkg-descr
+++ /dev/null
@@ -1 +0,0 @@
-hiptext is command line tool for rendering images and videos inside terminals.