Alejandro Mery
16 years ago
6 changed files with 85 additions and 197 deletions
@ -1,63 +0,0 @@
|
||||
#!/bin/sh |
||||
# --- SDE-COPYRIGHT-NOTE-BEGIN --- |
||||
# This copyright note is auto-generated by ./scripts/Create-CopyPatch. |
||||
# |
||||
# Filename: package/.../lua/lua-config |
||||
# Copyright (C) 2006 The T2 SDE Project |
||||
# |
||||
# More information can be found in the files COPYING and README. |
||||
# |
||||
# This program is free software; you can redistribute it and/or modify |
||||
# it under the terms of the GNU General Public License as published by |
||||
# the Free Software Foundation; version 2 of the License. A copy of the |
||||
# GNU General Public License can be found in the file COPYING. |
||||
# --- SDE-COPYRIGHT-NOTE-END --- |
||||
|
||||
|
||||
version="@version@" |
||||
prefix="@prefix@" |
||||
libdir="@libdir@" |
||||
includedir="@includedir@" |
||||
pkglibdir="@pkglibdir@" |
||||
pkgdatadir="@pkgdatadir@" |
||||
LIBS="@LIBS@" |
||||
CFLAGS="@CFLAGS@" |
||||
|
||||
usage() |
||||
{ |
||||
cat <<EOF |
||||
Usage: lua-config [OPTIONS] |
||||
Options: |
||||
[--prefix] |
||||
[--version] |
||||
[--libdir] |
||||
[--includedir] |
||||
[--libs] |
||||
[--cflags] |
||||
[--pkglibdir] |
||||
[--pkgdatadir] |
||||
EOF |
||||
exit $1 |
||||
} |
||||
|
||||
if test $# -eq 0 ; then |
||||
usage 1 1>&2 |
||||
fi |
||||
|
||||
while test $# -gt 0 ; do |
||||
case $1 in |
||||
--version) echo $version ;; |
||||
--prefix) echo $prefix ;; |
||||
--cflags) echo $CFLAGS ;; |
||||
--libdir) echo $libdir ;; |
||||
--includedir) echo $includedir ;; |
||||
--libs) echo $LIBS ;; |
||||
--pkglibdir) echo $pkglibdir ;; |
||||
--pkgdatadir) echo $pkgdatadir ;; |
||||
*) |
||||
usage 1 1>&2 |
||||
;; |
||||
esac |
||||
shift |
||||
done |
||||
|
@ -1,19 +0,0 @@
|
||||
|
||||
prefix=@prefix@ |
||||
INSTALL_BIN=@bindir@ |
||||
INSTALL_INC=@includedir@ |
||||
INSTALL_LIB=@libdir@ |
||||
INSTALL_MAN=@mandir@ |
||||
INSTALL_LMOD=@pkgdatadir@ |
||||
INSTALL_CMOD=@pkglibdir@ |
||||
|
||||
exec_prefix=@prefix@ |
||||
libdir=@libdir@ |
||||
includedir=@includedir@ |
||||
|
||||
Name: Lua |
||||
Description: An Extensible Extension Language |
||||
Version: @version@ |
||||
Requires: |
||||
Libs: -L@libdir@ -llua @LIBS@ |
||||
Cflags: -I@includedir@ @CFLAGS@ |
@ -0,0 +1,37 @@
|
||||
# --- SDE-COPYRIGHT-NOTE-BEGIN ---
|
||||
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
|
||||
#
|
||||
# Filename: package/.../lua/no-readline.diff
|
||||
# Copyright (C) 2009 The OpenSDE Project
|
||||
#
|
||||
# More information can be found in the files COPYING and README.
|
||||
#
|
||||
# This patch file is dual-licensed. It is available under the license the
|
||||
# patched project is licensed under, as long as it is an OpenSource license
|
||||
# as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
|
||||
# of the GNU General Public License as published by the Free Software
|
||||
# Foundation; either version 2 of the License, or (at your option) any later
|
||||
# version.
|
||||
# --- SDE-COPYRIGHT-NOTE-END ---
|
||||
|
||||
--- ./src/luaconf.h.orig 2009-05-12 23:27:14.000000000 +0000
|
||||
+++ ./src/luaconf.h 2009-05-12 23:27:36.000000000 +0000
|
||||
@@ -36,7 +36,6 @@
|
||||
#if defined(LUA_USE_LINUX)
|
||||
#define LUA_USE_POSIX
|
||||
#define LUA_USE_DLOPEN /* needs an extra library: -ldl */
|
||||
-#define LUA_USE_READLINE /* needs some extra libraries */
|
||||
#endif
|
||||
|
||||
#if defined(LUA_USE_MACOSX)
|
||||
--- ./src/Makefile.orig 2009-05-12 23:26:21.000000000 +0000
|
||||
+++ ./src/Makefile 2009-05-12 23:26:53.000000000 +0000
|
||||
@@ -96,7 +96,7 @@
|
||||
$(MAKE) all MYCFLAGS=
|
||||
|
||||
linux:
|
||||
- $(MAKE) all MYCFLAGS=-DLUA_USE_LINUX MYLIBS="-Wl,-E -ldl -lreadline -lhistory -lncurses"
|
||||
+ $(MAKE) all MYCFLAGS=-DLUA_USE_LINUX MYLIBS="-Wl,-E -ldl -lncurses"
|
||||
|
||||
macosx:
|
||||
$(MAKE) all MYCFLAGS=-DLUA_USE_LINUX MYLIBS="-lreadline"
|
Loading…
Reference in new issue