2019-10-21 12:04:12 +02:00
|
|
|
# $NetBSD: Makefile,v 1.17 2019/10/21 10:04:12 micha Exp $
|
|
|
|
|
|
|
|
DISTNAME= fltk-1.3.5-source
|
|
|
|
PKGNAME= ${DISTNAME:S/fltk-/fltk-sudoku-/:S/-source//}
|
|
|
|
VERS= {DISTNAME:S/fltk-//:S/-source//}
|
|
|
|
CATEGORIES= games x11
|
|
|
|
MASTER_SITES= https://fltk.org/pub/fltk/${VERS}/
|
2006-07-18 19:40:40 +02:00
|
|
|
EXTRACT_SUFX= .tar.bz2
|
|
|
|
|
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
2019-10-21 12:04:12 +02:00
|
|
|
# This is one of the example programs shipped with the FLTK library
|
|
|
|
HOMEPAGE= https://www.fltk.org/
|
2006-07-18 19:40:40 +02:00
|
|
|
COMMENT= FLTK example Sudoku game creator and solver
|
2019-10-21 12:04:12 +02:00
|
|
|
LICENSE= gnu-lgpl-v2
|
2006-07-18 19:40:40 +02:00
|
|
|
|
|
|
|
WRKSRC= ${WRKDIR}/${DISTNAME:S/-source//}
|
2006-07-27 16:53:54 +02:00
|
|
|
USE_LANGUAGES= c c++
|
2006-07-18 19:40:40 +02:00
|
|
|
USE_TOOLS+= gmake
|
2019-10-21 12:04:12 +02:00
|
|
|
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
2006-07-18 19:40:40 +02:00
|
|
|
|
|
|
|
PTHREAD_OPTS+= require
|
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
CONFIGURE_ARGS+= --enable-threads
|
2019-10-21 12:04:12 +02:00
|
|
|
CONFIGURE_ARGS+= ac_cv_have_overlay=yes
|
2006-07-18 19:40:40 +02:00
|
|
|
|
2019-10-21 12:04:12 +02:00
|
|
|
CONFIGURE_ARGS+= --disable-shared
|
|
|
|
# Use pkgsrc versions, not package's bundled versions.
|
|
|
|
CONFIGURE_ARGS+= --disable-localjpeg --disable-localzlib --disable-localpng
|
2006-07-18 19:40:40 +02:00
|
|
|
|
2008-04-07 18:53:38 +02:00
|
|
|
INSTALLATION_DIRS= bin
|
|
|
|
|
2019-10-21 12:04:12 +02:00
|
|
|
USE_GAMESGROUP= yes
|
2008-03-04 07:59:03 +01:00
|
|
|
SPECIAL_PERMS= bin/fltk-sudoku ${SETGID_GAMES_PERMS}
|
|
|
|
|
2006-07-18 19:40:40 +02:00
|
|
|
do-install:
|
2008-03-04 07:59:03 +01:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/test/sudoku ${DESTDIR}${PREFIX}/bin/fltk-sudoku
|
2006-07-18 19:40:40 +02:00
|
|
|
|
2019-10-21 12:04:12 +02:00
|
|
|
.if ${OPSYS} != "Darwin"
|
|
|
|
. include "../../x11/libXext/buildlink3.mk"
|
|
|
|
. include "../../x11/libXft/buildlink3.mk"
|
|
|
|
. include "../../x11/libXinerama/buildlink3.mk"
|
2007-03-23 23:10:50 +01:00
|
|
|
BUILDLINK_DEPMETHOD.libXt?= build
|
2019-10-21 12:04:12 +02:00
|
|
|
. include "../../x11/libXt/buildlink3.mk"
|
|
|
|
.endif
|
2010-12-23 12:44:24 +01:00
|
|
|
.include "../../mk/jpeg.buildlink3.mk"
|
2007-03-23 23:10:50 +01:00
|
|
|
.include "../../graphics/png/buildlink3.mk"
|
2019-10-21 12:04:12 +02:00
|
|
|
.include "../../mk/pthread.buildlink3.mk"
|
2006-07-18 19:40:40 +02:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|