1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-15 23:50:44 +00:00
freebsd-ports/games/gltron/Makefile

49 lines
1.1 KiB
Makefile
Raw Normal View History

# New ports collection makefile for: gltron
# Date created: 24 July 1999
# Whom: Andrey Zakhvatov
#
1999-08-25 06:06:33 +00:00
# $FreeBSD$
#
2000-04-14 06:43:02 +00:00
PORTNAME= gltron
PORTVERSION= 0.59
CATEGORIES= games
MASTER_SITES= http://gltron.sourceforge.net/download/
2000-03-29 09:02:04 +00:00
MAINTAINER= will@FreeBSD.org
LIB_DEPENDS= SDL_mixer.2:${PORTSDIR}/audio/sdl_mixer \
glut.3:${PORTSDIR}/graphics/Mesa3 \
png.3:${PORTSDIR}/graphics/png
.if defined(NO_SOUND)
SOUND=""
.else
SOUND="-DSOUND"
.endif
USE_X_PREFIX= yes
GNU_CONFIGURE= yes
USE_GMAKE= yes
MAKE_ENV+= OPT="${CFLAGS}" SOUND="${SOUND}"
pre-build:
${PERL} -pi -e "s+#include <SDL\/+#include <+g" ${WRKSRC}/*.[ch]
do-install:
@${MKDIR} ${PREFIX}/share/gltron/ ${PREFIX}/bin
${INSTALL_DATA} ${WRKSRC}/data/*tx* ${WRKSRC}/data/*.png ${WRKSRC}/data/*.obj \
${WRKSRC}/data/*mtl ${WRKSRC}/data/*.it ${WRKSRC}/sounds/*wav \
${PREFIX}/share/gltron
${INSTALL_PROGRAM} ${WRKSRC}/gltron ${PREFIX}/bin
post-install:
.if !defined(NOPORTDOCS)
@${MKDIR} ${PREFIX}/share/doc/gltron
.for file in CHANGELOG CREDITS README
${INSTALL_DATA} ${WRKSRC}/${file} ${PREFIX}/share/doc/gltron
.endfor
.endif
.include <bsd.port.mk>