aboutsummaryrefslogtreecommitdiff
path: root/x11-toolkits/gtkmathview/Makefile
blob: 38d4554f71548368aa4b50f76c4bbbe9355e84ba (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# Created by: ijliao

PORTNAME=	gtkmathview
PORTVERSION=	0.8.0
PORTREVISION=	11
CATEGORIES=	x11-toolkits
MASTER_SITES=	http://helm.cs.unibo.it/mml-widget/sources/

MAINTAINER=	ports@FreeBSD.org
COMMENT=	GTK Widget to Render MathML Documents

LICENSE=	LGPL3
LICENSE_FILE=	${WRKSRC}/COPYING

.if ${/usr/bin/ld:L:tA} == /usr/bin/ld.lld
BROKEN=		ld: error: ../src/backend/ps/.libs/libmathview_backend_ps.so: undefined reference to T1_AddToFileSearchPath
.endif

BUILD_DEPENDS=	xsltproc:textproc/libxslt
LIB_DEPENDS=	libpopt.so:devel/popt \
		libt1.so:devel/t1lib \
		libgmetadom_gdome_cpp_smart.so:textproc/gmetadom

GNU_CONFIGURE=	yes
USES=		compiler:c++11-lang gmake gnome libtool localbase:ldflags \
		pathfix pkgconfig
USE_GNOME=	gtk20 libxml2 pangox-compat
INSTALL_TARGET=	install-strip
USE_LDCONFIG=	yes

CXXFLAGS+=	${CXXFLAGS_${CHOSEN_COMPILER_TYPE}}
CXXFLAGS_clang=	-Wno-c++11-narrowing
CXXFLAGS_gcc=	-Wno-error=narrowing

post-patch:
	@${REINPLACE_CMD} '/-lstdc++/d' ${WRKSRC}/src/Makefile.in \
		${WRKSRC}/src/view/Makefile.in ${WRKSRC}/viewer/Makefile.in
	@${REINPLACE_CMD} '/^mathmlps_LDADD =/s|=|= ../src/libmathview.la|' \
		${WRKSRC}/mathmlps/Makefile.in
	@${REINPLACE_CMD} '/^mathmlsvg_LDADD =/s|=|= $$(XML_LIBS) ../src/libmathview.la|' \
		${WRKSRC}/mathmlsvg/Makefile.in
	@${REINPLACE_CMD} '/^test_rendering_LDADD =/s|=|= ../src/libmathview.la|' \
		${WRKSRC}/viewer/Makefile.in

.include <bsd.port.mk>