1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-18 03:46:03 +00:00
freebsd-ports/games/ivan/Makefile
Florent Thoumie d4f0d0048a - Welcome X.org 7.2 \o/.
- Set X11BASE to ${LOCALBASE} for recent ${OSVERSION}.
- Bump PORTREVISION for ports intalling files in ${X11BASE}.
2007-05-19 20:36:56 +00:00

46 lines
1.1 KiB
Makefile

# New ports collection makefile for: ivan
# Date created: 11 Nov 2005
# Whom: Dmitry Marakasov <amdmi3@amdmi3.ru>
#
# $FreeBSD$
#
PORTNAME= ivan
PORTVERSION= 0.50
PORTREVISION= 2
CATEGORIES= games
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ivan
MAINTAINER= amdmi3@amdmi3.ru
COMMENT= A graphical roguelike game
USE_SDL= sdl
USE_GMAKE= yes
GNU_CONFIGURE= yes
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ARGS= --localstatedir=/var/games
STATEDIR= /var/games/ivan
post-patch:
@${REINPLACE_CMD} -e 's|IvanSave|.IvanSave|g' ${WRKSRC}/Main/Source/game.cpp
@${REINPLACE_CMD} -Ee 's|(fearray<type>::~?fearray)<type>|\1|' \
${WRKSRC}/FeLib/Include/fearray.h
@${REINPLACE_CMD} -Ee 's|([a-z]+<[a-z ,]+>::~?[a-z]+)<[a-z ,]+>|\1|' \
${WRKSRC}/Main/Source/script.cpp
post-install:
${CHGRP} games ${PREFIX}/bin/ivan
${CHMOD} g+s ${PREFIX}/bin/ivan
.if !exists(${STATEDIR})
${MKDIR} ${STATEDIR}
${TOUCH} ${STATEDIR}/ivan-highscore.scores
${MKDIR} ${STATEDIR}/Bones
${CHGRP} -R games ${STATEDIR}
${CHMOD} -R g+w ${STATEDIR}
.endif
.include <bsd.port.mk>