freebsd-ports/games/linux-warsow/Makefile
Boris Samorodov 7e814a58ec Convert ports which use RUN_DEPENDS+=.../graphics/linux_dri to
using USE_LINUX_APPS+=dri. This is needed to switch a default
linux base at 8-CURRENT to linux_base-f10. No PORTREVISION bump
is needed since it's mere infrastructure fix. Affected ports:
-----
emulators/linux-pete-mesagpu/Makefile
emulators/linux-pete-xgl2gpu/Makefile
games/atitd/Makefile
games/linux-coldwar-demo/Makefile
games/linux-darwinia-demo/Makefile
games/linux-defcon/Makefile
games/linux-doom3-demo/Makefile
games/linux-gorky17-demo/Makefile
games/linux-nerogame/Makefile
games/linux-nwnclient/Makefile
games/linux-savage/Makefile
games/linux-savage-samuraiwars/Makefile
games/linux-uplink-demo/Makefile
games/linux-ut2003-demo/Makefile
games/linux-ut2004-demo/Makefile
games/linux-virtual-jay-peak/Makefile
games/linux-warsow/Makefile
graphics/linux-ac3d/Makefile
math/mupad/Makefile
net/skype12/Makefile
-----

Approved by:	maintainer timeout (2 months, the needed changes were submitted to emulation@ at 2009-04-09)
2009-06-07 15:23:55 +00:00

109 lines
2.9 KiB
Makefile

# New ports collection makefile for: warsow
# Date created: 2005-11-12
# Whom: Jose Alonso Cardenas Marquez <acardenas@bsd.org.pe>
#
# $FreeBSD$
#
PORTNAME= warsow
PORTVERSION= 0.12
PORTREVISION= 2
PORTEPOCH= 1
CATEGORIES= games linux
MASTER_SITES= http://ftp.club-internet.fr/pub/games/nofrag/warsow/ \
http://mirrors-av.club-internet.fr/pub/games/nofrag/warsow/ \
http://kenh.rxvt.net/ \
http://turkeyfiles.escapedturkey.net/warsow/versions/ \
http://www.gizmo.fi/warsow/ \
http://warsow.as-mirror.net/ \
http://wsw.surreal-xenotronic.com/ \
http://tmp.death-row.org/
PKGNAMEPREFIX= linux-
DISTNAME= ${PORTNAME}_${PORTVERSION}_linux
DIST_SUBDIR= ${PORTNAME}
MAINTAINER= acm@FreeBSD.org
COMMENT= Free multiplayer first person shooter with cartoon design
IGNORE= is outdated, does not match games/warsow-data port
RUN_DEPENDS= ${DATADIR}/data0.pk3:${PORTSDIR}/games/warsow-data
USE_LINUX= yes
USE_LINUX_APPS= openssl
WRKSRC= ${WRKDIR}/${PORTNAME}
NO_BUILD= yes
SUB_FILES= warsow-wrapper wsw_server-wrapper
WARSOW_EXTRACT+=${PORTNAME}/basewsw/game${ARCHSUFFIX}.so
WARSOW_DIR= ${PREFIX}/lib/${PKGNAMEPREFIX}${PORTNAME}
EXTRACT_AFTER_ARGS= | ${TAR} -xf - ${WARSOW_EXTRACT}
DESKTOP_ENTRIES="Warsow" \
"Shoot cartoon enemies" \
"" \
"warsow" \
"Application;Game;" \
false
OPTIONS= CLIENT "Install client" on \
SERVER "Install dedicated server" on \
NVIDIA "Install support for nvidia" off
.include <bsd.port.pre.mk>
.if defined(WITHOUT_CLIENT) && defined(WITHOUT_SERVER)
IGNORE= requires at least one of CLIENT and SERVER options
.endif
.if defined(WITH_NVIDIA)
. if !exists(${LINUXBASE}/usr/lib/libGL.so.1)
RUN_DEPENDS+= ${LINUXBASE}/usr/lib/libGL.so.1:${PORTSDIR}/x11/nvidia-driver
. endif
.else
USE_LINUX_APPS+=dri
.endif
.if ${ARCH} == "i386"
ENGINESUFFIX= ""
ARCHSUFFIX= "_i386"
PLIST_SUB+= ENGINESUFFIX=${ENGINESUFFIX} \
ARCHSUFFIX=${ARCHSUFFIX}
.elif ${ARCH} == "amd64"
ENGINESUFFIX= ".x86_64"
ARCHSUFFIX= "_x86_64"
PLIST_SUB+= ENGINESUFFIX=${ENGINESUFFIX} \
ARCHSUFFIX=${ARCHSUFFIX}
.endif
.if !defined(WITHOUT_CLIENT)
USE_LINUX_APPS+=sdl12 libvorbis jpeg curl
PLIST_SUB+= CLIENT=""
WARSOW_TARGET+= warsow
WARSOW_EXTRACT+=${PORTNAME}/warsow${ENGINESUFFIX} \
${PORTNAME}/basewsw/ui${ARCHSUFFIX}.so \
${PORTNAME}/basewsw/cgame${ARCHSUFFIX}.so
.else
PLIST_SUB+= CLIENT="@comment "
.endif
.if defined(WITH_SERVER)
PLIST_SUB+= SERVER=""
WARSOW_TARGET+= wsw_server
WARSOW_EXTRACT+=${PORTNAME}/wsw_server${ENGINESUFFIX}
.else
PLIST_SUB+= SERVER="@comment "
.endif
do-install:
${MKDIR} ${WARSOW_DIR}/basewsw
${INSTALL_DATA} ${WRKSRC}/basewsw/*.so ${WARSOW_DIR}/basewsw
.for FILE in ${WARSOW_TARGET}
${BRANDELF} -t Linux ${WRKSRC}/${FILE}${ENGINESUFFIX}
${INSTALL_PROGRAM} ${WRKSRC}/${FILE}${ENGINESUFFIX} ${WARSOW_DIR}/${FILE}
${INSTALL_SCRIPT} ${WRKDIR}/${FILE}-wrapper ${PREFIX}/bin/${PKGNAMEPREFIX}${FILE}
.endfor
${LN} -s ${DATADIR}/* ${WARSOW_DIR}/basewsw
.include <bsd.port.post.mk>