freebsd-ports/graphics/klatexformula/Makefile
Muhammad Moinur Rahman 721e5776c9 Mk/**tex.mk: Convert bsd.tex.mk to USES=tex
- Update all the consumers to use USES=tex
- USE_TEX=yes is the old way of writing USES=tex which has been removed
  and replaced in all ports
- Almost all of the USE_TEX features remains unchanged
- Some consumers had the same variables defined both in the mk
  infrastructure and also in the ports which have been removed from the
  ports as those are redundant.

In case any of the consumers are failing to build please make sure that
the nexessary USES=tex is there. Unlike previous USE_TEX=yes will no
longer load the required VARS for tex and related dependencies.

Reviewed by:	portmgr
Approved by:	portmgr (blanket)
2022-12-19 08:44:58 -06:00

32 lines
872 B
Makefile

PORTNAME= klatexformula
PORTVERSION= 4.0.0
PORTREVISION= 3
CATEGORIES= graphics
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION}
MAINTAINER= hrs@FreeBSD.org
COMMENT= Convert LaTeX formula to image
WWW= https://klatexformula.sourceforge.io
LICENSE= GPLv2
BUILD_DEPENDS= help2man:misc/help2man
USES= cmake compiler:c++11-lang desktop-file-utils ghostscript:run \
gl qt:5 shared-mime-info tar:bzip2 localbase tex
USE_GL= gl
USE_QT= core dbus gui sql svg widgets x11extras xml \
buildtools:build designer:build linguisttools:build \
qmake:build uitools:build
USE_TEX= latex dvipsk
USE_LDCONFIG= yes
CMAKE_ARGS= -DKLF_INSTALL_POST_UPDATEMIMEDATABASE=off \
-DKLF_INSTALL_SHARE_MAN1_DIR=man/man1
post-patch:
${REINPLACE_CMD} '/CMAKE_SYSTEM_NAME STREQUAL/s,Linux,FreeBSD,' \
${WRKSRC}/src/klftools/CMakeLists.txt
.include <bsd.port.mk>