Files
pkgsrc-ng/devel/lua-lrexlib/Makefile.common
2013-09-26 17:14:40 +02:00

47 lines
1.4 KiB
Makefile

# $NetBSD: Makefile.common,v 1.3 2013/01/25 22:02:18 ryoon Exp $
# used by devel/lua-lrexlib-posix/Makefile
# used by devel/lua-lrexlib-pcre/Makefile
# used by devel/lua-lrexlib-onig/Makefile
#
.include "../../devel/lua-lrexlib/Makefile.version"
DISTNAME= lrexlib-rel-${VERSION:S/./-/g}
PKGNAME= ${LUA_PKGPREFIX}-lrexlib-${ENGINE}-${VERSION}
CATEGORIES= devel
MASTER_SITES= -https://github.com/rrthomas/lrexlib/archive/rel-${VERSION:S/./-/g}.zip
EXTRACT_SUFX= .zip
HOMEPAGE= http://luaforge.net/projects/lrexlib
LICENSE= mit
# Force using "curl" for fetching the distribution file. It is only available
# over HTTPS and "curl" is the only fetch program which always supports HTTPS.
FETCH_USING= curl
#USE_TOOLS+= gmake
USE_LIBTOOL= yes
BUILD_TARGET= build_${ENGINE}
#TEST_TARGET= test_${ENGINE}
INSTALL_TARGET= install_${ENGINE}
MAKE_FILE= BSDmakefile
#
PATCHDIR= ${.CURDIR}/../../devel/lua-lrexlib/patches
DISTINFO_FILE= ${.CURDIR}/../../devel/lua-lrexlib/distinfo
DESCR_SRC= ${.CURDIR}/../../devel/lua-lrexlib/DESCR.common
MAKE_FLAGS+= LIBS=${LIBS:Q}
MAKE_FLAGS+= LIBTOOL=${LIBTOOL:Q}
MAKE_FLAGS+= MODULES_DIR=${PREFIX}/${LUA_CDIR}
MAKE_FLAGS+= VERSION=\"${V}\"
MAKE_FLAGS+= LUA_CDIR=${LUA_CDIR}
INSTALLATION_DIRS+= ${LUA_CDIR}
#do-install:
# ${LIBTOOL} --mode=install ${INSTALL_PROGRAM} \
# ${WRKSRC}/src/${ENGINE_DIR}/rex_${ENGINE}.la ${DESTDIR}${PREFIX}/${LUA_CDIR}