summaryrefslogtreecommitdiff
path: root/games/glchess/Makefile
blob: faf65cc20e75840ce8d4089ec151cef8ada5b3c6 (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
# $NetBSD: Makefile,v 1.17 2008/07/14 12:56:04 joerg Exp $
#

DISTNAME=	glchess-0.4.7
PKGREVISION=	6
CATEGORIES=	games
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE:=glchess/}

MAINTAINER=	pkgsrc-users@NetBSD.org
HOMEPAGE=	http://glchess.sourceforge.net/
COMMENT=	3D chess interface

PKG_DESTDIR_SUPPORT=	user-destdir

USE_TOOLS+=	automake
GNU_CONFIGURE=	YES
INSTALL_DIRS=	${WRKSRC}/src ${WRKSRC}/man ${WRKSRC}/textures

INSTALLATION_DIRS=	etc

pre-configure:
	cd ${WRKSRC} &&						\
	aclocal &&						\
	automake --add-missing &&				\
	autoconf &&						\
	${CP} glchessrc glchessrc.dist &&			\
	${SED}	-e 's|/usr/local/share/games|${PREFIX}/share|g'	\
		 < glchessrc.dist > glchessrc &&		\
	${CP} src/config.c src/config.c.dist &&			\
	${SED}	-e 's|/etc|${PKG_SYSCONFDIR}|g'			\
		-e 's|@PKGETC@|${PREFIX}/etc|g'			\
		< src/config.c.dist > src/config.c

post-install:
	${INSTALL_DATA} ${WRKSRC}/glchessrc			\
	    ${DESTDIR}${PREFIX}/etc/glchessrc.default

.include "../../graphics/MesaLib/buildlink3.mk"
.include "../../graphics/glu/buildlink3.mk"
.include "../../x11/gtkglarea/buildlink3.mk"
.include "../../x11/gtk/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"