Skip to content

Commit

Permalink
graphics/hiptext: Fix LICENSE
Browse files Browse the repository at this point in the history
Reference:	jart/hiptext@da18b54
Approved by:	portmgr (blanket)
  • Loading branch information
sunpoet committed Mar 9, 2024
1 parent ad56f67 commit 9e1564b
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 4 deletions.
10 changes: 7 additions & 3 deletions graphics/hiptext/Makefile
Expand Up @@ -7,13 +7,13 @@ MAINTAINER= yuri@FreeBSD.org
COMMENT= Tool for rendering images and videos inside terminals
WWW= https://github.com/jart/hiptext

LICENSE= NONE
LICENSE= APACHE20

BUILD_DEPENDS= ragel:devel/ragel
LIB_DEPENDS= libgflags.so:devel/gflags \
libglog.so:devel/glog \
libpng.so:graphics/png \
libswscale.so:multimedia/ffmpeg \
libswscale.so:multimedia/ffmpeg4 \
libfreetype.so:print/freetype2
TEST_DEPENDS= googletest>=1.7.0:devel/googletest
RUN_DEPENDS= ${LOCALBASE}/share/fonts/dejavu/DejaVuSans.ttf:x11-fonts/dejavu
Expand All @@ -22,8 +22,12 @@ USE_GITHUB= yes
GH_ACCOUNT= jart
GH_TAGNAME= f89b44f

USES= compiler:c++11-lib gmake jpeg localbase
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
Expand Down
9 changes: 9 additions & 0 deletions graphics/hiptext/files/patch-Makefile
@@ -1,5 +1,14 @@
--- 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

Expand Down
10 changes: 9 additions & 1 deletion graphics/hiptext/files/patch-artiste.cc
@@ -1,6 +1,14 @@
--- artiste.cc.orig 2016-06-21 21:09:17 UTC
+++ artiste.cc
@@ -166,7 +166,7 @@ void Artiste::PrintMovie(Movie movie) {
@@ -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();
Expand Down

0 comments on commit 9e1564b

Please sign in to comment.