mirror of
https://git.freebsd.org/ports.git
synced 2025-06-19 19:50:31 -04:00
Submitted by: clutton <clutton@zoho.com> Reviewed by: cpm, rene Obtained from: https://github.com/paranormal/ MFH: 2016Q4 Security: https://vuxml.freebsd.org/freebsd/769ba449-79e1-11e6-bf75-3065ec8fd3ec.html Security: https://vuxml.freebsd.org/freebsd/653a8059-7c49-11e6-9242-3065ec8fd3ec.html Security: https://vuxml.freebsd.org/freebsd/9c135c7e-9fa4-11e6-a265-3065ec8fd3ec.html Security: https://vuxml.freebsd.org/freebsd/9118961b-9fa5-11e6-a265-3065ec8fd3ec.html Security: https://vuxml.freebsd.org/freebsd/ae9cb9b8-a203-11e6-a265-3065ec8fd3ec.html Security: https://vuxml.freebsd.org/freebsd/a3473f5a-a739-11e6-afaa-e8e0b747a45a.html Differential Revision: https://reviews.freebsd.org/D8517
26 lines
1 KiB
Python
26 lines
1 KiB
Python
--- build/config/linux/pkg-config.py.orig 2016-08-03 22:02:10.000000000 +0300
|
|
+++ build/config/linux/pkg-config.py 2016-09-04 01:43:37.226981000 +0300
|
|
@@ -57,8 +57,12 @@
|
|
print "You must specify an architecture via -a if using a sysroot."
|
|
sys.exit(1)
|
|
|
|
- libdir = sysroot + '/usr/' + options.system_libdir + '/pkgconfig'
|
|
- libdir += ':' + sysroot + '/usr/share/pkgconfig'
|
|
+ if "linux" in sys.platform:
|
|
+ libdir = sysroot + '/libdata/' + options.system_libdir + '/pkgconfig'
|
|
+ libdir += ':' + sysroot + '/usr/share/pkgconfig'
|
|
+ elif "bsd" in sys.platform:
|
|
+ libdir = sysroot + '/libdata/pkgconfig'
|
|
+ libdir += ':' + '/usr/libdata/pkgconfig'
|
|
os.environ['PKG_CONFIG_LIBDIR'] = libdir
|
|
return libdir
|
|
|
|
@@ -107,7 +111,7 @@
|
|
# If this is run on non-Linux platforms, just return nothing and indicate
|
|
# success. This allows us to "kind of emulate" a Linux build from other
|
|
# platforms.
|
|
- if "linux" not in sys.platform:
|
|
+ if "bsd" not in sys.platform:
|
|
print "[[],[],[],[],[]]"
|
|
return 0
|
|
|