openbsd-ports/devel/luafs/Makefile

39 lines
1.1 KiB
Makefile
Raw Normal View History

2005-07-08 13:57:27 -04:00
# $OpenBSD: Makefile,v 1.2 2005/07/08 17:57:27 jolan Exp $
SHARED_ONLY= Yes
COMMENT= "file system library for the lua language"
2005-07-08 13:57:27 -04:00
DISTNAME= luafilesystem-1.1
PKGNAME= luafs-1.1
CATEGORIES= devel
2005-07-08 13:57:27 -04:00
MASTER_SITES= http://luaforge.net/frs/download.php/831/
HOMEPAGE= http://www.keplerproject.org/luafilesystem/
MAINTAINER= Pedro Martelletto <pedro@openbsd.org>
# MIT
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
NO_REGRESS= Yes
BUILD_DEPENDS= ::lang/lua ::devel/luacompat
RUN_DEPENDS= ${BUILD_DEPENDS}
post-extract:
@sed -e "s:@fspath@:${PREFIX}/lua/luafs/?.lua:g" \
-e "s:@fscpath@:${PREFIX}/lib/?.so:g" \
${FILESDIR}/init.lua > ${WRKSRC}/init.lua
do-install:
${INSTALL_DATA_DIR} ${PREFIX}/lua/luafs
2005-07-08 13:57:27 -04:00
${INSTALL_DATA} ${WRKBUILD}/src/*.so ${PREFIX}/lib/luafs.so
${INSTALL_DATA} ${WRKSRC}/init.lua ${PREFIX}/lua/luafs
${INSTALL_DATA} ${FILESDIR}/lfs.lua ${PREFIX}/lua/luafs
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/luafs
2005-07-08 13:57:27 -04:00
${INSTALL_DATA} ${WRKSRC}/doc/us/*.html ${WRKSRC}/doc/us/*.png \
${PREFIX}/share/doc/luafs
.include <bsd.port.mk>