summaryrefslogtreecommitdiff
path: root/games/oolite/Makefile
blob: f9fbf3c1c98d2cabaf815d402834ed63f3f712f2 (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
# New ports collection makefile for:    oolite
# Date created:         04 Oct 2005
# Whom:                 Andriy Gapon <avg@icyb.net.ua>
#
# $FreeBSD$
#

PORTNAME=	oolite
PORTVERSION=	1.65
CATEGORIES=	games
MASTER_SITES=	http://download.berlios.de/oolite-linux/ \
		http://download2.berlios.de/oolite-linux/ \
		ftp://ftp.alioth.net/oolite/
DISTFILES=	${PORTNAME}-${PORTVERSION}-src${EXTRACT_SUFX} \
		${PORTNAME}-${PORTVERSION}-data${EXTRACT_SUFX}

MAINTAINER=	avg@icyb.net.ua
COMMENT=	Trade and combat space simulator, clone of Elite

WRKSRC=			${WRKDIR}/${PORTNAME}-${PORTVERSION}-src
USE_SDL=		mixer image gfx
USE_GMAKE=		yes
USE_GNUSTEP=		yes
USE_GNUSTEP_BASE=	yes
USE_GNUSTEP_BUILD=	yes
USE_GNUSTEP_PREFIX=	yes
MAKEFILE=		GNUmakefile
SUB_FILES=		pkg-message
PKGMESSAGE=		${WRKDIR}/pkg-message

post-patch:
	${REINPLACE_CMD} -e "s#sdl-config#${SDL_CONFIG}#g" ${WRKSRC}/${MAKEFILE}

do-install:
	${MKDIR} ${GNUSTEP_PREFIX}/Local/Applications
	${CP} -R ${WRKSRC}/oolite.app ${GNUSTEP_PREFIX}/Local/Applications
	${STRIP_CMD} ${GNUSTEP_PREFIX}/Local/Applications/oolite.app/oolite

post-install:
	${CAT} ${PKGMESSAGE}

.include <bsd.port.mk>