summaryrefslogtreecommitdiff
path: root/www/libproxy/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'www/libproxy/Makefile')
-rw-r--r--www/libproxy/Makefile11
1 files changed, 5 insertions, 6 deletions
diff --git a/www/libproxy/Makefile b/www/libproxy/Makefile
index 01dc0cde57a..2e7f2151725 100644
--- a/www/libproxy/Makefile
+++ b/www/libproxy/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.22 2014/08/28 10:58:19 jperkin Exp $
+# $NetBSD: Makefile,v 1.23 2015/04/27 11:03:42 jperkin Exp $
DISTNAME= libproxy-0.4.11
CATEGORIES= www gnome
@@ -15,12 +15,11 @@ USE_TOOLS+= pkg-config gmake
USE_LANGUAGES= c99 c++
CMAKE_ARGS+= -DWITH_PYTHON:BOOL=OFF
-.include "../../mk/bsd.fast.prefs.mk"
+OPSYSVARS+= CMAKE_ARGS
-.if ${OPSYS} == "SunOS"
-# add libraries needed for Solaris, and add stuff cmake would add it on its own
-CMAKE_ARGS+= -DCMAKE_EXE_LINKER_FLAGS:STRING="-lnsl -lsocket ${COMPILER_RPATH_FLAG}${PREFIX}/lib"
-.endif
+# Need socket libraries on SunOS for both the shared library and test programs.
+CMAKE_ARGS.SunOS+= -DCMAKE_EXE_LINKER_FLAGS:STRING="-lnsl -lsocket -L${PREFIX}/lib ${COMPILER_RPATH_FLAG}${PREFIX}/lib"
+CMAKE_ARGS.SunOS+= -DCMAKE_SHARED_LINKER_FLAGS:STRING="-lnsl -lsocket -L${PREFIX}/lib ${COMPILER_RPATH_FLAG}${PREFIX}/lib"
PKGCONFIG_OVERRIDE+= bindings/csharp/libproxy-sharp-1.0.pc.cmake
PKGCONFIG_OVERRIDE+= libproxy/libproxy-1.0.pc.in