blob: c659ae03e34d5bc00cb9c8f48d4fc6cd04136b0f (
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
|
# Ports collection makefile for: uqm
# Date created: 14 September 2003
# Whom: benlutz@datacomm.ch
#
# $FreeBSD$
#
# Ur-Quan Masters offers add-on packages that enhance the game. These are
# optional. The following add-ons exist at the moment:
#
# Voice add-on (110 MB). Enable this with -DVOICEADDON
#
# 3DO Music add-on (18 MB). Enable this with -DMUSICADDON
#
PORTNAME= uqm
PORTVERSION= 0.4.0
CATEGORIES= games
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= sc2
DISTFILES= ${PORTNAME}-${PORTVERSION}-source.tar.gz ${PORTNAME}-${PORTVERSION}-content.uqm
EXTRACT_ONLY= ${PORTNAME}-${PORTVERSION}-source.tar.gz
MAINTAINER= benlutz@datacomm.ch
COMMENT= A port of the original Star Control 2 for 3DO consoles
LIB_DEPENDS= vorbis.3:${PORTSDIR}/audio/libvorbis
USE_XLIB= yes
USE_GMAKE= yes
USE_SDL= image sdl
USE_REINPLACE= yes
NO_INSTALL_MANPAGES= yes
ONLY_FOR_ARCHS= i386
.ifdef(VOICEADDON)
DISTFILES+= ${PORTNAME}-${PORTVERSION}-voice.uqm
PLIST_SUB+= VOICEADDON=""
.else
PLIST_SUB+= VOICEADDON="@comment "
.endif
.ifdef(MUSICADDON)
DISTFILES+= ${PORTNAME}-${PORTVERSION}-3domusic.uqm
PLIST_SUB+= MUSICADDON=""
.else
PLIST_SUB+= MUSICADDON="@comment "
.endif
.include <bsd.port.pre.mk>
.if ${OSVERSION} < 500000
BROKEN= "does not compile"
.endif
pre-everything::
.ifdef(!VOICEADDON || !MUSICADDON)
@${ECHO_MSG} ""
@${ECHO_MSG} "You may specify the following options:"
.endif
.ifdef(!VOICEADDON)
@${ECHO_MSG} ""
@${ECHO_MSG} "-DVOICEADDON"
@${ECHO_MSG} " Installs the voice add-on (110MB)."
.endif
.ifdef(!MUSICADDON)
@${ECHO_MSG} ""
@${ECHO_MSG} "-DMUSICADDON"
@${ECHO_MSG} " Installs the music add-on (18MB) containing the original"
@${ECHO_MSG} " 3do music files. Note that there is music without this"
@${ECHO_MSG} " add-on, just not as much."
.endif
post-extract:
${MKDIR} ${WRKSRC}/content/packages
${CP} ${DISTDIR}/${PORTNAME}-${PORTVERSION}-content.uqm ${WRKSRC}/content/packages/
.ifdef(VOICEADDON)
${CP} ${DISTDIR}/${PORTNAME}-${PORTVERSION}-voice.uqm ${WRKSRC}/content/packages/
.endif
.ifdef(MUSICADDON)
${CP} ${DISTDIR}/${PORTNAME}-${PORTVERSION}-3domusic.uqm ${WRKSRC}/content/packages/
.endif
do-configure:
@${ECHO_MSG} CHOICE_debug_VALUE=\'nodebug\' > ${WRKSRC}/config.state
@${ECHO_MSG} CHOICE_graphics_VALUE=\'opengl\' >> ${WRKSRC}/config.state
@${ECHO_MSG} CHOICE_sound_VALUE=\'mixsdl\' >> ${WRKSRC}/config.state
@${ECHO_MSG} CHOICE_ioformat_VALUE=\'stdio_zip\' >> ${WRKSRC}/config.state
@${ECHO_MSG} INPUT_install_prefix_VALUE=\'${PREFIX}\' >> ${WRKSRC}/config.state
@${ECHO_MSG} INPUT_install_bindir_VALUE=\''$$prefix/bin'\' >> ${WRKSRC}/config.state
@${ECHO_MSG} INPUT_install_libdir_VALUE=\''$$prefix/lib'\' >> ${WRKSRC}/config.state
@${ECHO_MSG} INPUT_install_sharedir_VALUE=\''$$prefix/share'\' >> ${WRKSRC}/config.state
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.post.mk>
|