summaryrefslogtreecommitdiff
path: root/graphics/qcustomplot-qt5/Makefile
blob: 63208ad068e080c4a6b38cd25be00cab85bc22eb (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

PORTNAME=	qcustomplot
DISTVERSION=	2.0.1
CATEGORIES=	graphics
MASTER_SITES=	https://www.qcustomplot.com/release/${PORTVERSION}/
PKGNAMESUFFIX=	${SUFFIX}
DISTNAME=	QCustomPlot
DIST_SUBDIR=	${PORTNAME}-${DISTVERSION}

MAINTAINER=	yuri@FreeBSD.org
COMMENT=	Qt C++ widget for plotting and data visualization

LICENSE=	GPLv3
LICENSE_FILE=	${WRKSRC}/GPL.txt

USES=		compiler:c++11-lang pkgconfig qt:5
USE_QT=		core gui widgets printsupport buildtools_build
USE_LDCONFIG=	yes

WRKSRC=		${WRKDIR}/${PORTNAME}

SUFFIX=		-qt5

PLIST_FILES=	include/qcustomplot.h \
		lib/libQCustomPlot${SUFFIX}.so

do-build:
	@cd ${WRKSRC} && \
		${MOC} qcustomplot.h > qcustomplot_moc.cpp && \
		${CXX} ${CXXFLAGS} -shared -fPIC \
			-I${PREFIX}/include \
			`pkg-config --cflags --libs Qt5Core Qt5Gui Qt5Widgets Qt5PrintSupport` \
			qcustomplot.cpp \
			qcustomplot_moc.cpp \
			-o ${WRKSRC}/libQCustomPlot${SUFFIX}.so \
			-Wl,-soname,libQCustomPlot${SUFFIX}.so

do-install:
	${INSTALL_DATA} ${WRKSRC}/qcustomplot.h ${STAGEDIR}${PREFIX}/include
	${INSTALL_LIB} ${WRKSRC}/libQCustomPlot${SUFFIX}.so ${STAGEDIR}${PREFIX}/lib

.include <bsd.port.mk>