summaryrefslogtreecommitdiff
path: root/games/fltk-sudoku/Makefile
blob: 9581844ef9af896f9170647826a24c7949ae7c7a (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
52
53
54
55
56
57
58
59
60
61
62
63
# $NetBSD: Makefile,v 1.6 2009/08/26 19:57:30 sno Exp $

DISTNAME=	fltk-1.1.7-source
PKGNAME=	fltk-sudoku-1.1.7
PKGREVISION=	2
VERS=		${DISTNAME:S/fltk-//:S/-source//}
CATEGORIES=	x11
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE:=fltk/} \
		ftp://ftp2.easysw.com/pub/fltk/${VERS}/ \
		ftp://ftp3.easysw.com/pub/fltk/${VERS}/ \
		http://ftp.easysw.com/pub/fltk/${VERS}/ \
		http://mirror.nu6.org/ftp.easysw.com/pub/fltk/${VERS}/ \
		ftp://ftp.funet.fi/pub/mirrors/ftp.easysw.com/pub/fltk/${VERS}/ \
		ftp://ftp.rz.tu-bs.de/pub/mirror/ftp.easysw.com/ftp/pub/fltk/${VERS}/
EXTRACT_SUFX=	.tar.bz2

MAINTAINER=	pkgsrc-users@NetBSD.org
HOMEPAGE=	http://www.easysw.com/~mike/sudoku/index.html
COMMENT=	FLTK example Sudoku game creator and solver

PKG_DESTDIR_SUPPORT=	user-destdir

WRKSRC=			${WRKDIR}/${DISTNAME:S/-source//}
USE_LANGUAGES=		c c++
USE_TOOLS+=		gmake
USE_LIBTOOL=		yes

PTHREAD_OPTS+=		require
GNU_CONFIGURE=		yes
CONFIGURE_ARGS+=	--enable-libtool=${LIBTOOL:Q}
CONFIGURE_ARGS+=	--enable-threads

SUBST_CLASSES+=		config
SUBST_STAGE.config=	post-configure
SUBST_MESSAGE.config=	Adjusting paths to fltk libraries in configure result
SUBST_FILES.config=	makeinclude fltk-config
SUBST_SED.config=	-e "s|../lib/|${PREFIX}/lib/|g"

SUBST_CLASSES+=		config2
SUBST_STAGE.config2=	post-configure
SUBST_MESSAGE.config2=	Adjusting paths to fltk libraries in Sudoku's Makefile
SUBST_FILES.config2=	test/Makefile
SUBST_SED.config2=	-e "s|../lib/||g"

BUILD_DIRS=		test
BUILD_TARGET=		sudoku

INSTALLATION_DIRS=	bin

SETGIDGAME=		yes
SPECIAL_PERMS=		bin/fltk-sudoku ${SETGID_GAMES_PERMS}

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/test/sudoku ${DESTDIR}${PREFIX}/bin/fltk-sudoku

BUILDLINK_DEPMETHOD.libXt?=	build

.include "../../graphics/jpeg/buildlink3.mk"
.include "../../graphics/png/buildlink3.mk"
.include "../../x11/fltk/buildlink3.mk"
.include "../../x11/libX11/buildlink3.mk"
.include "../../x11/libXt/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"