freebsd-ports/games/uhexen/Makefile
Stanislav Sedov 0d2725682b - Update devel/sdl12 to version 1.2.11. Now we employ stock SDL directory
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)
2006-09-20 11:21:59 +00:00

59 lines
1.4 KiB
Makefile

# New ports collection makefile for: U-Hexen
# Date created: 10 February 2003
# Whom: Maxim Sobolev <sobomax@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= uhexen
PORTVERSION= 0.601
PORTREVISION= 4
CATEGORIES= games
MASTER_SITES= http://uhexen.sourceforge.net/
DISTNAME= ${PORTNAME}-latest
MAINTAINER= danfe@FreeBSD.org
COMMENT= Yet another port of Hexen, popular game from Raven Software
USE_SDL= mixer sdl
USE_X_PREFIX= yes
USE_GMAKE= yes
OPTIONS= WAD "Install demo-version WAD file" on \
MUSIC "Enable support for in-game music" on
.include <bsd.port.pre.mk>
.if !defined(WITHOUT_WAD)
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} hexen.zip
EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
EXTRACT_DEPENDS= unzip:${PORTSDIR}/archivers/unzip
PLIST_SUB= WAD=""
.else
PLIST_SUB= WAD="@comment "
.endif
.if defined(WITH_MUSIC)
RUN_DEPENDS+= ${LOCALBASE}/lib/timidity/goemon.cfg:${PORTSDIR}/audio/timidity
.endif
PLIST_FILES= bin/uhexen %%DATADIR%%/.keep_me %%WAD%%%%DATADIR%%/hexen.wad
PLIST_DIRS= %%DATADIR%%
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
post-extract:
.if !defined(WITHOUT_WAD)
@${LOCALBASE}/bin/unzip -qo ${_DISTDIR}/hexen.zip \
-d ${WRKSRC}
.endif
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/uhexen ${PREFIX}/bin
@${MKDIR} ${DATADIR}
.if !defined(WITHOUT_WAD)
${INSTALL_DATA} ${WRKSRC}/hexen.wad ${DATADIR}
.endif
@${TOUCH} ${DATADIR}/.keep_me
.include <bsd.port.post.mk>