freebsd-ports/games/untahris/Makefile

46 lines
1 KiB
Makefile
Raw Normal View History

# New ports collection makefile for: untahris
# Date created: 08 Sep 2006
# Whom: Dmitry Marakasov <amdmi3@amdmi3.ru>
#
# $FreeBSD$
#
PORTNAME= untahris
2009-07-08 03:32:43 +02:00
PORTVERSION= 3.1
PORTREVISION= 3
CATEGORIES= games
MASTER_SITES= SF
2009-07-08 03:32:43 +02:00
EXTRACT_SUFX= -src.tgz
MAINTAINER= amdmi3@FreeBSD.org
COMMENT= Play several classic fun, simple arcade games in multiplayer mode
USE_SDL= sdl net ttf mixer
2009-07-08 03:32:43 +02:00
PORTDOCS= *
WRKSRC= ${WRKDIR}/${PORTNAME}
.include <bsd.port.pre.mk>
post-patch:
@${REINPLACE_CMD} -e 's|VeraBd.ttf|${DATADIR}/VeraBd.ttf|; \
s|graph%d|${DATADIR}/&|; s|[a-z]*\.wav|${DATADIR}/&|' \
${WRKSRC}/intface.cpp
do-build:
cd ${WRKSRC} && ${CXX} ${CXXFLAGS} `${SDL_CONFIG} --libs --cflags` \
-lSDL_net -lSDL_ttf -lSDL_mixer untahris.cpp -o untahris
do-install:
2009-07-08 03:32:43 +02:00
${INSTALL_PROGRAM} ${WRKSRC}/untahris ${PREFIX}/bin/
${MKDIR} ${DATADIR}
2009-07-08 03:32:43 +02:00
.for f in VeraBd.ttf graph16*.unt *.wav
${INSTALL_DATA} ${WRKSRC}/${f} ${DATADIR}/
.endfor
2009-07-08 03:32:43 +02:00
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/docs/* ${DOCSDIR}/
.endif
.include <bsd.port.post.mk>