freebsd-ports/textproc/htmltolatex/Makefile
Piotr Kubaj 22bbff4e59 textproc/htmltolatex: fix build with GCC-based architectures
Add USES=compiler:c++11-lang.

Add include <cstring> and <strings.h> to CH2L.cpp.

Add include <cstring> to util.cpp.

Required to build with GCC (used on GCC architectures):
undefined reference to std::__cxx11::basic_string

PR:		237549
Approved by:	pi (maintainer), tcberner (mentor)
Differential Revision:	https://reviews.freebsd.org/D20050
2019-04-27 09:04:29 +00:00

45 lines
1.1 KiB
Makefile

# Created by: ijliao
# $FreeBSD$
PORTNAME= htmltolatex
PORTVERSION= 1
PORTREVISION= 24
CATEGORIES= textproc
MASTER_SITES= http://people.FreeBSD.org/~foxfair/distfiles/
DISTNAME= ${PORTNAME}
MAINTAINER= pi@FreeBSD.org
COMMENT= HTML to LaTeX to PDF Converter
LICENSE= GPLv2+
LICENSE_FILE= ${WRKSRC}/copying.txt
LIB_DEPENDS= libGraphicsMagick++.so:graphics/GraphicsMagick
USES= bison compiler:c++11-lang gmake
MAKEFILE= GNUmakefile
MAKE_JOBS_UNSAFE= yes
MAKE_ARGS= CXX="${CXX}" \
CXXFLAGS="${CXXFLAGS} -DUNIX \
`GraphicsMagick++-config --cppflags`"
post-configure:
${REINPLACE_CMD} -e 's,/usr/local,${LOCALBASE},g' \
-e 's,-lMagick,-lGraphicsMagick,g' \
-e 's,-lstdc++,,' \
-e 's,{quote},{tightquote},' ${WRKSRC}/QA/test1*_baseline*.tex \
${WRKSRC}/${MAKEFILE}
post-build test:
@if ! cd ${WRKSRC}/QA && ./run_tests; \
then \
${CAT} ${WRKSRC}/QA/*.diff; \
exit 1; \
fi
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/h2l ${STAGEDIR}${PREFIX}/bin
@${MKDIR} ${STAGEDIR}${DATADIR}
${INSTALL_DATA} ${WRKSRC}/nmr.tex ${STAGEDIR}${DATADIR}
.include <bsd.port.mk>