pkgsrc/games/glchess/Makefile
jlam fcb7da800b Remove mk/autoconf.mk and mk/automake.mk and replace their usage with
USE_TOOLS and any of "autoconf", "autoconf213", "automake" or
"automake14".  Also, we don't need to call the auto* tools via
${ACLOCAL}, ${AUTOCONF}, etc., since the tools framework takes care
to symlink the correct tool to the correct name, so we can just use
aclocal, autoconf, etc.
2005-06-01 20:07:59 +00:00

38 lines
1.1 KiB
Makefile

# $NetBSD: Makefile,v 1.13 2005/06/01 20:08:00 jlam Exp $
#
DISTNAME= glchess-0.4.7
PKGREVISION= 5
CATEGORIES= games
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=glchess/}
MAINTAINER= tech-pkg@NetBSD.org
HOMEPAGE= http://glchess.sourceforge.net/
COMMENT= 3D chess interface
USE_TOOLS+= automake
GNU_CONFIGURE= YES
INSTALL_DIRS= ${WRKSRC}/src ${WRKSRC}/man ${WRKSRC}/textures
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 \
${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"