1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-27 05:10:36 +00:00
freebsd-ports/games/wop/Makefile
Edwin Groothuis 23ac2035b9 [MAINTAINER] update my email address in 76 ports + mirror some distfiles
I've got a brand new hosting, so change my email to the new
	one.  Also, now I can mirror some distfiles, so update
	MASTER_SITES for some ports.

PR:		ports/107038
Submitted by:	Dmitry Marakasov <amdmi3@mail.ru>
2006-12-21 20:41:33 +00:00

66 lines
1.9 KiB
Makefile

# New ports collection makefile for: wop
# Date created: 26 Dec 2005
# Whom: Dmitry Marakasov <amdmi3@amdmi3.ru>
#
# $FreeBSD$
#
PORTNAME= wop
PORTVERSION= 0.4.3
PORTREVISION= 1
CATEGORIES= games
MASTER_SITES= http://wormsofprey.org/download/ \
http://www.amdmi3.ru/distfiles/
DISTFILES= ${PORTNAME}-${PORTVERSION}-src${EXTRACT_SUFX} \
${PORTNAME}data-${DATAVERSION}${EXTRACT_SUFX}
MAINTAINER= amdmi3@amdmi3.ru
COMMENT= Free real-time Worms game
BUILD_DEPENDS= makedepend:${X_IMAKE_PORT}
USE_BZIP2= yes
USE_SDL= sdl net mixer ttf image
USE_GMAKE= yes
USE_GCC= 3.4+
MAKE_ENV= "CXX=${CXX}"
DATAVERSION= 2005-12-21
.include <bsd.port.pre.mk>
.if ${OSVERSION} < 500000
EXTRA_PATCHES= ${FILESDIR}/extra-patch-src-global.hpp
.endif
post-patch:
@${REINPLACE_CMD} -e 's|__va_copy|va_copy|g' ${WRKSRC}/src/string.cpp
@${REINPLACE_CMD} -e 's|; make|; ${GMAKE}|g' ${WRKSRC}/Makefile ${WRKSRC}/src/Makefile
@${REINPLACE_CMD} -e 's|sdl-config|${SDL_CONFIG}|g' ${WRKSRC}/sdlwidgets/Makefile ${WRKSRC}/src/Makefile
@${REINPLACE_CMD} -e 's|= g++|?= g++|g' ${WRKSRC}/sdlwidgets/Makefile ${WRKSRC}/src/Makefile
@${REINPLACE_CMD} -e 's|/etc/woprc|${PREFIX}/etc/woprc|' ${WRKSRC}/src/wopsettings.cpp
@${REINPLACE_CMD} -e 's|\./data|${DATADIR}|' ${WRKSRC}/woprc
@${REINPLACE_CMD} -e '/stdint.h/ d' ${WRKSRC}/src/attachableobject.cpp
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/bin/wop ${PREFIX}/bin
${INSTALL_DATA} ${WRKSRC}/woprc ${PREFIX}/etc/woprc.sample
if [ ! -f ${PREFIX}/etc/woprc ]; then \
${INSTALL_DATA} ${WRKSRC}/woprc ${PREFIX}/etc; \
fi
@echo "Installing data files..."
@cd ${WRKDIR}/${PORTNAME}data-${DATAVERSION}; \
${FIND} . -type d -exec ${MKDIR} ${DATADIR}/{} \; ; \
${FIND} . -type f -exec ${INSTALL_DATA} {} ${DATADIR}/{} \;
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
.for file in AUTHORS COPYING ChangeLog README README-COMMAND-LINE-OPTIONS.txt
${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
.endfor
.endif
.include <bsd.port.post.mk>