summaryrefslogtreecommitdiff
path: root/games/nazghul/Makefile
blob: 7b678bd1370159eabb8c3810be3040fc4d46a44d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# New ports collection makefile for:	nazghul
# Date created:		2006-08-02
# Whom:			Jose Alonso Cardenas Marquez <acm@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=	nazghul
PORTVERSION=	0.5.6
PORTREVISION=	2
CATEGORIES=	games
MASTER_SITES=	SF

MAINTAINER=	acm@FreeBSD.org
COMMENT=	A computer role-playing game engine

LIB_DEPENDS=	png.5:${PORTSDIR}/graphics/png

USE_SDL=	sdl image
USE_GMAKE=	yes
GNU_CONFIGURE=	yes
CONFIGURE_TARGET=	--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
LDFLAGS+=	-lpng
MAKE_ENV=	LDFLAGS="${LDFLAGS}"

post-patch:
	${REINPLACE_CMD} -i "" 's|malloc.h|stdlib.h|g' ${WRKSRC}/src/scheme.c

post-configure:
	${REINPLACE_CMD} -i "" -e 's|^LDFLAGS =*|LDFLAGS =-lpng|g' ${WRKSRC}/src/Makefile

.include <bsd.port.mk>