openbsd-ports/lang/lua/Makefile
sthen 929d19b9ba Remove local strlcpy/etc patches, we aren't generally patching these in
ports any more (they should be addressed upstream instead) and at least
some of them are wrong. This fixes a bug found by Piotr Sikora:
http://permalink.gmane.org/gmane.os.openbsd.ports/53993
2012-03-07 13:14:26 +00:00

41 lines
934 B
Makefile

# $OpenBSD: Makefile,v 1.44 2012/03/07 13:14:26 sthen Exp $
COMMENT= powerful, light-weight programming language
DISTNAME= lua-5.1.4
REVISION= 4
CATEGORIES= lang
MASTER_SITES= http://www.lua.org/ftp/ \
http://www.tecgraf.puc-rio.br/lua/ftp/ \
http://ftp.gwdg.de/pub/languages/lua/ \
http://ftp.ntua.gr/pub/lang/lua/ \
http://ftp.chg.ru/pub/lang/lua/
PATCHFILES= patch-${DISTNAME}-4
PATCH_DIST_ARGS=-z .bak.orig -d ${WRKSRC}/src
HOMEPAGE= http://www.lua.org/
# MIT
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
SHARED_ONLY= Yes
SHARED_LIBS= lua 5.1
MAKE_FLAGS+= LIBlua_VERSION="${LIBlua_VERSION}" CC="${CC}"
WANTLIB= c m edit curses
USE_GROFF = Yes
NO_REGRESS= Yes
pre-configure:
${SUBST_CMD} ${WRKSRC}/etc/lua.pc
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/lib/pkgconfig
${INSTALL_DATA} ${WRKSRC}/etc/lua.pc ${PREFIX}/lib/pkgconfig
.include <bsd.port.mk>