1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-24 00:45:52 +00:00

Add patches for third-party postgres module.

This commit is contained in:
Sergey A. Osokin 2015-05-26 23:12:04 +00:00
parent 7214980cf2
commit b0ce7bded9
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=387518
2 changed files with 38 additions and 0 deletions

View File

@ -0,0 +1,19 @@
--- ../FRiCKLE-ngx_postgres-49855a0/config.orig 2015-05-26 20:52:25.649166000 +0300
+++ ../FRiCKLE-ngx_postgres-49855a0/config 2015-05-26 20:53:10.331122000 +0300
@@ -48,12 +48,12 @@
if [ $ngx_found = no ]; then
# FreeBSD
- ngx_feature="libpq library in /usr/local/"
- ngx_feature_path="/usr/local/include"
+ ngx_feature="libpq library in %%PREFIX%%/"
+ ngx_feature_path="%%PREFIX%%/include"
if [ $NGX_RPATH = YES ]; then
- ngx_feature_libs="-R/usr/local/lib -L/usr/local/lib -lpq"
+ ngx_feature_libs="-R%%PREFIX%%/lib -L%%PREFIX%%/lib -lpq"
else
- ngx_feature_libs="-L/usr/local/lib -lpq"
+ ngx_feature_libs="-L%%PREFIX%%/lib -lpq"
fi
. auto/feature
fi

View File

@ -0,0 +1,19 @@
--- ../FRiCKLE-ngx_postgres-49855a0/config.orig 2015-05-26 20:52:25.649166000 +0300
+++ ../FRiCKLE-ngx_postgres-49855a0/config 2015-05-26 20:53:10.331122000 +0300
@@ -48,12 +48,12 @@
if [ $ngx_found = no ]; then
# FreeBSD
- ngx_feature="libpq library in /usr/local/"
- ngx_feature_path="/usr/local/include"
+ ngx_feature="libpq library in %%PREFIX%%/"
+ ngx_feature_path="%%PREFIX%%/include"
if [ $NGX_RPATH = YES ]; then
- ngx_feature_libs="-R/usr/local/lib -L/usr/local/lib -lpq"
+ ngx_feature_libs="-R%%PREFIX%%/lib -L%%PREFIX%%/lib -lpq"
else
- ngx_feature_libs="-L/usr/local/lib -lpq"
+ ngx_feature_libs="-L%%PREFIX%%/lib -lpq"
fi
. auto/feature
fi