openbsd-ports/devel/luacompat/Makefile

42 lines
1.1 KiB
Makefile
Raw Normal View History

2005-09-06 09:09:27 -04:00
# $OpenBSD: Makefile,v 1.3 2005/09/06 13:09:27 pedro Exp $
2005-04-19 10:48:09 -04:00
COMMENT= "compatibility module for lua 5.1"
NOT_FOR_ARCHS= ${NO_SHARED_ARCHS}
2005-09-06 09:09:27 -04:00
DISTNAME= compat-5.1r4
PKGNAME= luacompat-5.1r4
DIST_SUBDIR= luacompat-5.1r4
2005-04-19 10:48:09 -04:00
CATEGORIES= devel
2005-09-06 09:09:27 -04:00
MASTER_SITES= http://luaforge.net/frs/download.php/952/
2005-04-19 10:48:09 -04:00
HOMEPAGE= http://www.keplerproject.org/compat/
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
RUN_DEPENDS= ${BUILD_DEPENDS}
post-extract:
@sed -e "s:@compatpath@:${PREFIX}/lua/luacompat/?.lua:g" \
${FILESDIR}/init.lua > ${WRKSRC}/init.lua
do-build:
cd ${WRKSRC};\
${CC} -o libluacompat.so.5.1 -I${LOCALBASE}/include -shared -fPIC compat-5.1.c
do-install:
${INSTALL_DATA_DIR} ${PREFIX}/lua/luacompat
${INSTALL_DATA} ${WRKSRC}/init.lua ${PREFIX}/lua/luacompat
${INSTALL_DATA} ${WRKSRC}/compat-5.1.lua ${PREFIX}/lua/luacompat
${INSTALL_DATA} ${WRKSRC}/compat-5.1.h ${PREFIX}/include/luacompat.h
${INSTALL_DATA} ${WRKSRC}/libluacompat.so.5.1 ${PREFIX}/lib
.include <bsd.port.mk>