1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-24 00:45:52 +00:00
freebsd-ports/databases/ruby-interbase/files/patch-extconf.rb
Sergey Skvortsov 1d78e4b9ce Unbreak build on ruby-18
Pointed by:	kris
2004-03-01 07:54:32 +00:00

25 lines
582 B
Ruby

--- extconf.rb.orig Wed May 12 19:19:36 1999
+++ extconf.rb Fri Nov 9 10:14:03 2001
@@ -1,5 +1,19 @@
require 'mkmf'
+INTERBASEDIR = "/usr/interbase"
-have_library("gdslib", "isc_attach_database") or
- have_library("gds", "isc_attach_database")
+incdir = with_config("interbase-include-dir")
+if incdir then
+ $CFLAGS += " -I#{incdir}"
+else
+ $CFLAGS = " -I#{INTERBASEDIR}/include"
+end
+
+libdir = with_config("interbase-lib-dir")
+if libdir then
+ $LDFLAGS += "-L#{libdir}"
+else
+ $LDFLAGS = "-L#{INTERBASEDIR}/lib"
+end
+
+$libs = "-lgds"
create_makefile("interbase")