2006-01-20 20:32:40 -05:00
|
|
|
# $OpenBSD: Makefile,v 1.6 2006/01/21 01:32:40 jolan Exp $
|
2004-12-16 08:38:12 -05:00
|
|
|
|
|
|
|
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
|
2006-01-20 20:32:40 -05:00
|
|
|
PKGNAME= ${DISTNAME}p0
|
2004-12-16 08:38:12 -05:00
|
|
|
CATEGORIES= net
|
|
|
|
|
2005-11-26 08:46:56 -05:00
|
|
|
MASTER_SITES= http://luaforge.net/frs/download.php/1097/
|
2005-04-19 11:14:38 -04:00
|
|
|
HOMEPAGE= http://www.cs.princeton.edu/~diego/professional/luasocket/
|
2004-12-16 08:38:12 -05:00
|
|
|
|
|
|
|
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
|
|
|
|
|
2005-04-19 11:14:38 -04:00
|
|
|
BUILD_DEPENDS= ::lang/lua ::devel/luacompat
|
2004-12-16 08:38:12 -05:00
|
|
|
RUN_DEPENDS= ${BUILD_DEPENDS}
|
2005-09-10 13:32:15 -04:00
|
|
|
LIB_DEPENDS= luacompat::devel/luacompat
|
2004-12-16 08:38:12 -05:00
|
|
|
|
2005-11-25 10:09:44 -05:00
|
|
|
MAKE_FILE= makefile
|
2004-12-16 08:38:12 -05:00
|
|
|
|
|
|
|
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" \
|
2004-12-16 08:38:12 -05:00
|
|
|
${FILESDIR}/init.lua > ${WRKSRC}/init.lua
|
2005-04-19 11:14:38 -04:00
|
|
|
|
2005-11-25 10:09:44 -05:00
|
|
|
LUASOCKETDIR= ${PREFIX}/lua/luasocket
|
|
|
|
|
2004-12-16 08:38:12 -05:00
|
|
|
do-install:
|
2005-11-25 10:09:44 -05:00
|
|
|
${INSTALL_DATA_DIR} ${LUASOCKETDIR}
|
|
|
|
${INSTALL_DATA_DIR} ${LUASOCKETDIR}/socket
|
|
|
|
${INSTALL_DATA_DIR} ${LUASOCKETDIR}/mime
|
2004-12-16 08:38:12 -05:00
|
|
|
${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
|
2004-12-16 08:38:12 -05:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|