openbsd-ports/net/luasocket/Makefile

57 lines
1.9 KiB
Makefile
Raw Normal View History

# $OpenBSD: Makefile,v 1.6 2006/01/21 01:32:40 jolan Exp $
NOT_FOR_ARCHS= ${NO_SHARED_ARCHS}
COMMENT= "network support for the lua language"
2005-11-25 10:09:44 -05:00
DISTNAME= luasocket-2.0
PKGNAME= ${DISTNAME}p0
CATEGORIES= net
MASTER_SITES= http://luaforge.net/frs/download.php/1097/
HOMEPAGE= http://www.cs.princeton.edu/~diego/professional/luasocket/
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}
2005-09-10 13:32:15 -04:00
LIB_DEPENDS= luacompat::devel/luacompat
2005-11-25 10:09:44 -05:00
MAKE_FILE= makefile
post-extract:
@sed -e "s:@socketpath@:${PREFIX}/lua/luasocket/?.lua:g" \
2005-11-25 10:09:44 -05:00
-e "s:@socketcpath@:${PREFIX}/lua/luasocket/?.so:g" \
${FILESDIR}/init.lua > ${WRKSRC}/init.lua
2005-11-25 10:09:44 -05:00
LUASOCKETDIR= ${PREFIX}/lua/luasocket
do-install:
2005-11-25 10:09:44 -05:00
${INSTALL_DATA_DIR} ${LUASOCKETDIR}
${INSTALL_DATA_DIR} ${LUASOCKETDIR}/socket
${INSTALL_DATA_DIR} ${LUASOCKETDIR}/mime
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/luasocket
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/luasocket
2005-11-25 10:09:44 -05:00
${INSTALL_DATA} ${WRKSRC}/src/socket.so ${LUASOCKETDIR}/socket/core.so
${INSTALL_DATA} ${WRKSRC}/src/mime.so ${LUASOCKETDIR}/mime/core.so
${INSTALL_DATA} ${WRKSRC}/init.lua ${LUASOCKETDIR}
${INSTALL_DATA} ${WRKSRC}/src/socket.lua ${LUASOCKETDIR}
${INSTALL_DATA} ${WRKSRC}/src/ltn12.lua ${LUASOCKETDIR}
${INSTALL_DATA} ${WRKSRC}/src/mime.lua ${LUASOCKETDIR}
${INSTALL_DATA} ${WRKSRC}/src/ftp.lua ${LUASOCKETDIR}/socket
${INSTALL_DATA} ${WRKSRC}/src/http.lua ${LUASOCKETDIR}/socket
${INSTALL_DATA} ${WRKSRC}/src/smtp.lua ${LUASOCKETDIR}/socket
${INSTALL_DATA} ${WRKSRC}/src/tp.lua ${LUASOCKETDIR}/socket
${INSTALL_DATA} ${WRKSRC}/src/url.lua ${LUASOCKETDIR}/socket
${INSTALL_DATA} ${WRKSRC}/doc/* ${PREFIX}/share/doc/luasocket
${INSTALL_DATA} ${WRKSRC}/samples/* ${PREFIX}/share/examples/luasocket
.include <bsd.port.mk>