diff options
author | alepulver <alepulver@FreeBSD.org> | 2006-07-29 09:42:01 +0800 |
---|---|---|
committer | alepulver <alepulver@FreeBSD.org> | 2006-07-29 09:42:01 +0800 |
commit | 277860a9fa8ef7701d66206170369bf84bfec1ab (patch) | |
tree | 3679ebb3a621977ff221d1f174f062c77635fbfa /games/linux-quake4-demo/Makefile | |
parent | a2843a40b7136e6c4e47f09f7859e8588584132a (diff) | |
download | freebsd-ports-gnome-277860a9fa8ef7701d66206170369bf84bfec1ab.tar.gz freebsd-ports-gnome-277860a9fa8ef7701d66206170369bf84bfec1ab.tar.zst freebsd-ports-gnome-277860a9fa8ef7701d66206170369bf84bfec1ab.zip |
This package contains Quake 4 for Linux (Demo version) by id Software.
WWW: http://www.quake4game.com/
Diffstat (limited to 'games/linux-quake4-demo/Makefile')
-rw-r--r-- | games/linux-quake4-demo/Makefile | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/games/linux-quake4-demo/Makefile b/games/linux-quake4-demo/Makefile new file mode 100644 index 000000000000..5907480f922c --- /dev/null +++ b/games/linux-quake4-demo/Makefile @@ -0,0 +1,52 @@ +# New ports collection makefile for: linux-quake4-demo +# Date created: 19 Jul 2006 +# Whom: alepulver +# +# $FreeBSD$ +# + +PORTNAME= quake4 +PORTVERSION= 1.0 +CATEGORIES= games linux +MASTER_SITES= ${MASTER_SITE_IDSOFTWARE:S|$|quake4/linux/|} \ + ${MASTER_SITE_GENTOO:S|$|distfiles/|} +PKGNAMEPREFIX= linux- +PKGNAMESUFFIX= -demo +DISTNAME= ${PORTNAME}-${PKGNAMEPREFIX}${PORTVERSION}${PKGNAMESUFFIX}.x86 +EXTRACT_SUFX= .run + +MAINTAINER= alepulver@FreeBSD.org +COMMENT= Quake 4 for Linux Demo + +RUN_DEPENDS= ${LINUXBASE}/usr/lib/libSDL-1.2.so.0:${PORTSDIR}/devel/linux-sdl12 + +ONLY_FOR_ARCHS= i386 amd64 +USE_LINUX= yes +NO_WRKSUBDIR= yes + +Q4DIR= lib/${PORTNAME}${PKGNAMESUFFIX} +PLIST_SUB= Q4DIR="${Q4DIR}" + +do-extract: + @${RM} -rf ${WRKDIR} + @${MKDIR} ${WRKDIR} + @cd ${WRKDIR} && ${TAIL} +376 ${_DISTDIR}/${DISTNAME}${EXTRACT_SUFX} | \ + ${TAR} zxf - + +do-build: +.for FILE in quake4 q4ded + @${SED} \ + -e 's|@Q4DIR@|${PREFIX}/${Q4DIR}|' \ + -e 's|@APP@|${FILE}.x86|' \ + ${FILESDIR}/run.sh.in > ${WRKSRC}/${FILE}.sh +.endfor + +do-install: + ${MKDIR} ${PREFIX}/${Q4DIR}/q4base +.for FILE in quake4 q4ded + ${INSTALL_SCRIPT} ${WRKSRC}/${FILE}.sh ${PREFIX}/bin/${FILE}-demo + ${INSTALL_PROGRAM} ${WRKSRC}/bin/FreeBSD/x86/${FILE}.x86 ${PREFIX}/${Q4DIR} +.endfor + ${INSTALL_DATA} ${WRKSRC}/q4base/* ${PREFIX}/${Q4DIR}/q4base + +.include <bsd.port.mk> |