freebsd-ports/games/xscrabble/Makefile

48 lines
1.5 KiB
Makefile
Raw Normal View History

1997-08-04 13:45:49 +02:00
# New ports collection makefile for: xscrabble
# Date created: 27 July 1997
# Whom: Thomas Gellekum <tg@FreeBSD.org>
#
1999-08-25 08:06:33 +02:00
# $FreeBSD$
1997-08-04 13:45:49 +02:00
#
PORTNAME= xscrabble
PORTVERSION= 2.10
1997-08-04 13:45:49 +02:00
CATEGORIES= games
MASTER_SITES= ftp://ftp.ac-grenoble.fr/ge/educational_games/
DISTFILES= ${PORTNAME}-${PORTVERSION}.tgz ${PORTNAME}_en.tgz
1997-08-04 13:45:49 +02:00
MAINTAINER= ports@FreeBSD.org
2003-02-20 18:32:26 +01:00
COMMENT= X version of the popular board game
1997-08-04 13:45:49 +02:00
USE_IMAKE= yes
USE_XPM= yes
USE_REINPLACE= yes
1997-08-04 13:45:49 +02:00
NO_INSTALL_MANPAGES= yes
XSCRABBLEDIR= ${PREFIX}/lib/X11/xscrabble
1997-08-04 13:45:49 +02:00
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/games/lib/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
1997-08-04 13:45:49 +02:00
.include <bsd.port.mk>