1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-30 01:15:52 +00:00
freebsd-ports/games/jfsw/Makefile
Ganael LAPLANCHE db6d323dff Update MAINTAINER address for my ports
Approved by:	ehaupt (mentor)
2010-09-27 12:08:23 +00:00

58 lines
1.5 KiB
Makefile

# New ports collection makefile for: jfsw
# Date Created: 11 March 2010
# Whom: Ganael Laplanche <ganael.laplanche@martymac.org>
#
# $FreeBSD$
PORTNAME= jfsw
PORTVERSION= 20051009
CATEGORIES= games
MASTER_SITES= http://users.on.net/~jonof/buildport/
DISTFILES= ${PORTNAME}_src_${PORTVERSION}.zip \
jfbuild_src_${PORTVERSION}.zip
MAINTAINER= martymac@FreeBSD.org
COMMENT= Jonathon Fowler's Shadow Warrior Port
BUILD_DEPENDS= nasm:${PORTSDIR}/devel/nasm
ONLY_FOR_ARCHS= i386
ONLY_FOR_ARCHS_REASON= uses x86 assembly code
USE_ZIP= yes
USE_GMAKE= yes
USE_GL= gl
USE_GNOME= gtk20
USE_SDL= mixer sdl
WRKSRC= ${WRKDIR}/${PORTNAME}_src_${PORTVERSION}
PATCH_WRKSRC= ${WRKDIR}
SUB_FILES= pkg-message
post-patch:
@${REINPLACE_CMD} -Ee \
's|^(EROOT=)../build/|\1../jfbuild_src_${PORTVERSION}/|; \
s|^(CC=).*|\1${CC}|; \
s|^(CFLAGS=).*|\1${CFLAGS}|; \
s|^(NASMFLAGS=).*|\1 -s -f elf|; \
s|/usr/X11R6|${LOCALBASE}|; \
s|sdl-config|${SDL_CONFIG}|' \
${WRKSRC}/Makefile \
${WRKDIR}/jfbuild_src_${PORTVERSION}/Makefile \
${WRKDIR}/jfbuild_src_${PORTVERSION}/Makefile.shared
@${REINPLACE_CMD} -e 's|/usr/share/games/jfsw|${DATADIR}|' \
${WRKSRC}/source/game.c ${WRKSRC}/source/jnstub.c
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/sw ${PREFIX}/bin/${PORTNAME}
${INSTALL_PROGRAM} ${WRKSRC}/build ${PREFIX}/bin/${PORTNAME}-build
${MKDIR} ${DATADIR}
.if !defined(NOPORTDOCS)
.for f in readme.txt releasenotes.html
${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}
.endfor
@${CAT} ${PKGMESSAGE}
.endif
.include <bsd.port.mk>