2016-06-22 14:31:00 +00:00
|
|
|
# Created by: Yuri Victorovich <yuri@rawbw.com>
|
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= hiptext
|
|
|
|
PORTVERSION= 0.0.s20160621
|
Bump PORTREVISION for ports depending on the canonical version of GCC
in the ports tree (via Mk/bsd.default-versions.mk and lang/gcc) which
has now moved from GCC 6 to GCC 7 by default.
This includes ports
- featuring USE_GCC=yes or USE_GCC=any,
- featuring USES=fortran,
- using Mk/bsd.octave.mk which in turn features USES=fortran, and those
- with USES=compiler specifying one of openmp, nestedfct, c11, c++0x,
c++11-lib, c++11-lang, c++14-lang, c++17-lang, or gcc-c++11-lib.
PR: 222542
2018-07-29 22:18:44 +00:00
|
|
|
PORTREVISION= 8
|
2016-06-22 14:31:00 +00:00
|
|
|
CATEGORIES= graphics
|
|
|
|
|
2018-02-25 00:40:37 +00:00
|
|
|
MAINTAINER= yuri@FreeBSD.org
|
2016-06-22 14:31:00 +00:00
|
|
|
COMMENT= Tool for rendering images and videos inside terminals
|
|
|
|
|
2017-12-12 15:53:13 +00:00
|
|
|
LICENSE= NONE
|
|
|
|
|
2016-06-22 14:31:00 +00:00
|
|
|
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++11-lib gmake jpeg localbase
|
|
|
|
CPPFLAGS+= -D_GLIBCXX_USE_C99 # XXX ports/193528
|
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include/freetype2
|
2017-12-12 15:53:13 +00:00
|
|
|
MAKE_ENV= GTEST_DIR="${LOCALBASE}" \
|
|
|
|
TARGET_ARCH=""
|
2016-06-22 14:31:00 +00:00
|
|
|
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>
|