[BACK]Return to Makefile CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / www / lua-curl

File: [cvs.NetBSD.org] / pkgsrc / www / lua-curl / Makefile (download)

Revision 1.38, Wed Oct 26 10:32:05 2022 UTC (3 months, 1 week ago) by wiz
Branch: MAIN
CVS Tags: pkgsrc-2022Q4-base, pkgsrc-2022Q4, HEAD
Changes since 1.37: +2 -2 lines

*: bump PKGREVISION for libunistring shlib major bump

# $NetBSD: Makefile,v 1.38 2022/10/26 10:32:05 wiz Exp $

DISTNAME=	lua-curl-0.3.13
PKGNAME=	${LUA_PKGPREFIX}-${DISTNAME:S/lua-//}
PKGREVISION=	3
CATEGORIES=	www lua
MASTER_SITES=	${MASTER_SITE_GITHUB:=Lua-cURL/}
GITHUB_PROJECT=	Lua-cURLv3
GITHUB_TAG=	v${PKGVERSION_NOREV}

MAINTAINER=	agc@NetBSD.org
HOMEPAGE=	https://github.com/Lua-cURL/Lua-cURLv3
COMMENT=	Full lua bindings for libcurl
LICENSE=	mit

USE_TOOLS+=	gmake pkg-config

.include "../../mk/bsd.prefs.mk"

.if ${OPSYS} != "Darwin" && ${OPSYS} != "Linux"
LDFLAGS+=	-shared
.endif

MAKE_FLAGS+=	LUA_CMOD=${LUA_CDIR}
MAKE_FLAGS+=	LUA_LMOD=${LUA_LDIR}
MAKE_FLAGS+=	LUA_IMPL=lua-${_LUA_DOT_VERSION}

INSTALLATION_DIRS+=	${LUA_CDIR}
INSTALLATION_DIRS+=	${LUA_LDIR}/cURL/impl

do-install:
	${INSTALL_LIB} ${WRKSRC}/lcurl.so ${DESTDIR}${PREFIX}/${LUA_CDIR}
	${INSTALL_DATA} ${WRKSRC}/src/lua/cURL.lua ${DESTDIR}${PREFIX}/${LUA_LDIR}
	${INSTALL_DATA} ${WRKSRC}/src/lua/cURL/safe.lua ${DESTDIR}${PREFIX}/${LUA_LDIR}/cURL
	${INSTALL_DATA} ${WRKSRC}/src/lua/cURL/utils.lua ${DESTDIR}${PREFIX}/${LUA_LDIR}/cURL
	${INSTALL_DATA} ${WRKSRC}/src/lua/cURL/impl/cURL.lua ${DESTDIR}${PREFIX}/${LUA_LDIR}/cURL/impl

.include "../../www/curl/buildlink3.mk"
.include "../../lang/lua/buildlink3.mk"
.include "../../lang/lua/module.mk"
.include "../../lang/lua/tool.mk"
.include "../../mk/bsd.pkg.mk"