1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-18 19:49:40 +00:00
freebsd-ports/graphics/nplot/Makefile
Mathieu Arnold cf118ccf87
One more small cleanup, forgotten yesterday.
Reported by:	lwhsu
2021-04-07 10:09:01 +02:00

47 lines
1.3 KiB
Makefile

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>