2009-11-18 21:03:01 +01:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= klatexformula
|
2014-09-04 20:28:37 +02:00
|
|
|
PORTVERSION= 3.2.11
|
2016-03-24 16:47:50 +01:00
|
|
|
PORTREVISION= 2
|
2009-11-18 21:03:01 +01:00
|
|
|
CATEGORIES= graphics
|
|
|
|
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION}
|
|
|
|
|
|
|
|
MAINTAINER= makc@FreeBSD.org
|
|
|
|
COMMENT= Convert LaTeX formula to image
|
|
|
|
|
2014-04-18 11:40:35 +02:00
|
|
|
BUILD_DEPENDS= help2man:${PORTSDIR}/misc/help2man
|
|
|
|
|
2015-07-16 22:53:28 +02:00
|
|
|
USES= cmake:outsource desktop-file-utils ghostscript:run \
|
|
|
|
shared-mime-info
|
2015-02-24 22:46:28 +01:00
|
|
|
USE_QT4= gui xml dbus designer_build linguisttools_build \
|
2009-11-18 21:03:01 +01:00
|
|
|
qmake_build moc_build rcc_build uic_build
|
2013-05-11 19:58:55 +02:00
|
|
|
USE_TEX= latex dvipsk
|
2013-10-23 14:06:27 +02:00
|
|
|
CMAKE_ARGS= -DQT_QMAKE_EXECUTABLE_FINDQT=${QMAKE} \
|
|
|
|
-DKLF_BUILD_KTEXTEDITORPLUGIN=off \
|
2014-04-18 11:40:35 +02:00
|
|
|
-DKLF_INSTALL_POST_UPDATEMIMEDATABASE=off \
|
|
|
|
-DKLF_INSTALL_SHARE_MAN1_DIR=man/man1
|
2014-08-26 16:06:08 +02:00
|
|
|
CXXFLAGS+= -I${LOCALBASE}/include
|
|
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
2009-11-18 21:03:01 +01:00
|
|
|
|
2013-10-23 14:06:27 +02:00
|
|
|
PLIST_SUB= VERSION=${PORTVERSION}
|
2009-11-18 21:03:01 +01:00
|
|
|
|
2014-08-26 16:06:08 +02:00
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} '/link_libraries(klatexformula /s/)/ -lX11)/' \
|
|
|
|
${WRKSRC}/src/CMakeLists.txt
|
|
|
|
|
2009-11-18 21:03:01 +01:00
|
|
|
.include <bsd.port.mk>
|