f8e628f818
are replaced with .include "../../devel/readline/buildlink3.mk", and USE_GNU_READLINE are removed, * .include "../../devel/readline/buildlink3.mk" without USE_GNU_READLINE are replaced with .include "../../mk/readline.buildlink3.mk".
57 lines
1.5 KiB
Makefile
57 lines
1.5 KiB
Makefile
# $NetBSD: Makefile,v 1.51 2013/07/15 02:02:23 ryoon Exp $
|
|
|
|
DISTNAME= lua-${LUA_VERSION}
|
|
CATEGORIES= lang
|
|
MASTER_SITES= http://www.lua.org/ftp/ \
|
|
http://www.tecgraf.puc-rio.br/lua/ftp/
|
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
|
HOMEPAGE= http://www.lua.org/
|
|
COMMENT= Powerful light-weight language for extending applications
|
|
LICENSE= mit
|
|
|
|
.include "../../lang/lua/version.mk"
|
|
|
|
PKG_INSTALLATION_TYPES= overwrite pkgviews
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
USE_LIBTOOL= yes
|
|
USE_TOOLS+= gmake
|
|
MAKE_ENV+= DLLIB=${BUILDLINK_LDADD.dl:Q}
|
|
MAKE_ENV+= INSTALL_DATA=${INSTALL_DATA:Q}
|
|
CFLAGS+= -DLUA_ROOT=\"${PREFIX}/\"
|
|
|
|
PKGCONFIG_OVERRIDE= ${WRKSRC}/lua.pc
|
|
INSTALLATION_DIRS+= lib/pkgconfig share/doc/lua
|
|
|
|
.if ${OPSYS} == "FreeBSD"
|
|
BUILD_TARGET= freebsd
|
|
.elif !empty(OPSYS:M*BSD*) || ${OPSYS} == "DragonFly"
|
|
BUILD_TARGET= bsd
|
|
.elif ${OPSYS} == "Linux"
|
|
BUILD_TARGET= linux
|
|
.elif ${OPSYS} == "Darwin"
|
|
BUILD_TARGET= macosx
|
|
.elif ${OPSYS} == "SunOS"
|
|
BUILD_TARGET= solaris
|
|
.elif ${OPSYS} == "AIX"
|
|
BUILD_TARGET= aix
|
|
.else
|
|
BUILD_TARGET= generic
|
|
.endif
|
|
|
|
pre-configure:
|
|
sed -e 's,@PREFIX@,${PREFIX},g' \
|
|
-e 's,@VER@,${PKGVERSION_NOREV:R},g' \
|
|
-e 's,@REV@,${PKGVERSION_NOREV},g' \
|
|
${FILESDIR}/lua.pc.in > ${WRKSRC}/lua.pc
|
|
|
|
post-install:
|
|
${INSTALL_DATA} ${WRKSRC}/lua.pc ${DESTDIR}${PREFIX}/lib/pkgconfig
|
|
${INSTALL_DATA} ${WRKSRC}/doc/*.??? ${DESTDIR}${PREFIX}/share/doc/lua
|
|
${INSTALL_DATA} ${WRKSRC}/doc/*.???? ${DESTDIR}${PREFIX}/share/doc/lua
|
|
|
|
.include "../../mk/readline.buildlink3.mk"
|
|
.include "../../mk/dlopen.buildlink3.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|