Date: Wed, 22 Jun 2016 01:26:33 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-ports-bugs@FreeBSD.org Subject: [Bug 210404] [NEW PORT] graphics/hiptext: Tool for rendering images and videos inside terminals Message-ID: <bug-210404-13-sWmIIeJdTZ@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-210404-13@https.bugs.freebsd.org/bugzilla/> References: <bug-210404-13@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D210404 Jan Beich <jbeich@FreeBSD.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jbeich@FreeBSD.org --- Comment #2 from Jan Beich <jbeich@FreeBSD.org> --- Comment on attachment 171601 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D171601 shar archive Fails to build on 9.x. It wants USES=3Dcompiler:c++11-lib. If you really ne= ed C++14 features submit a bug for USES=3Dcompiler:c++14-lib or make a conditi= onal after bsd.port.options.mk. However, it builds fine on 9.x and 10.1 with just C++11. In file included from hiptext.cc:17: ./artiste.h:15:30: error: no type named 'function' in namespace 'std' using RenderAlgorithm =3D std::function<void(std::ostream&, const Graphic= &)>; ~~~~~^ In file included from hiptext.cc:23: ./macterm.h:7:10: fatal error: 'cstdint' file not found #include <cstdint> ^ Fails to build with devel/googletest installed. Add CONFLICTS_BUILD, manage *FLAGS or use system gtest per https://www.freebsd.org/doc/en/books/porters-handbook/bundled-libs.html In file included from gtest/src/gtest-all.cc:42: gtest/src/gtest.cc:958:23: error: out-of-line definition of 'swap' does n= ot match any declaration in 'testing::AssertionResult' void AssertionResult::swap(AssertionResult& other) { ^~~~ gtest/src/gtest.cc:961:3: error: no matching function for call to 'swap' swap(message_, other.message_); ^~~~ In file included from gtest/src/gtest-all.cc:42: gtest/src/gtest.cc:991:13: error: use of undeclared identifier 'EditType' std::vector<EditType> CalculateOptimalEdits(const std::vector<size_t>& le= ft, ^ Fails to build with ffmpeg 3.0 (bug 207547). Try s/PIX_FMT/AV_&/ + s/avcodec_alloc_frame/av_frame_alloc/ movie.cc:56:42: error: use of undeclared identifier 'PIX_FMT_RGB24'; did = you mean 'AV_PIX_FMT_RGB24'? width_, height_, PIX_FMT_RGB24, SWS_FAST_BILINEAR, ^~~~~~~~~~~~~ AV_PIX_FMT_RGB24 movie.cc:64:18: error: use of undeclared identifier 'avcodec_alloc_frame' CHECK(frame_ =3D avcodec_alloc_frame()); ^ > XPORTVERSION=3D 0.160620 Do not abbreviate snapshot year to avoid confusion about the date format (%y%m%d vs. %d%m%y). And prepend one more 0. to avoid PORTEPOCH issue in case upstream releases = 0.1. > X libpng16.so:graphics/png \ Depend on libpng.so unless it won't build/work with libpng17. > XCXXFLAGS+=3D -I${PREFIX}/include -I${PREFIX}/include/freetype2 PREFIX is where *this* port installs, use LOCALBASE otherwise. In some cases the destination can be empty: poudriere testport -P ... After that consider replacing -I${LOCALBASE}/include with USES=3Dlocalbase. > XPLIST_FILES=3D bin/hiptext %%DATADIR%%/DejaVuSansMono.ttf > X > Xpost-patch: > X @${REINPLACE_CMD} -e 's|"DejaVuSansMono.ttf"|"${PREFIX}/share/${PORTNAM= E}/DejaVuSansMono.ttf"|' \ > X ${WRKSRC}/font.cc > Xdo-install: > X (cd ${WRKSRC} && \ Why do you need to change directory just to run commands that work fine with absolute paths? > X ${INSTALL_DATA} DejaVuSansMono.ttf ${STAGEDIR}${PREFIX}/share/${PORTNA= ME}) Use DejaVuSansMono.ttf from x11-fonts/dejavu unless the port needs modified version. > Xdo-test: > X (cd ${WRKSRC} && \ > X ${MAKE_CMD} test && ./test) Define TEST_TARGET=3Dcheck instead to avoid losing MAKE_ENV/MAKE_ARGS/MAKE_= JOBS etc. --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-210404-13-sWmIIeJdTZ>