pkgsrc/textproc/lua-expat/Makefile
2014-10-19 22:27:43 +00:00

31 lines
909 B
Makefile

# $NetBSD: Makefile,v 1.22 2014/10/19 22:27:47 alnsn Exp $
#
DISTNAME= luaexpat-1.3.0
PKGNAME= ${DISTNAME:S/lua/${LUA_PKGPREFIX}-/}
PKGREVISION= 2
CATEGORIES= textproc
MASTER_SITES= https://matthewwild.co.uk/projects/luaexpat/
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://matthewwild.co.uk/projects/luaexpat/
COMMENT= XML parser for LUA based on expat
LICENSE= mit
USE_TOOLS+= gmake
CFLAGS+= -fPIC
MAKE_FLAGS+= LUA_DIR=${BUILDLINK_PREFIX.lua}
MAKE_FLAGS+= LUA_CDIR=${PREFIX}/${LUA_CDIR}
MAKE_FLAGS+= LUA_LDIR=${PREFIX}/${LUA_LDIR}
MAKE_FLAGS+= LUA_INC=-I${BUILDLINK_PREFIX.lua}/include
MAKE_FLAGS+= EXPAT_INC=-I${BUILDLINK_PREFIX.expat}/include
MAKE_FLAGS+= LUA_VERSION_NUM=${LUA_VERSION_MAJOR}0${LUA_VERSION_MINOR}
BUILD_TARGET= lib
INSTALLATION_DIRS= ${LUA_CDIR} ${LUA_LDIR}/lxp
.include "../../textproc/expat/buildlink3.mk"
.include "../../lang/lua/module.mk"
.include "../../mk/bsd.pkg.mk"