1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-02 06:03:50 +00:00
freebsd-ports/games/cchess/Makefile
Juergen Lock 0edca97428 - Update comms/lirc to 0.9.0p1_4 in order to be able to use the lirc
support in webcamd svn (for mceusb-based receivers/transmitters and
  USB DVB tuner remotes supported by the Linux code), and enable
  support for a few more USB devices while we're at it tho of those
  only an FTDI-based one was tested:

	http://www.huitsing.nl/irftdi/ [1]

- Fix plist for audio/rhythmbox and multimedia/totem and
  add missing LIRC_{CFLAGS,LIBS} variables to CONFIGURE_ENV for
  multimedia/xine when building them with (optional) lirc support. [2]

- Chase liblirc_client shlib version bump for ports depdending on it
  and bump PORTREVISIONs for ports depending on it by default.

Approved by:	portmgr (miwi) [2]
Thanks to:	Warren Block <wblock@wonkity.com> for testing [1]
2011-02-26 22:11:54 +00:00

47 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
PORTREVISION= 1
CATEGORIES= games
MASTER_SITES= ftp://local-distfiles.freebsd.org.cn/pub/china-ports/hamigua/
MAINTAINER= ports@FreeBSD.org
COMMENT= Very simple Chinese chess program
LIB_DEPENDS= alleg.42:${PORTSDIR}/devel/allegro \
lirc_client.2:${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>