summaryrefslogtreecommitdiff
path: root/graphics/xpaint/Makefile
blob: 7a7e4ae12be11f6a02d155eefb4fad1f83998ab1 (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
47
# $NetBSD: Makefile,v 1.80 2020/03/20 11:57:53 nia Exp $

DISTNAME=	xpaint-2.7.8.1
PKGREVISION=	11
CATEGORIES=	graphics x11
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE:=sf-xpaint/}
EXTRACT_SUFX=	.tar.bz2

MAINTAINER=	adam@NetBSD.org
HOMEPAGE=	http://sf-xpaint.sourceforge.net/
COMMENT=	Simple paint program

USE_IMAKE=	yes
MAKE_ENV+=	XMKMF=${XMKMF:Q}
MAKE_JOBS_SAFE=	NO

SUBST_CLASSES+=		foo
SUBST_STAGE.foo=	pre-configure
SUBST_FILES.foo=	Local.config configure
SUBST_VARS.foo=		LOCALBASE
SUBST_VARS.foo+=	PREFIX
SUBST_SED.foo+=		-e "s|@XAWDIR@|${BUILDLINK_PREFIX.libXaw3d}|g"
SUBST_SED.foo+=		-e "s|@XPMDIR@|${BUILDLINK_PREFIX.libXpm}|g"

INSTALLATION_DIRS+=	bin lib/X11/app-defaults ${PKGMANDIR}/cat1
INSTALLATION_DIRS+=	share/xpaint
INSTALLATION_DIRS+=	share/xpaint/include
INSTALLATION_DIRS+=	share/xpaint/c_scripts
INSTALLATION_DIRS+=	share/xpaint/c_scripts/3d_surfaces
INSTALLATION_DIRS+=	share/xpaint/c_scripts/filters
INSTALLATION_DIRS+=	share/xpaint/c_scripts/images
INSTALLATION_DIRS+=	share/xpaint/c_scripts/layers
INSTALLATION_DIRS+=	share/xpaint/c_scripts/procedures
INSTALLATION_DIRS+=	share/xpaint/c_scripts/3d_curves
INSTALLATION_DIRS+=	share/xpaint/help
INSTALLATION_DIRS+=	share/xpaint/messages

pre-configure:
	cd ${WRKSRC} && ./configure xaw3dg

.include "../../mk/jpeg.buildlink3.mk"
.include "../../graphics/png/buildlink3.mk"
.include "../../graphics/tiff/buildlink3.mk"
.include "../../x11/libXext/buildlink3.mk"
.include "../../x11/libXpm/buildlink3.mk"
.include "../../x11/libXaw3d/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"