summaryrefslogtreecommitdiff
path: root/games/fltk-sudoku/Makefile
blob: cec5111f5b498b050704e5030f49d277d1960779 (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
# $NetBSD: Makefile,v 1.3 2007/03/23 22:10:50 joerg Exp $

DISTNAME=	fltk-1.1.7-source
PKGNAME=	fltk-sudoku-1.1.7
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

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

do-install:
	${INSTALL_GAME} ${WRKSRC}/test/sudoku ${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"