mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-17 03:25:46 +00:00
13dc09955a
game. You are given 6 letters to create as many words as you can in the time alotted. WWW: http://www.shiftygames.com/scramble/scramble.html PR: 88768 Submitted by: Dmitry Marakasov <amdmi3@mail.ru>
61 lines
1.5 KiB
Makefile
61 lines
1.5 KiB
Makefile
# New ports collection makefile for: scramble
|
|
# Date created: 10 Nov 2005
|
|
# Whom: Dmitry Marakasov <amdmi3@mail.ru>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= scramble
|
|
PORTVERSION= 0.9.5
|
|
CATEGORIES= games
|
|
MASTER_SITES= http://www.shiftygames.com/scramble/
|
|
|
|
MAINTAINER= amdmi3@mail.ru
|
|
COMMENT= From 6 letters you are to create as many words as you can
|
|
|
|
GNU_CONFIGURE= yes
|
|
USE_GMAKE= yes
|
|
USE_REINPLACE= yes
|
|
USE_SDL= sdl mixer image ttf
|
|
|
|
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
|
|
CONFIGURE_ENV= LDFLAGS="`${SDL_CONFIG} --libs`" \
|
|
CPPFLAGS="`${SDL_CONFIG} --cflags`" \
|
|
SDL_CONFIG="${SDL_CONFIG}"
|
|
|
|
MAN6= scramble.6
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if defined(WITH_DICTIONARY)
|
|
DICTIONARY=${WITH_DICTIONARY}
|
|
.else
|
|
DICTIONARY=/usr/share/dict/words
|
|
|
|
pre-fetch:
|
|
@${ECHO} ""
|
|
@${ECHO} "You may want to use different dictionary instead of the default one,"
|
|
@${ECHO} "which is /usr/share/dict/words. If so, use the following option:"
|
|
@${ECHO} ""
|
|
@${ECHO} " WITH_DICTIONARY=/path/to/your/dictionary"
|
|
@${ECHO} ""
|
|
.endif
|
|
|
|
post-extract:
|
|
@${FIND} -E ${WRKDIR} -type f -iregex ".*\.(c|cpp|h|txt)" -print0 | \
|
|
${XARGS} -0 ${REINPLACE_CMD} -e 's/[[:cntrl:]]*$$//'
|
|
|
|
.if !exists(${DICTIONARY})
|
|
pre-configure:
|
|
@${ECHO} ""
|
|
@${ECHO} "Dictionary ${DICTIONARY} does not exist"
|
|
@${ECHO} "Please, specify correct one with WITH_DICTIONARY option"
|
|
@${FALSE}
|
|
.endif
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e 's|-std=gnu99 ||g' -e 's|SDL/|SDL11/|g' ${WRKSRC}/configure
|
|
@${REINPLACE_CMD} -e 's|/usr/share/dict/words|${DICTIONARY}|g' ${WRKSRC}/src/scramble.c
|
|
|
|
.include <bsd.port.post.mk>
|