2013-09-20 17:36:33 +00:00
|
|
|
# Created by: Alexey Dokuchaev <danfe@FreeBSD.org>
|
2005-01-20 09:09:41 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= highmoon
|
2006-03-31 03:16:18 +00:00
|
|
|
PORTVERSION= 1.2.4
|
2012-06-01 05:26:28 +00:00
|
|
|
PORTREVISION= 9
|
2005-01-20 09:09:41 +00:00
|
|
|
CATEGORIES= games
|
|
|
|
MASTER_SITES= http://highmoon.gerdsmeier.net/
|
|
|
|
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
|
|
COMMENT= Duel in the universe
|
|
|
|
|
2005-03-16 20:08:40 +00:00
|
|
|
WRKSRC= ${WRKDIR}/HighMoon
|
2005-02-25 13:35:34 +00:00
|
|
|
|
|
|
|
USE_SDL= image sdl
|
2013-11-02 03:42:07 +00:00
|
|
|
USES= gmake
|
2005-02-25 13:35:34 +00:00
|
|
|
MAKE_ARGS= CXX="${CXX}" CXXFLAGS="${CXXFLAGS}" LIBS="${LDFLAGS}"
|
2005-01-20 09:09:41 +00:00
|
|
|
|
2005-02-25 13:35:34 +00:00
|
|
|
CXXFLAGS+= `${SDL_CONFIG} --cflags`
|
2011-09-23 22:26:39 +00:00
|
|
|
LDFLAGS+= `${SDL_CONFIG} --libs` -lSDL_image
|
2005-01-20 09:09:41 +00:00
|
|
|
|
2013-11-02 03:42:07 +00:00
|
|
|
OPTIONS_DEFINE= DOCS
|
|
|
|
|
2005-02-25 13:35:34 +00:00
|
|
|
post-patch:
|
|
|
|
@${FIND} ${WRKSRC}/src -type f | ${XARGS} ${REINPLACE_CMD} -e \
|
|
|
|
's|SDL/SDL|SDL|g ; \
|
|
|
|
s|^#define __ENV|//#define __ENV|g ; \
|
|
|
|
s|"gfx/|"${DATADIR}/gfx/|g ; \
|
|
|
|
s|"snd/|"${DATADIR}/snd/|g ; \
|
|
|
|
s|-round(|-rint(|g'
|
2005-01-20 09:09:41 +00:00
|
|
|
|
|
|
|
do-install:
|
2013-11-02 03:42:07 +00:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/ufo ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
|
|
|
|
@${MKDIR} ${STAGEDIR}${DATADIR}/gfx
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/gfx/* ${STAGEDIR}${DATADIR}/gfx
|
|
|
|
@${MKDIR} ${STAGEDIR}${DATADIR}/snd
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/snd/* ${STAGEDIR}${DATADIR}/snd
|
|
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}
|
2005-01-20 09:09:41 +00:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|