1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-08 06:48:28 +00:00
freebsd-ports/games/nlarn/Makefile
Martin Wilke d4825fa7da NLarn is a roguelike game and as such a remake of the classic game Larn.
Very noticeable differences to the original so far include:

    - advanced user interface
    - extremely different item handling
    - extended monster AI
    - a real town
    - colour

WWW: http://nlarn.sourceforge.net/

PR:		ports/162393
Submitted by:	Martin Tournoij <martin@arp242.net>
2012-01-28 10:29:36 +00:00

43 lines
1017 B
Makefile

# Ports collection makefile for: games/nlarn
# Date created: 2011-11-08
# Whom: Martin Tournoij <martin@arp242.net>
#
# $FreeBSD$
#
PORTNAME= nlarn
PORTVERSION= 0.7
CATEGORIES= games
MASTER_SITES= SF
MAINTAINER= martin@arp242.net
COMMENT= Roguelike game and as such a remake of the classic game Larn
LICENSE= GPLv3
BUILD_DEPENDS= premake4:${PORTSDIR}/devel/premake4
WRKSRC= ${WRKDIR}/jaydg-nlarn-NLarn-${PORTVERSION}.0
USE_LUA= 5.1
USE_GNOME= glib20
USE_GMAKE= yes
do-configure:
cd ${WRKSRC} && ${LOCALBASE}/bin/premake4 --os=bsd gmake
post-configure:
@${REINPLACE_CMD} 's|$$(ARCH)||g; \
s|-I${LOCALBASE}|-I${LUA_INCDIR} -I${LOCALBASE}|g; \
s|-lz|-lz -llua-5.1 -lncurses -lpanel|g;' \
${WRKSRC}/nlarn.make
@${REINPLACE_CMD} 's|/usr/share/games/nlarn|${DATADIR}|' \
${WRKSRC}/src/game.c
do-install:
${MKDIR} ${DATADIR}
${INSTALL_PROGRAM} ${WRKSRC}/nlarn ${PREFIX}/bin/
${INSTALL_DATA} ${WRKSRC}/README.txt ${WRKSRC}/nlarn.ini-sample ${WRKSRC}/lib/* ${DATADIR}/
.include <bsd.port.mk>