aboutsummaryrefslogtreecommitdiffstats
path: root/games/edge/Makefile
blob: 2ccd95c678f1269d70f5fd71653b4bbce53af3cf (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:    edge
# Date created:             2007-11-30
# Whom:                 alepulver
#
# $FreeBSD$
#

PORTNAME=   edge
PORTVERSION=    1.29
PORTREVISION=   2
CATEGORIES= games
MASTER_SITES=   SF
DISTNAME=   ${PORTNAME}-${PORTVERSION}-source
DISTFILES=  ${DISTNAME}${EXTRACT_SUFX} \
        ${PORTNAME}-${PORTVERSION}-linux${EXTRACT_SUFX}

MAINTAINER= ports@FreeBSD.org
COMMENT=    DOOM style engine aimed at the Total Conversion developer

LIB_DEPENDS=    fltk.1:${PORTSDIR}/x11-toolkits/fltk \
        jpeg.9:${PORTSDIR}/graphics/jpeg \
        png.5:${PORTSDIR}/graphics/png \
        vorbis.4:${PORTSDIR}/audio/libvorbis

USE_SCONS=  yes
USE_SDL=    sdl
SCONS_ARGS= release=true

post-patch:
    @${REINPLACE_CMD} -e 's|%%DMDIR%%|${DMDIR}|;' ${WRKSRC}/src/e_main.cc

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/gledge32 ${PREFIX}/bin/${PORTNAME}
    ${INSTALL_DATA} ${WRKDIR}/edge.wad ${DMDIR}
.if !defined(NOPORTDOCS)
    ${MKDIR} ${DOCSDIR}
    ${INSTALL_DATA} ${WRKDIR}/*.txt ${DOCSDIR}
.endif

.include "${.CURDIR}/../doom-data/Makefile.include"

.include <bsd.port.mk>