summaryrefslogtreecommitdiff
path: root/graphics/nplot/Makefile
blob: 3a24cc0b804f841b97aed3356aafa94dc465f2f1 (plain)
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
46
47

PORTNAME=	nplot
PORTVERSION=	0.9.11
PORTREVISION=	1
CATEGORIES=	graphics

MAINTAINER=	cs@innolan.dk
COMMENT=	Charting library for .NET

LICENSE=	BSD2CLAUSE
LICENSE_FILE=	${WRKSRC}/LICENSE

LIB_DEPENDS=	libgdiplus.so:x11-toolkits/libgdiplus \
		libcairo.so:graphics/cairo
RUN_DEPENDS=	webfonts>=0:x11-fonts/webfonts

USE_GITHUB=	yes
GH_ACCOUNT=	mhowlett
GH_TAGNAME=	9a92e78

SUB_FILES=	NPlot.pc
USES=		mono ssl

PLIST_FILES=	lib/mono/NPlot/NPlot.dll \
		lib/mono/gac/NPlot/0.9.11.0__1d82a50c5d01c44e/NPlot.dll \
		libdata/pkgconfig/NPlot.pc

.include <bsd.port.pre.mk>

.if defined(MONO_DEFAULT) && ${MONO_DEFAULT} > 6
BROKEN=		fails to build with Mono version ${MONO_DEFAULT}: Failure adding assembly dbus-sharp.dll to the cache: Strong name cannot be verified for delay-signed assembly
.endif

pre-build:
	openssl enc -base64 -d <${PATCHDIR}/Dynamic.key >${WRKSRC}/src/Dynamic.snk

do-build:
	(cd ${WRKSRC}/src && ${SETENV} ${MAKE_ENV} xbuild NPlot.csproj \
		/p:Configuration=Release /p:SignAssembly=true \
		/p:AssemblyOriginatorKeyFile=Dynamic.snk)

do-install:
	(cd ${WRKSRC}/src && ${SETENV} MONO_SHARED_DIR=${WRKDIR} ${LOCALBASE}/bin/gacutil \
		-root ${STAGEDIR}${PREFIX}/lib/ -package NPlot -i bin/NPlot.dll)
	(cd ${WRKDIR} && ${INSTALL_DATA} NPlot.pc ${STAGEDIR}${PREFIX}/libdata/pkgconfig)

.include <bsd.port.post.mk>