2013-12-24 23:58:42 +01:00
|
|
|
# Created by: Rusmir Dusko <nemysis@FreeBSD.org>
|
2012-04-27 20:30:32 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= sdl_jewels
|
|
|
|
PORTVERSION= 1.1.1
|
2014-12-08 17:48:38 +01:00
|
|
|
PORTREVISION= 5
|
2012-04-27 20:30:32 +02:00
|
|
|
CATEGORIES= games
|
2012-10-11 15:43:44 +02:00
|
|
|
MASTER_SITES= http://www.linuxmotors.com/gljewel/downloads/ \
|
2013-12-24 23:58:42 +01:00
|
|
|
SF/nemysisfreebsdp/${CATEGORIES}/:icons
|
2012-10-11 15:43:44 +02:00
|
|
|
DISTFILES= ${PORTNAME:S/sdl/SDL/}-${DISTVERSION}.tgz \
|
2013-12-24 23:58:42 +01:00
|
|
|
${PORTNAME}.png:icons
|
2012-10-11 15:43:44 +02:00
|
|
|
DIST_SUBDIR= ${PORTNAME}
|
|
|
|
EXTRACT_ONLY= ${PORTNAME:S/sdl/SDL/}-${DISTVERSION}.tgz
|
2012-04-27 20:30:32 +02:00
|
|
|
|
2014-10-31 17:11:33 +01:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2012-10-11 15:43:44 +02:00
|
|
|
COMMENT= Tile-matching 8x8 puzzle game
|
2012-04-27 20:30:32 +02:00
|
|
|
|
2012-10-11 15:43:44 +02:00
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME:S/sdl/SDL/}-${PORTVERSION}
|
|
|
|
|
2013-12-24 23:58:42 +01:00
|
|
|
USES= gmake
|
2012-04-27 20:30:32 +02:00
|
|
|
USE_SDL= sdl image mixer
|
2014-10-14 17:38:39 +02:00
|
|
|
ALL_TARGET= # empty
|
2012-04-27 20:30:32 +02:00
|
|
|
|
|
|
|
PORTDOCS= ChangeLog README
|
2013-12-24 23:58:42 +01:00
|
|
|
OPTIONS_DEFINE= DOCS
|
2012-10-11 15:43:44 +02:00
|
|
|
|
2013-12-24 23:58:42 +01:00
|
|
|
DESKTOP_ENTRIES="SDL Jewels" "" "${PORTNAME}" \
|
|
|
|
"${PORTNAME}" "Game;BoardGame;" ""
|
2012-04-27 20:30:32 +02:00
|
|
|
|
2012-07-09 14:37:07 +02:00
|
|
|
post-patch:
|
2016-10-21 14:51:40 +02:00
|
|
|
@${RM} -r ${WRKSRC}/data/CVS
|
2013-12-24 23:58:42 +01:00
|
|
|
@${REINPLACE_CMD} -e 's|data/bigfont.ppm|${DATADIR}/data/bigfont.ppm| ; \
|
|
|
|
s|dirlist\[\]="data";|dirlist[]="${DATADIR}/data";| ; \
|
|
|
|
s|char name[256],|char name[512],|' \
|
2012-10-11 15:43:44 +02:00
|
|
|
${WRKSRC}/gljewel.c ${WRKSRC}/sound.c
|
2013-12-24 23:58:42 +01:00
|
|
|
@${REINPLACE_CMD} -e 's|CFLAGS = -O2 -Wall|CFLAGS+=| ; \
|
|
|
|
s|LDFLAGS =|LDFLAGS+=|' ${WRKSRC}/Makefile
|
2012-07-09 14:37:07 +02:00
|
|
|
|
2012-04-27 20:30:32 +02:00
|
|
|
do-install:
|
2013-12-24 23:58:42 +01:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/gljewel ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
|
|
|
|
@(cd ${WRKSRC} && ${COPYTREE_SHARE} data ${STAGEDIR}${DATADIR})
|
|
|
|
${INSTALL_DATA} ${_DISTDIR}/${PORTNAME}.png \
|
|
|
|
${STAGEDIR}${PREFIX}/share/pixmaps/
|
|
|
|
|
|
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
|
2012-04-27 20:30:32 +02:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|