aboutsummaryrefslogtreecommitdiffstats
path: root/games/uqm/Makefile
blob: d31fd49df4e72e3825628ce6263a39fe9074fb30 (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
# Ports collection makefile for:   uqm
# Date created:        14 September 2003
# Whom:                asami
#
# $FreeBSD$
#

PORTNAME=      uqm
PORTVERSION=   0.3
CATEGORIES=    games
MASTER_SITES=  ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR=sc2
DISTFILES=     ${PORTNAME}-${PORTVERSION}-source.tgz ${PORTNAME}-${PORTVERSION}-content.zip
EXTRACT_ONLY=  ${PORTNAME}-${PORTVERSION}-source.tgz

MAINTAINER=    benlutz@datacomm.ch
COMMENT=       A port of the original Star Control 2 for 3DO consoles

LIB_DEPENDS=   SDL_image:${PORTSDIR}/graphics/sdl_image \
           SDL_mixer:${PORTSDIR}/audio/sdl_mixer \
           vorbis:${PORTSDIR}/audio/libvorbis \
           ogg:${PORTSDIR}/audio/libogg

USE_XLIB=      yes
USE_GMAKE=     yes
USE_SDL=       yes
NO_INSTALL_MANPAGES=yes

post-extract:
    ${CP} ${DISTDIR}/${PORTNAME}-${PORTVERSION}-content.zip ${WRKSRC}/content/packages/

do-configure:
    cd ${WRKSRC} && ${SETENV} LOCALBASE=${LOCALBASE} PREFIX=${PREFIX} ./build.sh uqm config

do-build:
    cd ${WRKSRC} && ./build.sh uqm

do-install:
    cd ${WRKSRC} && ./build.sh uqm install

post-install:
    ${STRIP_CMD} ${PREFIX}/lib/uqm/uqm
.if !defined(NOPORTDOCS)
    ${MKDIR} ${DOCSDIR}
    ${INSTALL_MAN} ${WRKSRC}/doc/users/manual.txt ${DOCSDIR}
.endif

.include <bsd.port.mk>