mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-14 03:10:47 +00:00
ea418da248
Noticed by: YAPHR
69 lines
1.6 KiB
Makefile
69 lines
1.6 KiB
Makefile
# New ports collection makefile for: linux-q3ademo
|
|
# Date created: 11 December 2000
|
|
# Whom: Marc van Woerkom <3d@freebsd.org>
|
|
#
|
|
# - inspired by linux realplayer 7 port
|
|
# - special thanks to the Emacs key board macro
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= quake3
|
|
DISTVERSION= 1.11-6
|
|
PORTREVISION= 4
|
|
CATEGORIES= games
|
|
MASTER_SITES= ${MASTER_SITE_GENTOO}
|
|
MASTER_SITE_SUBDIR= distfiles
|
|
PKGNAMEPREFIX= linux-
|
|
PKGNAMESUFFIX= -demo
|
|
DISTNAME= linuxq3ademo-${DISTVERSION}.x86
|
|
EXTRACT_SUFX= .gz.sh
|
|
|
|
MAINTAINER= alejandro@varnet.biz
|
|
COMMENT= Quake III Arena Demo
|
|
|
|
ONLY_FOR_ARCHS= i386
|
|
USE_LINUX= yes
|
|
NO_BUILD= yes
|
|
NO_WRKSUBDIR= yes
|
|
|
|
DATADIR= ${PREFIX}/share/${PKGNAMEPREFIX}${PORTNAME}${PKGNAMESUFFIX}
|
|
|
|
SUB_FILES= q3demo
|
|
|
|
do-extract:
|
|
@${MKDIR} ${WRKDIR}
|
|
@cd ${WRKDIR} && ${TAIL} +165 ${_DISTDIR}/${DISTNAME}${EXTRACT_SUFX} | \
|
|
${TAR} zxf -
|
|
|
|
do-install:
|
|
@${INSTALL_SCRIPT} ${WRKDIR}/q3demo ${PREFIX}/bin
|
|
@${MKDIR} ${DATADIR}
|
|
@${INSTALL_PROGRAM} ${WRKSRC}/bin/x86/glibc-2.0/q3demo ${DATADIR}
|
|
@${CP} -R ${WRKSRC}/demoq3 ${DATADIR}
|
|
@${LN} -s ${GL_LIB} ${DATADIR}/libGL.so
|
|
.if !defined(NOPORTDOCS)
|
|
@${MKDIR} ${DOCSDIR}
|
|
@${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
|
|
@${CP} -R ${WRKSRC}/Help/* ${DOCSDIR}
|
|
.endif
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if ${X_WINDOW_SYSTEM:L} != xfree86-3
|
|
. ifdef(WITH_NVIDIA_GL)
|
|
GL_LIB= ${LINUXBASE}/usr/lib/libGL.so.1
|
|
GL_PORT= x11/nvidia-driver
|
|
. else
|
|
GL_LIB= ${LINUXBASE}/usr/X11R6/lib/libGL.so.1
|
|
GL_PORT= graphics/linux_dri
|
|
. endif
|
|
.else
|
|
GL_LIB= ${LINUXBASE}/lib/libGL.so
|
|
GL_PORT= graphics/linux_glx
|
|
.endif
|
|
|
|
RUN_DEPENDS+= ${GL_LIB}:${PORTSDIR}/${GL_PORT}
|
|
|
|
.include <bsd.port.post.mk>
|