1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-28 05:29:48 +00:00
freebsd-ports/games/cchess/Makefile
Beech Rintoul ebc6758085 - Change maintainer address
- Cleanup master_sites

Requested by:	Yinghong Liu <relaxbsd@gmail.com> (maintainer)
Approved by:	sat (mentor)
2007-07-05 07:21:24 +00:00

46 lines
1.2 KiB
Makefile

# New ports collection makefile for: cchess
# Date created: 10 May 2007
# Whom: Yinghong Liu <relaxbsd@gmail.com>
#
# $FreeBSD$
#
PORTNAME= cchess
PORTVERSION= 1.4
CATEGORIES= games
MASTER_SITES= ftp://local-distfiles.freebsd.org.cn/pub/china-ports/hamigua/
MAINTAINER= relaxbsd@gmail.com
COMMENT= Very simple Chinese chess program
LIB_DEPENDS= alleg.42:${PORTSDIR}/devel/allegro \
lirc_client.1:${PORTSDIR}/comms/lirc
USE_GMAKE= yes
SYSCONFDIR= ${PREFIX}/etc/cchess
post-patch:
@${REINPLACE_CMD} -e 's|qizi.bmp|${DATADIR}/qizi.bmp|' \
-e 's|xqbg.bmp|${DATADIR}/xqbg.bmp|' \
-e 's|BOOK.DAT|${DATADIR}/BOOK.DAT|' \
-e 's|big.dat|${DATADIR}/big.dat|' \
-e 's|jiang.wav|${DATADIR}/jiang.wav|' \
${WRKSRC}/src/main.cpp
@${REINPLACE_CMD} -e 's|sdklircrc|${SYSCONFDIR}/sdklircrc|' \
${WRKSRC}/src/aihomesdk.cpp
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/cchess ${LOCALBASE}/bin
${MKDIR} ${SYSCONFDIR}
${INSTALL_DATA} ${WRKSRC}/sdklircrc ${SYSCONFDIR}/sdklircrc.sample
if [ ! -f ${SYSCONFDIR}/sdklircrc ]; then \
${INSTALL_DATA} ${WRKSRC}/sdklircrc ${SYSCONFDIR}; \
fi
${MKDIR} ${DATADIR}
.for i in BOOK.DAT jiang.wav big.dat qizi.bmp xqbg.bmp
${INSTALL_DATA} ${WRKSRC}/$i ${DATADIR}
.endfor
.include <bsd.port.mk>