freebsd-ports/games/vor/Makefile
Stanislav Sedov 0d2725682b - Update devel/sdl12 to version 1.2.11. Now we employ stock SDL directory
structure (i.e. include/SDL for includes and sdl-config for configuration
   binary)
 - Update graphics/sdl_ttf to version 2.0.8
 - Update graphics/sdl_image to version 1.2.5
 - Update audio/sdl_mixer to version 1.2.7
 - Update net/sdl_net to version 1.2.6
 - Update Mk/bsd.sdl.mk accordingly
 - Fix dependent ports to fit the new directory structure and avoid several
   API breakages
 - Bump up portrevisions for all dependent ports to allow them to be upgraded
   by portupgrade/portmaster etc tools

Approved by:    kris (portmgr), sem (mentor)
2006-09-20 11:21:59 +00:00

51 lines
1.3 KiB
Makefile

# New ports collection makefile for: vor
# Date created: 07 Sep 2005
# Whom: Dmitry Marakasov <amdmi3@mail.ru>
#
# $FreeBSD$
#
PORTNAME= vor
PORTVERSION= 0.4
PORTREVISION= 1
CATEGORIES= games
MASTER_SITES= http://qualdan.com/vor/
MAINTAINER= amdmi3@mail.ru
COMMENT= Dodge the rocks until you die
BUILD_DEPENDS= ${LOCALBASE}/include/argp.h:${PORTSDIR}/devel/argp-standalone
USE_SDL= mixer image sdl
USE_BZIP2= yes
USE_GMAKE= yes
PORTDOCS= README
.include <bsd.port.pre.mk>
post-patch:
@${REINPLACE_CMD} -e 's|SDL/||' ${WRKSRC}/sound.c
@${REINPLACE_CMD} -e 's|sdl-config|${SDL_CONFIG}|g' ${WRKSRC}/Makefile
@${REINPLACE_CMD} -e 's|^\(my_objects.*\)$$|\1 ${LOCALBASE}/lib/libargp.a|' ${WRKSRC}/Makefile
@${REINPLACE_CMD} -e 's|/usr/share/vor|${DATADIR}|' ${WRKSRC}/Makefile
.if (${OSVERSION} < 500000)
@${REINPLACE_CMD} -e 's|UINT32_MAX|0xffffffffU|' ${WRKSRC}/mt.c
@${REINPLACE_CMD} -e 's|INT32_MIN|(-0x7fffffff-1)|' ${WRKSRC}/mt.c
.endif
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/vor ${PREFIX}/bin
.for d in banners fonts icons indicators music sounds sprites
${MKDIR} ${DATADIR}/${d}
${INSTALL_DATA} ${WRKSRC}/data/${d}/* ${DATADIR}/${d}/
.endfor
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
.for f in ${PORTDOCS}
${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}
.endfor
.endif
.include <bsd.port.post.mk>