summaryrefslogtreecommitdiff
path: root/graphics/ploticus/Makefile
blob: f3a7843c55036bc1fc3fac14ce1a514f63c63342 (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
# $NetBSD: Makefile,v 1.54 2016/08/03 10:22:55 adam Exp $

DISTNAME=	ploticus242_src
PKGNAME=	ploticus-2.42
PKGREVISION=	4
CATEGORIES=	graphics
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE:=ploticus/}

MAINTAINER=	pkgsrc-users@NetBSD.org
HOMEPAGE=	http://ploticus.sourceforge.net/
COMMENT=	Versatile data visualization engine
LICENSE=	gnu-gpl-v2

WRKSRC=			${WRKDIR}/${DISTNAME:S/_src//}

BUILD_DIRS=	src
BUILD_TARGET=	pl

DOCSRC=		${WRKSRC}/pltestsuite
PREFABSRC=	${WRKSRC}/prefabs

DOCDST=		share/doc/ploticus
PREFABDST=	share/ploticus

MAKE_ENV+=	XLIBS="-L${X11BASE}/lib -lX11"
MAKE_ENV+=	XINCLUDEDIR="-I${X11BASE}/include"

SUBST_CLASSES+=		prefab
SUBST_STAGE.prefab=	pre-configure
SUBST_MESSAGE.prefab=	Hardcode PLOTICUS_PREFABS.
SUBST_FILES.prefab=	src/pl.h
SUBST_VARS.prefab=	PREFIX

INSTALLATION_DIRS+=	${DOCDST} ${PREFABDST}

post-install:
	${INSTALL_DATA} ${DOCSRC}/* ${DESTDIR}${PREFIX}/${DOCDST}
	${INSTALL_DATA} ${PREFABSRC}/* ${DESTDIR}${PREFIX}/${PREFABDST}

.include "../../devel/zlib/buildlink3.mk"
.include "../../graphics/gd/buildlink3.mk"
.include "../../mk/jpeg.buildlink3.mk"
.include "../../graphics/png/buildlink3.mk"
.include "../../graphics/freetype2/buildlink3.mk"
.include "../../x11/libX11/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"