freebsd-ports/databases/ruby-sybct/files/patch-extconf.rb
Guido Falsi 642be1b81d - Make ports use the libc provided iconv implementation on 10-CURRENT
after r254273
- Fix a bunch of ports to properly work after this
- Mark converters/libiconv as IGNORE for systems with iconv in libc

Reviewed by:	bapt
Approved by:	portmgr (bapt)
Discussed with:	bapt, bsam (who both contributed ideas and code)
2013-09-04 18:06:07 +00:00

17 lines
717 B
Ruby

--- extconf.rb.orig 2008-09-10 14:37:10.000000000 +1000
+++ extconf.rb 2008-09-10 14:38:20.000000000 +1000
@@ -59,10 +59,10 @@
###########################################################
### Linux + Free TDS (freetds-0.64 or above) ################
-# sybase = "/usr/local/freetds"
-# $CFLAGS = "-g -Wall -DFREETDS -I#{sybase}/include"
-# $LDFLAGS = " -L#{sybase}/lib "
-# $LOCAL_LIBS = "-lct -lsybdb -ltds -rdynamic -ldl -lnsl -lm"
+ sybase = "%%LOCALBASE%%"
+ $CFLAGS = "-g -Wall -DFREETDS -I#{sybase}/include"
+ $LDFLAGS = " -L#{sybase}/lib "
+ $LOCAL_LIBS = "-lct -lsybdb -ltds -rdynamic -lm %%ICONV_LIB%%"
### mac-osx-tiger + Free TDS (freetds-0.64 ) ################
# sybase = "/usr/local/freetds"