aboutsummaryrefslogtreecommitdiffstats
path: root/games/naev/Makefile
blob: fe2d11e13080f357ab7150c93eaaa3bc73eb616e (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
45
46
47
48
49
50
51
52
53
54
55
# New ports collection makefile for:    naev
# Date created:     2009-04-26
# Whom:         Jose Alonso Cardenas Marquez <acm@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=   naev
PORTVERSION=    0.3.9
CATEGORIES= games
MASTER_SITES=   ${MASTER_SITE_GOOGLE_CODE}
DIST_SUBDIR=    ${PORTNAME}

MAINTAINER= acm@FreeBSD.org
COMMENT=    A 2d action/rpg space game

LIB_DEPENDS=    png.5:${PORTSDIR}/graphics/png \
        freetype:${PORTSDIR}/print/freetype2
RUN_DEPENDS=    ${LOCALBASE}/share/${PORTNAME}/ndata-${PORTVERSION}:${PORTSDIR}/games/naev-data

USE_BZIP2=  yes
USE_DOS2UNIX=   conf.example
USE_GL=     gl
USE_GMAKE=  yes
USE_GNOME=  libxml2
USE_SDL=    sdl image mixer

PLIST_FILES=    bin/${PORTNAME}
SUB_FILES=  pkg-message

.include <bsd.port.pre.mk>

.if ${ARCH} == i386
BROKEN=     does not build
.endif

.if !defined(NOPORTDOCS)
PLIST_FILES+=   %%DOCSDIR%%/conf.example
PLIST_DIRS= %%DOCSDIR%%
.endif

post-patch:
    @${REINPLACE_CMD} -i "" -e 's|%%DATADIR%%|${DATADIR}|g' -e 's|%%PORTVERSION%%|${PORTVERSION}|g' ${WRKSRC}/Makefile

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin/${PORTNAME}
.if !defined(NOPORTDOCS)
    @${MKDIR} ${DOCSDIR}
    ${INSTALL_DATA} ${WRKSRC}/conf.example ${DOCSDIR}
.endif

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

.include <bsd.port.post.mk>