summaryrefslogtreecommitdiff
path: root/games/abuse_sdl/Makefile
blob: 25bfc2f8a2d88eefd34ed9c94488f85481df1859 (plain) (blame)
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
33
34
35
36
37
38
39
40
41
42
43
44
# New ports collection makefile for:	abuse_sdl
# Date created:				11 May 2002
# Whom:					des
#
# $FreeBSD$
#

PORTNAME=	abuse_sdl
PORTVERSION=	0.7.1
CATEGORIES=	games
MASTER_SITES=	http://abuse.zoy.org/raw/Downloads/ \
		http://epix.linux.tucows.com/files/ \
		http://blueyonder.linux.tucows.com/files/ \
		http://casemanl.linux.tucows.com/files/
DISTNAME=	abuse-${PORTVERSION}

MAINTAINER=	ports@FreeBSD.org
COMMENT=	An SDL port of the Abuse game engine

# Add in the oposite, request games/abuse if being installed directly
# Instead of games/abuse
RUN_DEPENS=	abuse:${PORTSDIR}/games/abuse

USE_GL=		gl
USE_SDL=	sdl
USE_GMAKE=	yes
GNU_CONFIGURE=	yes
CONFIGURE_ENV=	CPPFLAGS="-I${LOCALBASE}/include" \
		LDFLAGS="-L${LOCALBASE}/lib"
WRKSRC=		${WRKDIR}/${DISTNAME}

MAN6=		abuse.6

PLIST_FILES=	bin/abuse.sdl \
		share/abuse_sdl/abuse.bmp \
		share/abuse_sdl/abuse.lsp \
		share/abuse_sdl/abuse.png

PLIST_DIRS=	share/abuse_sdl

post-patch:
	@${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|g' ${WRKSRC}/configure

.include <bsd.port.mk>