2009-12-15 13:43:04 +01:00
|
|
|
# $NetBSD: Makefile,v 1.14 2009/12/15 12:43:04 fhajny Exp $
|
2004-04-05 15:57:53 +02:00
|
|
|
#
|
|
|
|
|
2009-12-15 13:43:04 +01:00
|
|
|
DISTNAME= luaexpat-1.1
|
|
|
|
PKGNAME= ${DISTNAME:S/lua/lua-/}.0
|
2004-04-05 15:57:53 +02:00
|
|
|
CATEGORIES= textproc
|
2009-12-15 13:43:04 +01:00
|
|
|
MASTER_SITES= http://luaforge.net/frs/download.php/2469/
|
2004-04-05 15:57:53 +02:00
|
|
|
|
|
|
|
MAINTAINER= pancake@phreaker.net
|
2007-02-22 20:01:13 +01:00
|
|
|
HOMEPAGE= http://www.keplerproject.org/luaexpat/
|
2004-04-05 15:57:53 +02:00
|
|
|
COMMENT= XML parser for LUA based on expat
|
2009-12-15 13:43:04 +01:00
|
|
|
LICENSE= mit
|
2004-04-05 15:57:53 +02:00
|
|
|
|
2009-07-07 23:08:34 +02:00
|
|
|
PKG_DESTDIR_SUPPORT= user-destdir
|
|
|
|
|
2005-05-22 22:07:36 +02:00
|
|
|
USE_TOOLS+= gmake
|
2006-09-09 04:41:53 +02:00
|
|
|
MAKE_FILE= makefile
|
2004-04-05 15:57:53 +02:00
|
|
|
|
2008-08-17 09:08:24 +02:00
|
|
|
CFLAGS+= -fPIC
|
|
|
|
|
2009-12-15 13:43:04 +01:00
|
|
|
MAKE_FLAGS+= LUA_DIR=${BUILDLINK_PREFIX.lua}
|
|
|
|
MAKE_FLAGS+= LUA_INC=${BUILDLINK_PREFIX.lua}/include
|
|
|
|
MAKE_FLAGS+= EXPAT_INC=${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} share/examples/lua
|
2005-06-17 05:50:19 +02:00
|
|
|
|
2004-04-05 15:57:53 +02:00
|
|
|
do-install:
|
2009-12-15 13:43:04 +01:00
|
|
|
${INSTALL_LIB} ${WRKSRC}/src/lxp.so.${PKGVERSION} ${DESTDIR}${PREFIX}/${LUA_CDIR}/lxp.so
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/src/lxp/lom.lua ${DESTDIR}${PREFIX}/${LUA_LDIR}/lom.lua
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/tests/test.lua ${DESTDIR}${PREFIX}/share/examples/lua/lxp.lua
|
2004-04-05 15:57:53 +02:00
|
|
|
|
|
|
|
.include "../../textproc/expat/buildlink3.mk"
|
2009-12-15 13:43:04 +01:00
|
|
|
.include "../../lang/lua/module.mk"
|
2004-04-05 15:57:53 +02:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|