mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-28 05:29:48 +00:00
7e814a58ec
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)
67 lines
1.7 KiB
Makefile
67 lines
1.7 KiB
Makefile
# New ports collection makefile for: atitd
|
|
# Date created: 17 Jul 2003
|
|
# Whom: Matthew N. Dodd <mdodd@FreeBSD.ORG>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= atitd
|
|
PORTVERSION= 1.0
|
|
PORTREVISION= 4
|
|
CATEGORIES= games graphics linux
|
|
MASTER_SITES= http://game3.atitd.com/dl/files/
|
|
DISTNAME= eClient-linux-i686.run
|
|
EXTRACT_SUFX=
|
|
EXTRACT_ONLY=
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= The Linux "A Tale in the Desert" (ATITD) client
|
|
|
|
RUN_DEPENDS= ${LOCALBASE}/bin/xhost:${PORTSDIR}/x11/xhost
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.ifdef(WITH_NVIDIA_GL)
|
|
RUN_DEPENDS+= ${LINUXBASE}/usr/lib/libGL.so.1:${PORTSDIR}/x11/nvidia-driver
|
|
.else
|
|
USE_LINUX_APPS+=dri
|
|
.endif
|
|
|
|
PLIST_FILES= bin/atitd
|
|
USE_LINUX= yes
|
|
|
|
ONLY_FOR_ARCHS= i386
|
|
NO_CDROM= Redistribution not allowed
|
|
NO_PACKAGE= Not packagable.
|
|
NO_BUILD= yes
|
|
NO_WRKSUBDIR= yes
|
|
|
|
LINUX_SH= ${LINUXBASE}/bin/sh
|
|
ECLIENT= ${DISTDIR}/${DISTFILES}
|
|
|
|
#checksum:
|
|
# @${LINUX_SH} ${ECLIENT} --check
|
|
|
|
post-extract:
|
|
@${SED} -e "s=%%PREFIX%%=${PREFIX}=g" ${FILESDIR}/atitd.sh > ${WRKSRC}/atitd.sh
|
|
|
|
pre-install:
|
|
@${ECHO_MSG} "===> Running the pre-install script."
|
|
@PKG_PREFIX=${PREFIX} ${SH} pkg-install ${PORTNAME} PRE-INSTALL
|
|
|
|
do-install:
|
|
@${LINUX_SH} ${ECLIENT} --nox11 --nochown \
|
|
--target ${PREFIX}/games/atitd
|
|
@${TOUCH} ${TOUCH_FLAGS} ${INSTALL_COOKIE}
|
|
|
|
post-install:
|
|
@${ECHO_MSG} "===> Fixing permissions."
|
|
@${CHOWN} -R atitd:atitd ${PREFIX}/games/atitd
|
|
@${BRANDELF} -t Linux ${PREFIX}/games/atitd/elaunch
|
|
@${CHMOD} ug+s ${PREFIX}/games/atitd/elaunch
|
|
${INSTALL_SCRIPT} ${WRKSRC}/atitd.sh ${PREFIX}/bin/atitd
|
|
@${ECHO_MSG} "===> Running the post-install script."
|
|
@PKG_PREFIX=${PREFIX} ${SH} pkg-install ${PORTNAME} POST-INSTALL
|
|
|
|
.include <bsd.port.post.mk>
|