1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-03 06:04:53 +00:00
freebsd-ports/games/xscrabble/Makefile
Niclas Zeising be6c15b5c6 Add USES=xorg USES=gl, ports categories g
Add USES=xorg and USES=gl to ports in categories starting with 'g'.
While here, try to sprinkle other USES (mostly gnome and sdl) as needed.
2019-11-05 22:16:14 +00:00

47 lines
1.5 KiB
Makefile

# Created by: Thomas Gellekum <tg@FreeBSD.org>
# $FreeBSD$
PORTNAME= xscrabble
PORTVERSION= 2.12
PORTREVISION= 1
CATEGORIES= games
MASTER_SITES= ftp://ftp.ac-grenoble.fr/ge/educational_games/
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} ${PORTNAME}_en${EXTRACT_SUFX}
MAINTAINER= ports@FreeBSD.org
COMMENT= X version of the popular board game
LICENSE= GPLv2+
LICENSE_FILE= ${WRKSRC}/LICENSE
USES= tar:bzip2 imake xorg
USE_XORG= xaw
XSCRABBLEDIR= ${PREFIX}/lib/X11/xscrabble
post-patch:
@${ECHO_CMD} '#define VERSION ${PORTVERSION:S/.//g}' \
> ${WRKSRC}/src/config.h
@${ECHO_CMD} '#define DICT_FILE "${XSCRABBLEDIR}/OSPD3.gz"' \
>> ${WRKSRC}/src/config.h
@${ECHO_CMD} '#define SCORE_FILE "${XSCRABBLEDIR}/scrabble_scores"' \
>> ${WRKSRC}/src/config.h
@${ECHO_CMD} '#define RULES_FILE "${XSCRABBLEDIR}/scrabble_rules"' \
>> ${WRKSRC}/src/config.h
@${SED} -e 's|/usr/share/games/scrabble/en|${XSCRABBLEDIR}|g' \
${WRKSRC}/../xscrabble_en/app-defaults/XScrabble_en \
> ${WRKSRC}/XScrabble
${REINPLACE_CMD} -e 's|= -O|=$$(CDEBUGFLAGS)|g' ${WRKSRC}/Imakefile
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/src/xscrab ${STAGEDIR}${PREFIX}/bin/
${INSTALL_PROGRAM} ${WRKSRC}/src/xscrabble ${STAGEDIR}${PREFIX}/bin/
${INSTALL_DATA} ${WRKSRC}/XScrabble ${STAGEDIR}${PREFIX}/lib/X11/app-defaults/
${MKDIR} ${STAGEDIR}${XSCRABBLEDIR}
.for file in OSPD3.gz duplicate scrabble_rules scrabble_scores
${INSTALL_DATA} ${WRKSRC}/../xscrabble_en/lib/${file} \
${STAGEDIR}${XSCRABBLEDIR}/
.endfor
.include <bsd.port.mk>