summaryrefslogtreecommitdiff
path: root/www
diff options
context:
space:
mode:
authorwiz <wiz>2013-05-31 08:41:55 +0000
committerwiz <wiz>2013-05-31 08:41:55 +0000
commit33d51f862007c6b8aed726a09defb652795ecbde (patch)
treef2f32b8f6b594339a22c3a9e16b57d5a510cc84f /www
parent9b1629e8ef4088259f219b352e57611bccc21c07 (diff)
downloadpkgsrc-33d51f862007c6b8aed726a09defb652795ecbde.tar.gz
Try fixing build on Solaris. PR pkg/47868.
Diffstat (limited to 'www')
-rw-r--r--www/libproxy/Makefile10
1 files changed, 8 insertions, 2 deletions
diff --git a/www/libproxy/Makefile b/www/libproxy/Makefile
index 3b45e707e2b..8cb24b91cd6 100644
--- a/www/libproxy/Makefile
+++ b/www/libproxy/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.17 2013/05/25 11:13:12 obache Exp $
+# $NetBSD: Makefile,v 1.18 2013/05/31 08:41:55 wiz Exp $
DISTNAME= libproxy-0.4.11
CATEGORIES= www gnome
@@ -13,9 +13,15 @@ USE_CMAKE= yes
USE_LIBTOOL= yes
USE_TOOLS+= pkg-config gmake
USE_LANGUAGES= c99 c++
-LIBS.SunOS+= -lnsl -lsocket
CMAKE_ARGS+= -DWITH_PYTHON:BOOL=OFF
+.include "../../mk/bsd.fast.prefs.mk"
+
+.if (${OPSYS} == "SunOS")
+# add libraries needed for Solaris, and add stuff cmake would add it on its own
+CMAKE_ARGS+= CMAKE_EXE_LINKER_FLAGS:STRING="-lnsl -lsocket ${COMPILER_RPATH_FLAG}${PREFIX}/lib"
+.endif
+
PKGCONFIG_OVERRIDE+= bindings/csharp/libproxy-sharp-1.0.pc.cmake
PKGCONFIG_OVERRIDE+= libproxy/libproxy-1.0.pc.in