summaryrefslogtreecommitdiffstats
path: root/games/freedoko/Makefile
blob: e96fb4b5b132724f6274e7c01cc4762523d2b44b (plain)
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
44
45
46
47
48
49
50
51
# New ports collection makefile for:	FreeDoko
# Date created:		02 Jun 2004
# Whom:			Thomas Gellekum <tg@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=	freedoko
PORTVERSION=	0.6.5b
#PORTREVISION=	1
CATEGORIES=	games
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR=	free-doko
DISTNAME=	FreeDoko_${PORTVERSION}.src

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Play the card game Doppelkopf

LIB_DEPENDS=	gtkmm-2.4.1:${PORTSDIR}/x11-toolkits/gtkmm24

USE_ZIP=	yes
WRKSRC=		${WRKDIR}/${DISTNAME:C/\.src$//}/src
USE_REINPLACE=	yes
USE_GMAKE=	yes
USE_GCC=	3.3
MAKE_ENV=	OSTYPE=linux-gnu DATADIR=${DATADIR}

CPIOFLAGS=	--quiet -pdum -R ${SHAREOWN}:${SHAREGRP}
DATASUBDIRS=	ai backgrounds cardsets rules translations

post-patch:
	@for f in ${WRKSRC}/ui/gtkmm/*.cpp ${WRKSRC}/ui/gtkmm/widgets/*.cpp ${WRKSRC}/ui/gtkmm/widgets/*.h; \
	do \
		${REINPLACE_CMD} -e "s/SigC::slot/sigc::mem_fun/g" \
			-e "s/SigC::Connection/sigc::connection/g" \
			-e "s/SigC::Slot/sigc::slot/g" \
			-e "s/SigC/sigc/g" $$f; \
	done

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/FreeDoko ${PREFIX}/bin
	${LN} ${PREFIX}/bin/FreeDoko ${PREFIX}/bin/freedoko
	@${MKDIR} ${DATADIR}
	@cd ${WRKSRC}/../data && \
	 ${FIND} ${DATASUBDIRS} ! -name Makefile\* \
	 | ${CPIO} ${CPIOFLAGS} ${DATADIR}
	@${MKDIR} ${DOCSDIR}
	@cd ${WRKSRC}/../doc && \
	 ${FIND} . ! -name Makefile\* | ${CPIO} ${CPIOFLAGS} ${DOCSDIR}

.include <bsd.port.mk>
OpenPOWER on IntegriCloud