gupnp: test tweaks

* fix naked /usr/include usage
* fix finding lglib in test.
This commit is contained in:
Dominyk Tiller 2018-08-29 01:33:39 +01:00
parent 1ddcfc790e
commit 97ad8f54d8
No known key found for this signature in database
GPG key ID: FE19AEFCF658C6F6

View file

@ -56,9 +56,10 @@ class Gupnp < Formula
"-L#{Formula["gssdp"].opt_lib}", "-lgssdp-1.0",
"-I#{Formula["glib"].opt_include}/glib-2.0",
"-I#{Formula["glib"].opt_lib}/glib-2.0/include",
"-L#{Formula["glib"].opt_lib}",
"-lglib-2.0", "-lgobject-2.0",
"-I#{Formula["libsoup"].opt_include}/libsoup-2.4",
"-I/usr/include/libxml2",
"-I#{MacOS.sdk_path}/usr/include/libxml2",
testpath/"test.c", "-o", testpath/"test"
system "./test"
end