1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-25 04:43:33 +00:00
freebsd-ports/games/glpuzzle/Makefile
Stanislav Sedov 0d2725682b - Update devel/sdl12 to version 1.2.11. Now we employ stock SDL directory
structure (i.e. include/SDL for includes and sdl-config for configuration
   binary)
 - Update graphics/sdl_ttf to version 2.0.8
 - Update graphics/sdl_image to version 1.2.5
 - Update audio/sdl_mixer to version 1.2.7
 - Update net/sdl_net to version 1.2.6
 - Update Mk/bsd.sdl.mk accordingly
 - Fix dependent ports to fit the new directory structure and avoid several
   API breakages
 - Bump up portrevisions for all dependent ports to allow them to be upgraded
   by portupgrade/portmaster etc tools

Approved by:    kris (portmgr), sem (mentor)
2006-09-20 11:21:59 +00:00

53 lines
1.3 KiB
Makefile

# New ports collection makefile for: glpuzzle
# Date created: 09 Jan 2006
# Whom: Dmitry Marakasov <amdmi3@mail.ru>
#
# $FreeBSD$
#
PORTNAME= glpuzzle
PORTVERSION= 0.2
PORTREVISION= 1
CATEGORIES= games
MASTER_SITES= http://www.iua.upf.es/~mdeboer/resorama/glpuzzle/
EXTRACT_SUFX= .tgz
MAINTAINER= amdmi3@mail.ru
COMMENT= An OpenGL jigsaw puzzle game
LIB_DEPENDS= png.5:${PORTSDIR}/graphics/png \
jpeg.9:${PORTSDIR}/graphics/jpeg
USE_X_PREFIX= yes
USE_SDL= sdl mixer
USE_GL= yes
USE_GMAKE= yes
USE_GCC= 3.4+
MAKE_ENV= CXX="${CXX}" \
CPPFLAGS="`${SDL_CONFIG} --cflags` -I${X11BASE}/include" \
LDFLAGS="`${SDL_CONFIG} --libs` -L${X11BASE}/lib"
post-patch:
.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
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/glpuzzle ${PREFIX}/bin
.for i in font image puzzles sound
${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>