freebsd-ports/www/mod_pagespeed/files/patch-third__party_apr_apr.gyp
Mahdi Mokhtari 60a05e200a www/mod_pagespeed: Add latest stable version to the tree
mod_pagespeed is an open-source Apache module that automatically
optimizes web pages and resources on them by rewriting the
resources using filters that implement web performance best practices.

Reviewed by:	mat (mentor)
Approved by:	mat (mentor)
Sponsored by:	Netzkommune GmbH
Differential Revision:	https://reviews.freebsd.org/D12616
2017-10-13 15:15:53 +00:00

39 lines
1.1 KiB
Python

--- third_party/apr/apr.gyp.orig 2017-10-04 20:42:02 UTC
+++ third_party/apr/apr.gyp
@@ -19,7 +19,7 @@
'apr_src_root': '<(apr_root)/src',
'apr_gen_os_root': '<(apr_root)/gen/arch/<(OS)',
'apr_gen_arch_root': '<(apr_gen_os_root)/<(target_arch)',
- 'system_include_path_apr%': '/usr/include/apr-1.0',
+ 'system_include_path_apr%': '/usr/local/include/apr-1',
'conditions': [
['OS!="win"', {
'apr_os_include': '<(apr_src_root)/include/arch/unix',
@@ -187,6 +187,14 @@
'_GNU_SOURCE',
],
},
+ 'link_settings': {
+ 'ldflags': [
+ '<!@(pkg-config --libs apr-1)',
+ ],
+ 'libraries': [
+ '<!@(pkg-config --libs apr-1)',
+ ],
+ },
},
{
'target_name': 'apr',
@@ -198,8 +206,11 @@
'include',
],
'link_settings': {
+ 'ldflags': [
+ '<!@(pkg-config --libs apr-1)',
+ ],
'libraries': [
- '-lapr-1',
+ '<!@(pkg-config --libs apr-1)',
],
},
},