$OpenBSD: patch-ext_swift_db_postgres_extconf_rb,v 1.2 2013/06/21 22:37:02 sthen Exp $
--- ext/swift/db/postgres/extconf.rb.orig Wed Dec 31 16:00:00 1969
+++ ext/swift/db/postgres/extconf.rb Tue Dec 4 11:04:38 2012
@@ -5,21 +5,13 @@ require 'mkmf'
$CFLAGS = '-std=c99 -Os'
inc_paths = %w(
- /usr/include/postgresql
- /usr/local/include/postgresql
- /opt/local/include
- /opt/local/include/postgresql90
- /opt/local/include/postgresql85
- /opt/local/include/postgresql84
- /sw/include
+ ${LOCALBASE}/include
+ ${LOCALBASE}/include/postgresql
)
lib_paths = %w(
/usr/lib
- /usr/local/lib
- /opt/lib
- /opt/local/lib
- /sw/lib
+ ${LOCALBASE}/lib
)
uuid_inc, uuid_lib = dir_config('uuid', '/usr/include/uuid', '/usr/lib')