aboutsummaryrefslogtreecommitdiffstats
path: root/games/CaribbeanStud/Makefile
blob: 0a30bc86b66e862727a621e89693de02d00d676c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# Created by: Andrey Zakhvatov
# $FreeBSD$

PORTNAME=   CaribbeanStud
PORTVERSION=    1.0
PORTREVISION=   3
CATEGORIES= games
MASTER_SITES=   XCONTRIB/games
DISTNAME=   CS

MAINTAINER= ports@FreeBSD.org
COMMENT=    Caribbean Stud gambling game for X Window System

LICENSE=    MIT

MAKEFILE=   Xmakefile
USES=       motif
CFLAGS+=    -Wno-deprecated

OPTIONS_DEFINE= DOCS

post-patch:
    @${REINPLACE_CMD} -e 's|iostream\.h|iostream|g' \
        ${WRKSRC}/Card.cpp ${WRKSRC}/Card.h ${WRKSRC}/CaribbeanStud.cpp \
        ${WRKSRC}/Dealer.cpp ${WRKSRC}/Deck.cpp ${WRKSRC}/Player.cpp \
        ${WRKSRC}/Seat.cpp ${WRKSRC}/Table.cpp

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/CaribbeanStud ${STAGEDIR}${PREFIX}/bin
    ${INSTALL_DATA} ${WRKSRC}/CaribbeanStud.res ${STAGEDIR}${PREFIX}/lib/X11/app-defaults/CaribbeanStud
    @${MKDIR} ${STAGEDIR}${PREFIX}/share/doc/CaribbeanStud
    ${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${PREFIX}/share/doc/CaribbeanStud
    ${INSTALL_DATA} ${WRKSRC}/class.ps ${STAGEDIR}${PREFIX}/share/doc/CaribbeanStud

.include <bsd.port.mk>