pkgsrc/devel/lutok/Makefile
jmmv d50b653410 Initial import of lutok, version 0.1:
Lutok is a lightweight C++ API library for Lua.

Lutok provides thin C++ wrappers around the Lua C API to ease the
interaction between C++ and Lua.  These wrappers make intensive use of
RAII to prevent resource leakage, expose C++-friendly data types, report
errors by means of exceptions and ensure that the Lua stack is always
left untouched in the face of errors.  The library also provides a small
subset of miscellaneous utility functions built on top of the wrappers.

Lutok focuses on providing a clean and safe C++ interface; the drawback
is that it is not suitable for performance-critical environments.  In
order to implement error-safe C++ wrappers on top of a Lua C binary
library, Lutok adds several layers or abstraction and error checking
that go against the original spirit of the Lua C API and thus degrade
performance.
2012-01-29 20:59:59 +00:00

45 lines
1 KiB
Makefile

# $NetBSD: Makefile,v 1.1.1.1 2012/01/29 20:59:59 jmmv Exp $
#
DISTNAME= lutok-0.1
CATEGORIES= devel
MASTER_SITES= http://lutok.googlecode.com/files/
MAINTAINER= jmmv@NetBSD.org
HOMEPAGE= http://code.google.com/p/kyua/
COMMENT= Lightweight C++ API for Lua
LICENSE= 2-clause-bsd
PKG_DESTDIR_SUPPORT= user-destdir
GNU_CONFIGURE= yes
MAKE_JOBS_SAFE= yes
USE_LANGUAGES= c c++
USE_LIBTOOL= yes
USE_TOOLS= pkg-config
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 $(PKG_OPTIONS:Mtests)
CONFIGURE_ARGS+= --with-atf
PLIST_SUBST+= TESTS=
. include "../../devel/atf/buildlink3.mk"
.else
CONFIGURE_ARGS+= --without-atf
PLIST_SUBST+= TESTS=@comment
.endif
.include "../../lang/lua/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"