summaryrefslogtreecommitdiff
path: root/x11/gcolor2/Makefile
blob: ff15abb14d3f515cf3a4f5904dd0eeda263d8300 (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
# $NetBSD: Makefile,v 1.2 2016/07/09 06:39:16 wiz Exp $

DISTNAME=	gcolor2-0.4
PKGREVISION=	1
CATEGORIES=	x11
MASTER_SITES=	${MASTER_SITE_GENTOO:=distfiles/}

MAINTAINER=	pkgsrc-users@NetBSD.org
HOMEPAGE=	http://gcolor2.sourceforge.net/
COMMENT=	Simple color selector
LICENSE=	gnu-gpl-v2

GNU_CONFIGURE=	yes
USE_TOOLS+=	gmake perl pkg-config

BUILD_DEPENDS+=	p5-XML-Parser>=2.31nb1:../../textproc/p5-XML-Parser

SUBST_CLASSES+=		df
SUBST_STAGE.df=		post-configure
SUBST_MESSAGE.df=	Fixing icon reference in desktop file
SUBST_FILES.df=		${PKGBASE}.desktop
SUBST_SED.df=		-e 's:/usr/share:${PREFIX}/share:1'

AUTO_MKDIRS=	yes

post-extract:
	${RUN}${CP} ${FILESDIR}/${PKGBASE}.desktop ${WRKSRC}/

post-install:
	${RUN}${INSTALL_DATA} ${WRKSRC}/${PKGBASE}.desktop ${DESTDIR}${PREFIX}/share/applications

.include "../../sysutils/desktop-file-utils/desktopdb.mk"
.include "../../x11/gtk2/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"