mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-05 06:27:37 +00:00
5503d2253b
- Pet portlint PR: 226846 Submitted by: Piotr Kubaj <pkubaj@anongoth.pl>
74 lines
1.9 KiB
Makefile
74 lines
1.9 KiB
Makefile
# Created by: Tobias Kortkamp <t@tobik.me>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= iortcw
|
|
PORTVERSION= 1.51b
|
|
PORTEPOCH= 1
|
|
CATEGORIES= games
|
|
|
|
MAINTAINER= tobik@FreeBSD.org
|
|
COMMENT= Game engine for Return to Castle Wolfenstein
|
|
|
|
LICENSE= GPLv3
|
|
|
|
NOT_FOR_ARCHS= aarch64 armv6 armv7 powerpc64
|
|
NOT_FOR_ARCHS_REASON= fails to configure: Architecture not supported
|
|
|
|
BUILD_DEPENDS= opusfile>0:audio/opusfile
|
|
LIB_DEPENDS= libcurl.so:ftp/curl \
|
|
libopus.so:audio/opus \
|
|
libfreetype.so:print/freetype2
|
|
|
|
USES= jpeg pkgconfig gmake
|
|
USE_GL= gl
|
|
USE_SDL= sdl2
|
|
|
|
USE_GITHUB= yes
|
|
|
|
WOLFDIR= "libexec/${PORTNAME}"
|
|
MAKE_ARGS= BINDIR="${STAGEDIR}${PREFIX}/bin" \
|
|
COPYDIR="${STAGEDIR}${PREFIX}/${WOLFDIR}"
|
|
|
|
PLIST_SUB= ARCH="${ARCH}" WOLFDIR="${WOLFDIR}"
|
|
|
|
SUB_FILES= iowolfsp iowolfmp iowolfded pkg-message
|
|
SUB_LIST= ARCH="${ARCH}" WOLFDIR="${PREFIX}/${WOLFDIR}" \
|
|
DISTVERSION="${DISTVERSION}"
|
|
|
|
OPTIONS_DEFINE= MP SP
|
|
OPTIONS_DEFAULT= MP SP
|
|
OPTIONS_SUB= yes
|
|
|
|
MP_DESC= Build multiplayer support
|
|
SP_DESC= Build singleplayer support
|
|
|
|
SP_ALL_TARGET= sp
|
|
SP_DESKTOP_ENTRIES= "Return to Castle Wolfenstein" "Return to Castle Wolfenstein" \
|
|
"${DATADIR}/wolf512.png" "iowolfsp" "Game;" false
|
|
SP_INSTALL_TARGET= sp-install
|
|
|
|
MP_ALL_TARGET= mp
|
|
MP_DESKTOP_ENTRIES= "Return to Castle Wolfenstein (MP)" "Return to Castle Wolfenstein Multiplayer" \
|
|
"${DATADIR}/wolf512.png" "iowolfmp" "Game;" false
|
|
MP_INSTALL_TARGET= mp-install
|
|
|
|
post-extract:
|
|
${CP} ${FILESDIR}/Makefile ${WRKSRC}
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} '/\.git\/index/d' ${WRKSRC}/SP/Makefile
|
|
@${REINPLACE_CMD} '/\.git\/index/d' ${WRKSRC}/MP/Makefile
|
|
|
|
post-install:
|
|
@${MKDIR} ${STAGEDIR}${DATADIR}
|
|
${INSTALL_DATA} ${WRKSRC}/MP/misc/wolf512.png ${STAGEDIR}${DATADIR}
|
|
|
|
post-install-MP-on:
|
|
${INSTALL_SCRIPT} ${WRKDIR}/iowolfmp ${STAGEDIR}${PREFIX}/bin/iowolfmp
|
|
${INSTALL_SCRIPT} ${WRKDIR}/iowolfded ${STAGEDIR}${PREFIX}/bin/iowolfded
|
|
|
|
post-install-SP-on:
|
|
${INSTALL_SCRIPT} ${WRKDIR}/iowolfsp ${STAGEDIR}${PREFIX}/bin/iowolfsp
|
|
|
|
.include <bsd.port.mk>
|