freebsd-ports/games/linux-nwnclient/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

61 lines
1.9 KiB
Makefile

# New ports collection makefile for: linux_nwnclient
# Date created: 1 April 2003
# Whom: Erik Olson <erikolson@olsonexpress.com>
#
# $FreeBSD$
#
PORTNAME= nwnclient
PORTVERSION= 1.68
CATEGORIES= games linux
MASTER_SITES= http://bioware.vo.llnwd.net/o1/neverwinternights/updates/linux/${PORTVERSION:S/.//}/ \
http://nwdownloads.bioware.com/neverwinternights/linux/129/
PKGNAMEPREFIX= linux-
DISTFILES= nwclient129.tar.gz \
English_linuxclient${PORTVERSION:S/.//}_orig.tar.gz
MAINTAINER= sean-freebsd@farley.org
COMMENT= Neverwinter Nights Linux (x86) Client
RUN_DEPENDS= ${LOCALBASE}/share/nwndata/NWNv129.txt:${PORTSDIR}/games/nwndata
.ifdef WITH_NVIDIA_GL
RUN_DEPENDS+= ${LINUXBASE}/usr/lib/libGL.so.1:${PORTSDIR}/x11/nvidia-driver \
${LINUXBASE}/usr/X11R6/lib/libGLU.so.1:${PORTSDIR}/graphics/linux-libGLU
.else
USE_LINUX_APPS+=dri
.endif
NO_BUILD= yes
ONLY_FOR_ARCHS= i386
USE_LINUX= yes
USE_LINUX_APPS= sdl12 xorglibs
NWNDATADIR= ${LOCALBASE}/share/nwndata
PLIST_SUB+= NWNVERSION="${PORTVERSION:S/.//}"
do-extract:
${MKDIR} ${WRKSRC}
.for _distfile in ${DISTFILES}
(cd ${WRKSRC} && ${EXTRACT_CMD} ${EXTRACT_BEFORE_ARGS} \
${DISTDIR}/${_distfile} ${EXTRACT_AFTER_ARGS})
.endfor
${RM} ${WRKSRC}/lib/libSDL* ${WRKSRC}/fixinstall ${WRKSRC}/nwn
do-configure:
${SED} -e 's|%%NWNDATADIR%%|${NWNDATADIR}|' \
-e 's|%%NWNCLIENTDIR%%|${DATADIR}|' \
<${FILESDIR}/nwn.sh >${WRKDIR}/nwn
do-install:
${MKDIR} ${DATADIR}
(cd ${WRKSRC} && ${FIND} . -print | \
${CPIO} -pdmuv -R${SHAREOWN}:${SHAREGRP} ${DATADIR})
${LN} -s ${LINUXBASE}/usr/lib/libstdc++-2-libc6.1-1-2.9.0.so \
${DATADIR}/lib/libstdc++-libc6.1-2.so.3
${FIND} ${DATADIR} -type d -print0 | ${XARGS} -0 ${CHMOD} 0755
${FIND} ${DATADIR} -type f -print0 | ${XARGS} -0 ${CHMOD} 0644
(cd ${DATADIR} && ${CHMOD} 0755 dmclient nwmain nwserver)
${INSTALL_SCRIPT} ${WRKDIR}/nwn ${PREFIX}/bin/
.include <bsd.port.mk>