9250d94365
It brings bison as a build dependency in case it is set the following way: USES= bison or USES= bison:build it brings bison as a run dependency in case it is set the following way: USES= bison:run it brings bison both as a run and build dependency in case it the set the following way: USES= bison:both While here trim some headers Convert some USE_GNOME= gnomehack to USES= pathfix
43 lines
1,004 B
Makefile
43 lines
1,004 B
Makefile
# Created by: ijliao
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= htmltolatex
|
|
PORTVERSION= 1
|
|
PORTREVISION= 16
|
|
CATEGORIES= textproc
|
|
MASTER_SITES= http://people.FreeBSD.org/~foxfair/distfiles/
|
|
DISTNAME= ${PORTNAME}
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= HTML to LaTeX to PDF Converter
|
|
|
|
LIB_DEPENDS= GraphicsMagick++:${PORTSDIR}/graphics/GraphicsMagick
|
|
|
|
USES= bison
|
|
USE_GMAKE= yes
|
|
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 ${PREFIX}/bin
|
|
@${MKDIR} ${DATADIR}
|
|
${INSTALL_DATA} ${WRKSRC}/nmr.tex ${DATADIR}
|
|
|
|
.include <bsd.port.mk>
|