pkgsrc/devel/lutok/Makefile
2017-09-03 09:22:57 +00:00

42 lines
1,010 B
Makefile

# $NetBSD: Makefile,v 1.14 2017/09/03 09:22:57 wiz Exp $
DISTNAME= lutok-0.4
PKGREVISION= 3
CATEGORIES= devel
MASTER_SITES= http://lutok.googlecode.com/files/
MAINTAINER= jmmv@NetBSD.org
HOMEPAGE= https://github.com/jmmv/lutok
COMMENT= Lightweight C++ API for Lua
LICENSE= modified-bsd
USE_LANGUAGES= c c++
USE_LIBTOOL= yes
USE_TOOLS= pkg-config
GNU_CONFIGURE= yes
PKG_OPTIONS_VAR= PKG_OPTIONS.lutok
PKG_SUPPORTED_OPTIONS= tests
PKG_SUGGESTED_OPTIONS= tests
CONFIGURE_ARGS+= --docdir=${PREFIX}/share/doc/lutok
CONFIGURE_ARGS+= --htmldir=${PREFIX}/share/doc/lutok/html
CONFIGURE_ARGS+= --without-doxygen
MAKE_FLAGS+= examplesdir=${PREFIX}/share/examples/lutok
PKGCONFIG_OVERRIDE= lutok.pc.in
.include "../../mk/bsd.options.mk"
.if !empty(PKG_OPTIONS:Mtests)
. include "../../devel/atf/buildlink3.mk"
CONFIGURE_ARGS+= --with-atf
PLIST_SUBST+= TESTS=
.else
CONFIGURE_ARGS+= --without-atf
PLIST_SUBST+= TESTS=@comment
.endif
.include "../../lang/lua/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"