blob: 882999135aa2f6565b4da6a5d2e7edd0b8007792 (
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
|
# New ports collection makefile for: darkplaces
# Date created: 25 Aug 2005
# Whom: Alejandro Pulver <alejandro@varnet.biz>
#
# $FreeBSD$
#
PORTNAME= darkplaces
PORTVERSION= 20050818
PORTREVISION= 1
CATEGORIES= games
MASTER_SITES= http://offload1.icculus.org/twilight/darkplaces/files/
DISTNAME= ${PORTNAME}engine${PORTVERSION}
MAINTAINER= alepulver@FreeBSD.org
COMMENT= Quake engine modification
WRKSRC= ${WRKDIR}/${PORTNAME}
USE_GMAKE= yes
USE_ZIP= yes
MAKEFILE= makefile
ALL_TARGET= #
OPTIONS= CLIENT "Build GLX client" on \
DEDICATED "Build dedicated server" on \
OPTIMIZED_CFLAGS "Enable compilation optimizations" on \
SDL_CLIENT "Build SDL client" on
PLIST_FILES= %%DATADIR%%/dummy
PLIST_DIRS= %%DATADIR%%
.include "${.CURDIR}/../quake-data/Makefile.include"
.include <bsd.port.pre.mk>
.if defined(WITHOUT_CLIENT) && defined(WITHOUT_SDL_CLIENT) && \
defined(WITHOUT_DEDICATED)
IGNORE= needs at least one of CLIENT, SDL_CLIENT and DEDICATED options
.endif
.if !defined(WITHOUT_CLIENT) || !defined(WITHOUT_SDL_CLIENT)
# Loads libraries at run-time, thus RUN_DEPENDS.
RUN_DEPENDS+= ${LOCALBASE}/lib/libjpeg.so:${PORTSDIR}/graphics/jpeg \
${LOCALBASE}/lib/libvorbis.so:${PORTSDIR}/audio/libvorbis
.endif
.if !defined(WITHOUT_CLIENT)
USE_GL= yes
ALL_TARGET+= cl-release
EXE_TARGETS+= ${PORTNAME}-glx
PLIST_SUB+= CLIENT=""
PLIST_FILES+= bin/${PORTNAME}-glx
.endif
.if !defined(WITHOUT_DEDICATED)
ALL_TARGET+= sv-release
EXE_TARGETS+= ${PORTNAME}-dedicated
PLIST_FILES+= bin/${PORTNAME}-dedicated
.endif
.if !defined(WITHOUT_OPTIMIZED_CFLAGS)
MAKE_ENV+= WITH_OPTIMIZED_CFLAGS=YES
.endif
.if !defined(WITHOUT_SDL_CLIENT)
USE_SDL= sdl
ALL_TARGET+= sdl-release
EXE_TARGETS+= ${PORTNAME}-sdl
PLIST_FILES+= bin/${PORTNAME}-sdl
.endif
post-extract:
@${UNZIP_CMD} -aq \
-o ${WRKDIR}/${PORTNAME}enginesource${PORTVERSION}.zip \
-d ${WRKDIR}
do-install:
.for f in ${EXE_TARGETS}
${INSTALL_PROGRAM} ${WRKSRC}/${f} ${PREFIX}/bin
.endfor
@${MKDIR} ${DATADIR}
@${TOUCH} ${DATADIR}/dummy
.include <bsd.port.post.mk>
|