mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-14 03:10:47 +00:00
0d2725682b
structure (i.e. include/SDL for includes and sdl-config for configuration binary) - Update graphics/sdl_ttf to version 2.0.8 - Update graphics/sdl_image to version 1.2.5 - Update audio/sdl_mixer to version 1.2.7 - Update net/sdl_net to version 1.2.6 - Update Mk/bsd.sdl.mk accordingly - Fix dependent ports to fit the new directory structure and avoid several API breakages - Bump up portrevisions for all dependent ports to allow them to be upgraded by portupgrade/portmaster etc tools Approved by: kris (portmgr), sem (mentor)
85 lines
1.9 KiB
Makefile
85 lines
1.9 KiB
Makefile
# New ports collection makefile for: darkplaces
|
|
# Date created: 25 Aug 2005
|
|
# Whom: Alejandro Pulver <alejandro@varnet.biz>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= darkplaces
|
|
PORTVERSION= 20060725
|
|
PORTREVISION= 1
|
|
CATEGORIES= games
|
|
MASTER_SITES= http://offload1.icculus.org/twilight/darkplaces/files/
|
|
DISTNAME= ${PORTNAME}engine${PORTVERSION}
|
|
|
|
MAINTAINER= alepulver@FreeBSD.org
|
|
COMMENT= Quake engine modification
|
|
|
|
USE_ZIP= yes
|
|
USE_GMAKE= yes
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}
|
|
|
|
MAKEFILE= makefile
|
|
ALL_TARGET= #
|
|
|
|
OPTIONS= CLIENT "Build GLX client" on \
|
|
DEDICATED "Build dedicated server" on \
|
|
OPTIMIZED_CFLAGS "Enable compilation optimizations" on \
|
|
SDL "Build SDL client" on
|
|
|
|
PLIST_FILES= %%DATADIR%%/dummy
|
|
PLIST_DIRS= %%DATADIR%%
|
|
|
|
.include "${.CURDIR}/../quake-data/Makefile.include"
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if !defined(WITH_CLIENT) && !defined(WITH_DEDICATED) && !defined(WITH_SDL)
|
|
IGNORE= needs at least one of CLIENT, DEDICATED and SDL options
|
|
.endif
|
|
|
|
.if defined(WITH_CLIENT) || defined(WITH_SDL)
|
|
USE_GL= yes
|
|
# Loads libraries at run-time, thus RUN_DEPENDS.
|
|
RUN_DEPENDS+= ${LOCALBASE}/lib/libjpeg.so:${PORTSDIR}/graphics/jpeg \
|
|
${LOCALBASE}/lib/libvorbis.so:${PORTSDIR}/audio/libvorbis
|
|
.endif
|
|
|
|
.if defined(WITH_CLIENT)
|
|
ALL_TARGET+= cl-release
|
|
EXE_TARGETS+= ${PORTNAME}-glx
|
|
PLIST_SUB+= CLIENT=""
|
|
PLIST_FILES+= bin/${PORTNAME}-glx
|
|
.endif
|
|
|
|
.if defined(WITH_DEDICATED)
|
|
ALL_TARGET+= sv-release
|
|
EXE_TARGETS+= ${PORTNAME}-dedicated
|
|
PLIST_FILES+= bin/${PORTNAME}-dedicated
|
|
.endif
|
|
|
|
.if defined(WITH_OPTIMIZED_CFLAGS)
|
|
MAKE_ENV+= WITH_OPTIMIZED_CFLAGS=YES
|
|
.endif
|
|
|
|
.if defined(WITH_SDL)
|
|
USE_SDL= sdl
|
|
ALL_TARGET+= sdl-release
|
|
EXE_TARGETS+= ${PORTNAME}-sdl
|
|
PLIST_FILES+= bin/${PORTNAME}-sdl
|
|
.endif
|
|
|
|
post-extract:
|
|
@${UNZIP_CMD} -aq \
|
|
-o ${WRKDIR}/${PORTNAME}enginesource${PORTVERSION}.zip \
|
|
-d ${WRKDIR}
|
|
|
|
do-install:
|
|
.for f in ${EXE_TARGETS}
|
|
${INSTALL_PROGRAM} ${WRKSRC}/${f} ${PREFIX}/bin
|
|
.endfor
|
|
@${MKDIR} ${DATADIR}
|
|
@${TOUCH} ${DATADIR}/dummy
|
|
|
|
.include <bsd.port.post.mk>
|