15945f8122
to GCC 4.8.3. Part II, Bump PORTREVISIONs. PR: 192025 Tested by: antoine (-exp runs) Approved by: portmgr (implicit)
50 lines
1.4 KiB
Makefile
50 lines
1.4 KiB
Makefile
# Created by: Rusmir Dusko <nemysis@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= sdl_jewels
|
|
PORTVERSION= 1.1.1
|
|
PORTREVISION= 4
|
|
CATEGORIES= games
|
|
MASTER_SITES= http://www.linuxmotors.com/gljewel/downloads/ \
|
|
SF/nemysisfreebsdp/${CATEGORIES}/:icons
|
|
DISTFILES= ${PORTNAME:S/sdl/SDL/}-${DISTVERSION}.tgz \
|
|
${PORTNAME}.png:icons
|
|
DIST_SUBDIR= ${PORTNAME}
|
|
EXTRACT_ONLY= ${PORTNAME:S/sdl/SDL/}-${DISTVERSION}.tgz
|
|
|
|
MAINTAINER= games@FreeBSD.org
|
|
COMMENT= Tile-matching 8x8 puzzle game
|
|
|
|
LICENSE= GPLv2
|
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME:S/sdl/SDL/}-${PORTVERSION}
|
|
|
|
USES= gmake
|
|
USE_SDL= sdl image mixer
|
|
ALL_TARGET=
|
|
|
|
PORTDOCS= ChangeLog README
|
|
OPTIONS_DEFINE= DOCS
|
|
|
|
DESKTOP_ENTRIES="SDL Jewels" "" "${PORTNAME}" \
|
|
"${PORTNAME}" "Game;BoardGame;" ""
|
|
|
|
post-patch:
|
|
@${RM} -rf ${WRKSRC}/data/CVS
|
|
@${REINPLACE_CMD} -e 's|data/bigfont.ppm|${DATADIR}/data/bigfont.ppm| ; \
|
|
s|dirlist\[\]="data";|dirlist[]="${DATADIR}/data";| ; \
|
|
s|char name[256],|char name[512],|' \
|
|
${WRKSRC}/gljewel.c ${WRKSRC}/sound.c
|
|
@${REINPLACE_CMD} -e 's|CFLAGS = -O2 -Wall|CFLAGS+=| ; \
|
|
s|LDFLAGS =|LDFLAGS+=|' ${WRKSRC}/Makefile
|
|
|
|
do-install:
|
|
${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}
|
|
|
|
.include <bsd.port.mk>
|