summaryrefslogtreecommitdiff
path: root/games/euchre/Makefile
blob: b85dd22648dd2a379e3116a91e01050f3ca7ae1a (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
# Created by: Frank Laszlo <laszlof@freebsdmatrix.net>
# $FreeBSD$

PORTNAME=	euchre
PORTVERSION=	0.8
PORTREVISION=	2
CATEGORIES=	games
MASTER_SITES=	SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION} \
		SF/nemysisfreebsdp/${CATEGORIES}/:icons
DISTFILES=	${PORTNAME}-${DISTVERSION}${EXTRACT_SUFX} \
		${PORTNAME}.png:icons
EXTRACT_ONLY=	${PORTNAME}-${DISTVERSION}${EXTRACT_SUFX}

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Very popular card game with variable skill levels

LICENSE=	GPLv2

USES=		compiler:c++11-lang pkgconfig
USE_GNOME=	gtk20
GNU_CONFIGURE=	yes

PLIST_FILES=	bin/${PORTNAME} \
		share/pixmaps/${PORTNAME}.png

PORTDOCS=	AUTHORS ChangeLog README
OPTIONS_DEFINE=	DOCS

DESKTOP_ENTRIES="Euchre" "" "${PORTNAME}" \
		"${PORTNAME}" "Game;CardGame;" ""

post-patch:
	@${REINPLACE_CMD} -e \
		'/^AM_/s|-Werror||' ${WRKSRC}/configure
	@${REINPLACE_CMD} -e 's|int)|long int)|g' \
		${WRKSRC}/src/gui/callbacks.cpp ${WRKSRC}/src/lib/Game.cpp

post-install:
	${INSTALL_DATA} ${_DISTDIR}/${PORTNAME}.png \
		${STAGEDIR}${PREFIX}/share/pixmaps/

	@${MKDIR} ${STAGEDIR}${DOCSDIR}
	${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}

.include <bsd.port.mk>