From 76022a5e09121b614bac696f7e91f96c06cc55dd Mon Sep 17 00:00:00 2001 From: wiz Date: Fri, 31 May 2013 08:41:55 +0000 Subject: Try fixing build on Solaris. PR pkg/47868. --- www/libproxy/Makefile | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'www/libproxy') 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 -- cgit v1.2.3