aboutsummaryrefslogtreecommitdiff
path: root/net/luasocket/Makefile
blob: 9d590ff48856b908b8f197d539465a66ec12886f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# Created by: Jan Hornyak <pav@oook.cz>
# $FreeBSD$

PORTNAME=	luasocket
PORTVERSION=	2.0.2
PORTREVISION=	1
CATEGORIES=	net
MASTER_SITES=	http://luaforge.net/frs/download.php/2664/
PKGNAMEPREFIX=	${LUA_PKGNAMEPREFIX}

MAINTAINER=	apache@FreeBSD.org
COMMENT=	IPv4 Sockets support for the Lua language

USE_GMAKE=	yes
USE_LUA?=	5.1
LUA_COMPS=	lua

.if ${USE_LUA} == 5.0
LUA_COMPS+=	compat51

BUILD_DEPENDS+=	${NONEXISTENT}:${PORTSDIR}/devel/lua50-compat51:build
COMPAT_SRC=	`(cd ${PORTSDIR}/devel/lua50-compat51 && ${MAKE} -V WRKSRC)`
MAKE_ENV=	COMPATDIR="${COMPAT_SRC}" \
		COMPAT_OBJ="${COMPAT_SRC}/compat-5.1.o"
.endif

NO_STAGE=	yes
post-extract:
	@${MV} ${WRKSRC}/makefile ${WRKSRC}/Makefile

post-install:
.if !defined(NOPORTDOCS)
	@${MKDIR} ${DOCSDIR}
	@${INSTALL_DATA} ${WRKSRC}/doc/* ${DOCSDIR}
.endif

.include <bsd.port.mk>