pkgsrc/graphics/ploticus/Makefile
2017-02-28 15:19:58 +00:00

46 lines
1.2 KiB
Makefile

# $NetBSD: Makefile,v 1.55 2017/02/28 15:20:06 ryoon Exp $
DISTNAME= ploticus242_src
PKGNAME= ploticus-2.42
PKGREVISION= 5
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"