Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Created by: GreenDog <fiziologus@gmail.com>
- # $FreeBSD: head/lang/lua53/Makefile 392509 2015-07-19 14:38:43Z bapt $
- PORTNAME= lua
- PORTVERSION= 5.3.3
- PORTREVISION= 2
- CATEGORIES= lang
- USE_GITHUB= yes
- GH_ACCOUNT= lua
- MAINTAINER= russ.haley@gmail.com
- COMMENT= Small, compilable scripting language providing easy access to C code
- LICENSE= MIT
- USES= libedit
- LUA_VER= 5.3
- USE_LDCONFIG= yes
- # Overriding __MAKE_CONF makes sure that we don't re-parse
- # /etc/make.conf during do-build, which would jeopardize the build
- # if, for instance, the user set CFLAGS=mumble
- # NOTE: /etc/make.conf is read BEFORE Makefile, so we already
- # have its settings when we get here.
- # See http://wiki.freebsd.org/MatthiasAndree/LuaLessonsLearnt
- #MAKE_ARGS= __MAKE_CONF=${NONEXISTENT}
- # liblua.so requires libm, so make sure it has an explicit dependency
- # so that applications need not second-guess lua's dependencies.
- CPPFLAGS+= -I${LOCALBASE}/include
- LDFLAGS+= -lm -pthread
- BUILD_WRKSRC= ${WRKSRC}
- # 2016-07-21 - Russ Haley - commented out for testing
- #MAKE_ARGS+= MYCFLAGS="-fPIC ${CFLAGS} ${CPPFLAGS}" \
- MYLDFLAGS="${LDFLAGS}" \
- MYLIBS="-Wl,-E -L${LOCALBASE}/lib -ledit" \
- CC="${CC}"
- CONFIGURE_ARGS+= TARGET="freebsd"
- MAKE_ARGS+= target="freebsd" \
- CC="${CC}"
- # 2016-07-21 - Russ Haley - commented out for testing
- #LUA_T=lua53 \
- LUAC_T=luac53 \
- LUA_A=liblua-${LUA_VER}.a \
- LUA_SO=liblua-${LUA_VER}.so \
- LUA_SONAME=liblua-${LUA_VER}.so \
- TO_BIN="lua53 luac53" \
- #TO_LIB="liblua-${LUA_VER}.a liblua-${LUA_VER}.so" \
- INSTALL_TOP=${STAGEDIR}${PREFIX} \
- INSTALL_INC=${STAGEDIR}${PREFIX}/include/lua53 \
- INSTALL_EXEC="${INSTALL_PROGRAM}"
- # 2016-07-21 - Russ Haley - There is no bsd.lua.mk file in /usr/share/mk.
- # Furthermore, the base Lua targets seem to handle all this stuff fine.
- #-----------------------------
- # Cope with the lack of support for Lua 5.2 in bsd.lua.mk. These
- # overrides, which are required below, should be removed once bsd.lua.mk
- # understands this lua version.
- #LUA_PREFIX?= ${PREFIX}
- #LUA_SUBDIR?= lua${PKGNAMESUFFIX}
- #LUA_INCDIR?= ${LUA_PREFIX}/include/${LUA_SUBDIR}
- #LUA_LIBDIR?= ${LUA_PREFIX}/lib
- #SUB_FILES= lua-${LUA_VER}.pc
- #SUB_LIST= version=${PORTVERSION} \
- includedir=${LUA_INCDIR} \
- libdir=${LUA_LIBDIR} \
- soname=lua-${LUA_VER}
- # 2016-07-21 - Russ Haley - Added this to the base cflags as all
- # current or expected tier 1 platforms can use this flag
- #CFLAGS_aarch64= -fPIC
- #CFLAGS_amd64= -fPIC
- #CCLAGS_armv6= -fPIC
- #CFLAGS_powerpc= -fPIC
- # 2016-07-21 - Russ Haley - The base lua makefile takes care of all this.
- #Removed
- #post-install:
- #@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/liblua-${LUA_VER}.so
- #@${MV} ${STAGEDIR}${PREFIX}/man/man1/lua.1 \
- ${STAGEDIR}${PREFIX}/man/man1/lua53.1
- #@${MV} ${STAGEDIR}${PREFIX}/man/man1/luac.1 \
- ${STAGEDIR}${PREFIX}/man/man1/luac53.1
- #${INSTALL_DATA} ${WRKDIR}/lua-${LUA_VER}.pc \
- ${STAGEDIR}${PREFIX}/libdata/pkgconfig
- .include <bsd.port.mk>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement