openbsd-ports/net/luasocket/Makefile
2012-07-10 15:22:44 +00:00

46 lines
1.5 KiB
Makefile

# $OpenBSD: Makefile,v 1.22 2012/07/10 15:22:45 jasper Exp $
SHARED_ONLY= Yes
COMMENT= network support for the lua language
DISTNAME= luasocket-2.0.2
REVISION= 2
CATEGORIES= net
MASTER_SITES= http://luaforge.net/frs/download.php/2664/
HOMEPAGE= http://www.tecgraf.puc-rio.br/~diego/professional/luasocket/
# MIT
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
MODULES= lang/lua
NO_REGRESS= Yes
MAKE_FILE= makefile
pre-configure:
${SUBST_CMD} ${WRKSRC}/config
do-install:
${INSTALL_DATA_DIR} ${MODLUA_DATADIR}/socket ${MODLUA_DATADIR}/mime
${INSTALL_DATA_DIR} ${MODLUA_LIBDIR}/socket ${MODLUA_LIBDIR}/mime
${INSTALL_DATA_DIR} ${MODLUA_DOCDIR} ${MODLUA_EXAMPLEDIR}
${INSTALL_DATA} ${WRKSRC}/src/socket.so ${MODLUA_LIBDIR}/socket/core.so
${INSTALL_DATA} ${WRKSRC}/src/unix.so ${MODLUA_LIBDIR}/socket/unix.so
${INSTALL_DATA} ${WRKSRC}/src/mime.so ${MODLUA_LIBDIR}/mime/core.so
${INSTALL_DATA} ${WRKSRC}/src/socket.lua ${MODLUA_DATADIR}
${INSTALL_DATA} ${WRKSRC}/src/ltn12.lua ${MODLUA_DATADIR}
${INSTALL_DATA} ${WRKSRC}/src/mime.lua ${MODLUA_DATADIR}
${INSTALL_DATA} ${WRKSRC}/src/ftp.lua ${MODLUA_DATADIR}/socket
${INSTALL_DATA} ${WRKSRC}/src/http.lua ${MODLUA_DATADIR}/socket
${INSTALL_DATA} ${WRKSRC}/src/smtp.lua ${MODLUA_DATADIR}/socket
${INSTALL_DATA} ${WRKSRC}/src/tp.lua ${MODLUA_DATADIR}/socket
${INSTALL_DATA} ${WRKSRC}/src/url.lua ${MODLUA_DATADIR}/socket
${INSTALL_DATA} ${WRKSRC}/doc/* ${MODLUA_DOCDIR}
${INSTALL_DATA} ${WRKSRC}/samples/* ${MODLUA_EXAMPLEDIR}
.include <bsd.port.mk>