summaryrefslogtreecommitdiff
path: root/games/lgogdownloader/Makefile
blob: 158d59a2d85739b7bff70724fe6a15ad190059b8 (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
# $NetBSD: Makefile,v 1.9 2014/10/26 08:43:32 wiz Exp $

DISTNAME=	lgogdownloader-2.19
CATEGORIES=	games
MASTER_SITES=	http://sites.google.com/site/gogdownloader/

MAINTAINER=	pkgsrc-users@NetBSD.org
HOMEPAGE=	https://github.com/Sude-/lgogdownloader
COMMENT=	Download games from GOG
#LICENSE=	dwtfywtpl

BUILD_DEPENDS+=	help2man-[0-9]*:../../converters/help2man

#WRKSRC=		${WRKDIR}/lgogdownloader
USE_LANGUAGES=	c++
USE_TOOLS+=	gmake gunzip

MAKE_FLAGS+=	PREFIX=${PREFIX}
MAKE_FLAGS+=	MANPREFIX=${PREFIX}
MAKE_FLAGS+=	LDFLAGS=${LDFLAGS:Q}

SUBST_CLASSES+=		json
SUBST_SED.json+=	-e 's,jsoncpp/json/json.h,json/json.h,'
SUBST_FILES.json+=	include/downloader.h include/gamedetails.h include/gamefile.h
SUBST_FILES.json+=	src/api.cpp src/downloader.cpp src/util.cpp
SUBST_STAGE.json=	post-configure
SUBST_MESSAGE.json=	Fixing path to jsoncpp headers.

.include "../../devel/boost-libs/buildlink3.mk"
.include "../../security/liboauth/buildlink3.mk"
.include "../../textproc/tinyxml/buildlink3.mk"
.include "../../www/htmlcxx/buildlink3.mk"
.include "../../www/curl/buildlink3.mk"
.include "../../misc/rhash/buildlink3.mk"
.include "../../textproc/jsoncpp/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"