aboutsummaryrefslogblamecommitdiff
path: root/graphics/nplot/Makefile
blob: 3e8705564463c135225c503910e766b9866b7423 (plain) (tree)
1
2
3
4
5
6
7
8
9
                     
                      
                 
                        


                                         
                                
 
                          





                                                       



                        
                        
                        
 



                                                                         





                                                                                                                                                                               






                                                                                  

           


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

MAINTAINER=	cs@innolan.dk
COMMENT=	Charting library for .NET
WWW=		http://nplot.com

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>