1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-27 00:57:50 +00:00
freebsd-ports/games/openjazz/Makefile
2011-07-15 10:21:31 +00:00

45 lines
1.0 KiB
Makefile

# New ports collection makefile for: openjazz
# Date created: 01 Apr 2008
# Whom: Ganael Laplanche <ganael.laplanche@martymac.org>
#
# $FreeBSD$
#
PORTNAME= openjazz
PORTVERSION= 20110703
CATEGORIES= games
MASTER_SITES= http://alister.eu/jazz/oj/ \
LOCAL/martymac
DISTNAME= OpenJazz-src-030711
MAINTAINER= martymac@FreeBSD.org
COMMENT= Free re-implementation of the Jazz Jackrabbit(tm) game engine
LICENSE= GPLv2
WRKSRC= ${WRKDIR}
USE_ZIP= yes
USE_GMAKE= yes
ALL_TARGET= OpenJazz
USE_XORG= x11 xext xrandr xrender xau xdmcp
USE_SDL= sdl
USE_DOS2UNIX= yes
DOS2UNIX_REGEX= .*\.(h|cpp)
CPPFLAGS+= -I${LOCALBASE}/include `${SDL_CONFIG} --cflags` \
-DDATAPATH=\\\"${DATADIR}/\\\" -DHOMEDIR
LDFLAGS+= -L${LOCALBASE}/lib ${PTHREAD_LIBS} `${SDL_CONFIG} --libs`
MAKE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
SUB_FILES= pkg-message
do-install:
@${MKDIR} ${DATADIR}
@${INSTALL_DATA} ${WRKSRC}/openjazz.000 ${DATADIR}/
@${INSTALL_SCRIPT} ${WRKDIR}/OpenJazz ${PREFIX}/bin/openjazz
@${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>