aboutsummaryrefslogtreecommitdiffstats
path: root/games/cheech/Makefile
blob: 135b8b1abaa77dc7a485e8215e0a84f04f95ee1a (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
36
37
38
39
40
41
42
43
# Created by: Yinghong.Liu <relaxbsd@gmail.com>
# $FreeBSD$

PORTNAME=   cheech
PORTVERSION=    0.8
PORTREVISION=   6
CATEGORIES= games
MASTER_SITES=   SF
EXTRACT_SUFX=   .tgz

MAINTAINER= ports@FreeBSD.org
COMMENT=    Multiplayer Chinese Checkers game

LIB_DEPENDS=    libgtkmm-2.4.so:${PORTSDIR}/x11-toolkits/gtkmm24 \
        libgnet-2.0.so:${PORTSDIR}/net/gnet2

USES=       gmake pkgconfig
GNU_CONFIGURE=  yes
USE_AUTOTOOLS=  automake:env

OPTIONS_DEFINE= DOCS

DESKTOP_ENTRIES=    "cheech" \
            "${COMMENT}" \
            "${PREFIX}/share/pixmaps/${PORTNAME}.png" \
            "cheech" \
            "Game;BoardGame;" \
            "false"

INSTALL_TARGET= install install-cheechdocDATA

post-patch:
    @${REINPLACE_CMD} -e "s|doc/cheech|share/doc/cheech|g" \
        -e "s|: install-cheechdocDATA|:|g" \
        ${WRKSRC}/Makefile.in
    @${REINPLACE_CMD} -e 's|connect(SigC::slot|connect(sigc::mem_fun|g ; \
        s|#include <sigc++\/compatibility\.h>||g' \
            ${WRKSRC}/src/*.cc

pre-configure:
    @${LN} -sf ${AUTOMAKE_DIR}/install-sh ${WRKSRC}

.include <bsd.port.mk>