blob: 45056d3db0e20b44924e152481917553ee444a05 (
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
|
PORTNAME= yquake2
PORTVERSION= 8.01
CATEGORIES= games
MASTER_SITES= https://deponie.yamagi.org/quake2/
DISTNAME= quake2-${PORTVERSION}
MAINTAINER= shamaz.mazum@gmail.com
COMMENT= Improved version of Icculus Quake II
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/LICENSE
# Quake II loads optional libraries via dlopen(3)
BUILD_DEPENDS= ${LOCALBASE}/include/curl/curl.h:ftp/curl
RUN_DEPENDS= ${LOCALBASE}/lib/libcurl.so:ftp/curl
USES= gmake openal gl sdl tar:xz
USE_GL= gl
USE_SDL= sdl2
MAKE_ARGS= VERBOSE=1 WITH_SYSTEMWIDE=yes \
WITH_SYSTEMDATADIR="${Q2DIR}" \
WITH_SYSTEMLIBDIR="${PREFIX}/lib/${PORTNAME}"
OPTIONS_DEFINE= DOCS
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/release/q2ded \
${STAGEDIR}${PREFIX}/bin/yq2ded
${INSTALL_PROGRAM} ${WRKSRC}/release/quake2 \
${STAGEDIR}${PREFIX}/bin/${PORTNAME}
@${MKDIR} ${STAGEDIR}${PREFIX}/lib/${PORTNAME}/baseq2
${INSTALL_LIB} ${WRKSRC}/release/baseq2/game.so \
${STAGEDIR}${PREFIX}/lib/${PORTNAME}/baseq2
${INSTALL_LIB} ${WRKSRC}/release/ref_*.so \
${STAGEDIR}${PREFIX}/lib/${PORTNAME}
post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/CHANGELOG ${WRKSRC}/doc/*.md \
${STAGEDIR}${DOCSDIR}
.include "${.CURDIR}/../quake2-data/Makefile.include"
.include <bsd.port.mk>
|