2006-01-11 11:15:28 +00:00
|
|
|
# New ports collection makefile for: glpuzzle
|
|
|
|
# Date created: 09 Jan 2006
|
2006-12-21 20:41:33 +00:00
|
|
|
# Whom: Dmitry Marakasov <amdmi3@amdmi3.ru>
|
2006-01-11 11:15:28 +00:00
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= glpuzzle
|
2006-02-06 12:50:05 +00:00
|
|
|
PORTVERSION= 0.2
|
2007-05-19 20:36:56 +00:00
|
|
|
PORTREVISION= 2
|
2006-01-11 11:15:28 +00:00
|
|
|
CATEGORIES= games
|
2006-12-21 20:41:33 +00:00
|
|
|
MASTER_SITES= http://www.iua.upf.es/~mdeboer/resorama/glpuzzle/ \
|
|
|
|
http://www.amdmi3.ru/distfiles/
|
2006-01-11 11:15:28 +00:00
|
|
|
EXTRACT_SUFX= .tgz
|
|
|
|
|
2006-12-21 20:41:33 +00:00
|
|
|
MAINTAINER= amdmi3@amdmi3.ru
|
2006-01-11 11:15:28 +00:00
|
|
|
COMMENT= An OpenGL jigsaw puzzle game
|
|
|
|
|
|
|
|
LIB_DEPENDS= png.5:${PORTSDIR}/graphics/png \
|
|
|
|
jpeg.9:${PORTSDIR}/graphics/jpeg
|
|
|
|
|
|
|
|
USE_X_PREFIX= yes
|
2006-02-06 12:50:05 +00:00
|
|
|
USE_SDL= sdl mixer
|
2006-01-11 11:15:28 +00:00
|
|
|
USE_GL= yes
|
|
|
|
USE_GMAKE= yes
|
2006-02-06 12:50:05 +00:00
|
|
|
USE_GCC= 3.4+
|
2006-01-11 11:15:28 +00:00
|
|
|
|
|
|
|
MAKE_ENV= CXX="${CXX}" \
|
|
|
|
CPPFLAGS="`${SDL_CONFIG} --cflags` -I${X11BASE}/include" \
|
|
|
|
LDFLAGS="`${SDL_CONFIG} --libs` -L${X11BASE}/lib"
|
|
|
|
|
|
|
|
post-patch:
|
2006-02-06 12:50:05 +00:00
|
|
|
.for i in font image puzzles sound
|
|
|
|
@${REINPLACE_CMD} -e "s|${i}/|${DATADIR}/${i}/|g" ${WRKSRC}/main.cxx
|
|
|
|
.endfor
|
|
|
|
@${REINPLACE_CMD} -e "s|g++|${CXX}|g" ${WRKSRC}/Makefile
|
|
|
|
@${REINPLACE_CMD} -e "s|INCLFLAGS|CPPFLAGS|" ${WRKSRC}/Makefile
|
|
|
|
@${REINPLACE_CMD} -e "/^include.*DEPENDS/ d" ${WRKSRC}/Makefile
|
2006-01-11 11:15:28 +00:00
|
|
|
|
|
|
|
do-install:
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/glpuzzle ${PREFIX}/bin
|
2006-02-06 12:50:05 +00:00
|
|
|
.for i in font image puzzles sound
|
2006-01-11 11:15:28 +00:00
|
|
|
${MKDIR} ${DATADIR}/${i}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/${i}/* ${DATADIR}/${i}
|
|
|
|
.endfor
|
|
|
|
|
|
|
|
.ifndef (NOPORTDOCS)
|
|
|
|
post-install:
|
|
|
|
${MKDIR} ${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|