2005-12-27 02:20:07 +00:00
|
|
|
# New ports collection makefile for: wop
|
|
|
|
# Date created: 26 Dec 2005
|
2006-12-21 20:41:33 +00:00
|
|
|
# Whom: Dmitry Marakasov <amdmi3@amdmi3.ru>
|
2005-12-27 02:20:07 +00:00
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= wop
|
2006-07-27 04:46:07 +00:00
|
|
|
PORTVERSION= 0.4.3
|
2008-03-26 15:28:06 +00:00
|
|
|
PORTREVISION= 4
|
2005-12-27 02:20:07 +00:00
|
|
|
CATEGORIES= games
|
2006-12-21 20:41:33 +00:00
|
|
|
MASTER_SITES= http://wormsofprey.org/download/ \
|
|
|
|
http://www.amdmi3.ru/distfiles/
|
2005-12-27 02:20:07 +00:00
|
|
|
DISTFILES= ${PORTNAME}-${PORTVERSION}-src${EXTRACT_SUFX} \
|
|
|
|
${PORTNAME}data-${DATAVERSION}${EXTRACT_SUFX}
|
|
|
|
|
2006-12-21 20:41:33 +00:00
|
|
|
MAINTAINER= amdmi3@amdmi3.ru
|
2005-12-27 02:20:07 +00:00
|
|
|
COMMENT= Free real-time Worms game
|
|
|
|
|
2008-03-26 15:28:06 +00:00
|
|
|
BUILD_DEPENDS= makedepend:${PORTSDIR}/devel/makedepend
|
2005-12-27 04:52:55 +00:00
|
|
|
|
2005-12-27 02:20:07 +00:00
|
|
|
USE_BZIP2= yes
|
|
|
|
USE_SDL= sdl net mixer ttf image
|
|
|
|
USE_GMAKE= yes
|
|
|
|
|
|
|
|
MAKE_ENV= "CXX=${CXX}"
|
|
|
|
|
|
|
|
DATAVERSION= 2005-12-21
|
|
|
|
|
|
|
|
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
|
2006-02-12 04:08:19 +00:00
|
|
|
@${REINPLACE_CMD} -e '/stdint.h/ d' ${WRKSRC}/src/attachableobject.cpp
|
2005-12-27 02:20:07 +00:00
|
|
|
|
|
|
|
do-install:
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/bin/wop ${PREFIX}/bin
|
2006-02-12 04:08:19 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/woprc ${PREFIX}/etc/woprc.sample
|
|
|
|
if [ ! -f ${PREFIX}/etc/woprc ]; then \
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/woprc ${PREFIX}/etc; \
|
|
|
|
fi
|
2005-12-27 02:20:07 +00:00
|
|
|
|
2006-02-12 04:08:19 +00:00
|
|
|
@echo "Installing data files..."
|
2005-12-27 02:20:07 +00:00
|
|
|
@cd ${WRKDIR}/${PORTNAME}data-${DATAVERSION}; \
|
|
|
|
${FIND} . -type d -exec ${MKDIR} ${DATADIR}/{} \; ; \
|
|
|
|
${FIND} . -type f -exec ${INSTALL_DATA} {} ${DATADIR}/{} \;
|
|
|
|
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
${MKDIR} ${DOCSDIR}
|
2007-10-04 01:02:44 +00:00
|
|
|
.for f in AUTHORS COPYING ChangeLog README README-COMMAND-LINE-OPTIONS.txt
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}
|
2005-12-27 02:20:07 +00:00
|
|
|
.endfor
|
|
|
|
.endif
|
|
|
|
|
2007-10-04 01:02:44 +00:00
|
|
|
.include <bsd.port.mk>
|