1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-13 03:03:15 +00:00
freebsd-ports/games/xscrabble/Makefile
Florent Thoumie 340b57f8be - Update X.org ports to 7.4+ (few ports are more recent than the katamari).
- Bump PORTREVISION for all ports depending on libglut since the shlib
version number went from 4 to 3.
- Bump PORTREVISION for all ports depending on libXaw as libXaw.so.8 isn't
installed anymore.
- Couple of ports fixes (mostly missing xorg components added to USE_XORG).
2009-01-23 16:28:36 +00:00

49 lines
1.5 KiB
Makefile

# New ports collection makefile for: xscrabble
# Date created: 27 July 1997
# Whom: 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
USE_BZIP2= yes
USE_IMAKE= yes
USE_XORG= xaw
NO_INSTALL_MANPAGES= yes
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 ${PREFIX}/bin
${INSTALL_PROGRAM} ${WRKSRC}/src/xscrabble ${PREFIX}/bin
${INSTALL_DATA} ${WRKSRC}/XScrabble ${PREFIX}/lib/X11/app-defaults
@${MKDIR} ${XSCRABBLEDIR}
.for file in OSPD3.gz duplicate scrabble_rules scrabble_scores
${INSTALL_DATA} ${WRKSRC}/../xscrabble_en/lib/${file} ${XSCRABBLEDIR}
.endfor
.include <bsd.port.mk>