mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-14 03:10:47 +00:00
c9ea361463
on sdl12-1.2.5
44 lines
1.1 KiB
Makefile
44 lines
1.1 KiB
Makefile
# New ports collection makefile for: cube
|
|
# Date created: 17 October 2002
|
|
# Whom: Arjan van Leeuwen
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= cube
|
|
PORTVERSION= 2002.10.20
|
|
PORTREVISION= 2
|
|
CATEGORIES= games
|
|
MASTER_SITES= http://tunes.org/~eihrul/ \
|
|
http://www.idi.ntnu.no/~jonasf/cube/
|
|
DISTNAME= ${PORTNAME}_${PORTVERSION:S/./_/:S/./_/}
|
|
|
|
MAINTAINER= avleeuwen@piwebs.com
|
|
COMMENT= An OpenGL 3D First Person Shooter game
|
|
|
|
USE_SDL= image mixer sdl
|
|
USE_ZIP= yes
|
|
USE_GMAKE= yes
|
|
|
|
BUILD_WRKSRC= ${WRKSRC}/source/src
|
|
EXTRACT_BEFORE_ARGS=-q -a
|
|
EXTRACT_AFTER_ARGS=-d ${WRKDIR}/${DISTNAME}/
|
|
DATADIR= ${PREFIX}/share/cube
|
|
|
|
post-extract:
|
|
@ unzip -a -q -o ${WRKSRC}/source/${DISTNAME}_src.zip -d ${WRKSRC}/source/
|
|
|
|
post-patch:
|
|
${ECHO_CMD} '#define DATADIR "${DATADIR}"' >> ${BUILD_WRKSRC}/cube.h
|
|
|
|
do-install:
|
|
${INSTALL_PROGRAM} ${BUILD_WRKSRC}/cube_client ${PREFIX}/bin
|
|
${INSTALL_PROGRAM} ${BUILD_WRKSRC}/cube_server ${PREFIX}/bin
|
|
${MKDIR} ${DATADIR}/savegames
|
|
${CP} -Rp ${WRKSRC}/packages ${DATADIR}
|
|
${CP} -Rp ${WRKSRC}/data ${DATADIR}
|
|
${INSTALL_DATA} ${WRKSRC}/autoexec.cfg ${DATADIR}
|
|
${INSTALL_DATA} ${WRKSRC}/servers.cfg ${DATADIR}
|
|
|
|
.include <bsd.port.mk>
|