pkgsrc-wip/lua-pgsql/patches/patch-aa
pancake ;) 3c0b60494d Initial import of lua-pgsql
DESCR:
LuaSQL is a simple interface from Lua to a DBMS. It enables a Lua program to:
  * Connect to ODBC, Oracle, MySQL and PostgreSQL databases;
  * Execute arbitrary SQL statements;
  * Retrieve results in a row-by-row cursor fashion;

TODO:
This package is broken for -ldl OS... This may be patched before going to pkgsrc.
It's also possible to create Oracle, MySQL and ODBC linkages using the same sources,
but I only have postgresql74 installed.

Anybody working on postgresql74? porting to bl3 and update databases/postgresql
it's important.
2004-02-26 15:03:07 +00:00

24 lines
780 B
Text

$NetBSD: patch-aa,v 1.1.1.1 2004/02/26 15:03:07 poppnk Exp $
--- Makefile.orig Wed Dec 10 18:44:03 2003
+++ Makefile Thu Feb 26 16:01:45 2004
@@ -8,8 +8,8 @@
PG_LIB= libluasqlpostgres.$(VERSION).a
PG_SO= libluasqlpostgres.$(VERSION).so
PG_DYLIB= libluasqlpostgres.$(VERSION).dylib
-PG_LIBS= -L/usr/local/pgsql/lib -lpq
-PG_INCS= -I/usr/local/pgsql/include
+PG_LIBS= -L${PREFIX}/lib -lpq
+PG_INCS= -I${PREFIX}/include
OCI_OBJ= ls_oci8.o
OCI_LIB= libluasqloci8.$(VERSION).a
@@ -28,7 +28,7 @@
WARN= -Wall -Wmissing-prototypes -Wmissing-declarations -ansi
INCS= -I/usr/local/include/lua5 $(PG_INCS) $(OCI_INCS) $(MYSQL_INCS)
#LIBS_DIR= -L../lua-5.0/lib
-LIBS= -llua.5.0 -llualib.5.0 -lm -ldl
+LIBS= -llua -lm
CFLAGS= -O2 $(WARN) $(INCS) $(DEFS)
PKG= luasql-$(VERSION)