Skip to content

Instantly share code, notes, and snippets.

@cyx
Created April 18, 2014 23:23
Show Gist options
  • Save cyx/11068300 to your computer and use it in GitHub Desktop.
Save cyx/11068300 to your computer and use it in GitHub Desktop.
prefix=TPL_PREFIX
major_version=5.2
version=5.2.3
lib_name=lua
libdir=${prefix}/lib
includedir=${prefix}/include
#
# The following are intended to be used via "pkg-config --variable".
# The location of the libtool library. This is used when linking to the Lua
# library via libtool.
libtool_lib=${libdir}/lib${lib_name}.la
# Install paths for Lua modules. For example, if a package wants to install
# Lua source modules to the /usr/local tree, call pkg-config with
# "--define-variable=prefix=/usr/local" and "--variable=INSTALL_LMOD".
INSTALL_LMOD=${prefix}/share/lua/${major_version}
INSTALL_CMOD=${prefix}/lib/lua/${major_version}
Name: Lua
Description: Lua language engine
Version: ${version}
Requires:
Libs: -L${libdir} -l${lib_name}
Libs.private: -lm
Cflags: -I${includedir}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment