summaryrefslogtreecommitdiff
path: root/games/eboard/Makefile
blob: e6b06b2ffcca671dcbf668493222effeafae0352 (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
# $NetBSD: Makefile,v 1.12 2010/09/14 11:01:47 wiz Exp $
#

DISTNAME=		eboard-1.0.4
PKGREVISION=		4
CATEGORIES=		games
MASTER_SITES=		${MASTER_SITE_SOURCEFORGE:=eboard/}
EXTRACT_SUFX=		.tar.bz2

MAINTAINER=		pkgsrc-users@NetBSD.org
HOMEPAGE=		http://eboard.sourceforge.net/
COMMENT=		Graphical user interface for playing chess

PKG_DESTDIR_SUPPORT=	user-destdir

USE_PKGLOCALEDIR=	yes
HAS_CONFIGURE=		yes
CONFIGURE_ENV+=		PKGMANDIR=${PKGMANDIR}
CONFIGURE_ARGS+=	--prefix=${PREFIX}
CONFIGURE_ARGS+=	--man-prefix=${PREFIX}/${PKGMANDIR}
USE_LANGUAGES=		c c++
USE_TOOLS+=		perl gmake pkg-config
CONFIG_SHELL=		perl
REPLACE_PERL+=		configure
LDFLAGS+=		${LIBOSSAUDIO}

SUBST_CLASSES+=		mf
SUBST_STAGE.mf=		post-configure
SUBST_MESSAGE.mf=	Fixing autogenerated Makefile
SUBST_FILES.mf=		Makefile
SUBST_SED.mf=		-e 's/^CXXFLAGS.*=/CXXFLAGS += $${CPPFLAGS} /'
SUBST_SED.mf+=		-e 's/^LDFLAGS.*=/LDFLAGS += $${CXXFLAGS}/'

.include "../../mk/oss.buildlink3.mk"
.include "../../x11/gtk2/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"