freebsd-ports/net-p2p/eiskaltdcpp-lib/Makefile
Michael Scheidell f9d30cef27 PR: 162340
Submitted by:	gelraen.ua@gmail.com
Reviewed by:
Approved by:	gabor (mentor)
Obtained from:
MFC after:
Security:
Feature safe:	yes
On some machines resulting binaries contains "/usr/lib" before "/usr/local/lib/gcc45" in rpath and user gets something like
this if tries to launch that binary:

/libexec/ld-elf.so.1: /usr/lib/libstdc++.so.6: version GLIBCXX_3.4.10 required by /usr/local/bin/eiskaltdcpp-gtk not found

Attached patch adds BUILD_DEPENDS on devel/chrpath, which is used to overwrite rpath in built binaries (-DCMAKE_INSTALL_RPATH
only aappends directories to rpath)
2011-11-28 16:30:44 +00:00

86 lines
1.9 KiB
Makefile

# New ports collection makefile for: net-p2p/eiskaltdc
# Date created: 28 Aug 2009
# Whom: Stas Timokhin <stast@bsdportal.ru>
#
# $FreeBSD$
#
PORTNAME= eiskaltdcpp-lib
PORTVERSION= 2.2.4
PORTREVISION= 1
CATEGORIES= net-p2p
MASTER_SITES= GOOGLE_CODE
DISTNAME= eiskaltdcpp-${DISTVERSION}
MAINTAINER= gelraen.ua@gmail.com
COMMENT= A Direct Connect client shared library
LICENSE= GPLv3
LIB_DEPENDS= boost_system:${PORTSDIR}/devel/boost-libs
BUILD_DEPENDS+= chrpath:${PORTSDIR}/devel/chrpath
PROJECTHOST= eiskaltdc
USE_XZ= yes
USE_GCC= 4.4+
USE_CMAKE= yes
USE_GETTEXT= yes
USE_OPENSSL= yes
USE_LDCONFIG= yes
MAKE_JOBS_SAFE= yes
OPTIONS= LUA "Lua scripting support" off \
PCRE "PCRE support in ADL Search" off \
IDN "IDN support" on \
DHT "DHT support" on
.include <bsd.port.options.mk>
CMAKE_ARGS+= -DINSTALL_HEADERS:BOOL=ON
CMAKE_ARGS+= -DUSE_QT:BOOL=OFF
CMAKE_ARGS+= -DUSE_GTK:BOOL=OFF
CMAKE_ARGS+= -DUSE_ASPELL:BOOL=OFF
CMAKE_ARGS+= -DUSE_MINIUPNP:BOOL=OFF
CMAKE_ARGS+= -DCMAKE_SKIP_RPATH:BOOL=ON
.if defined(WITH_LUA) && !defined(WITHOUT_LUA)
USE_LUA= 5.1
CMAKE_ARGS+= -DLUA_SCRIPT:BOOL=ON
IGNORE= crashes on connect attempt if built with Lua support
.else
CMAKE_ARGS+= -DLUA_SCRIPT:BOOL=OFF
.endif
.if defined(WITH_PCRE) && !defined(WITHOUT_PCRE)
LIB_DEPENDS+= pcre:${PORTSDIR}/devel/pcre
CMAKE_ARGS+= -DPERL_REGEX:BOOL=ON
.else
CMAKE_ARGS+= -DPERL_REGEX:BOOL=OFF
.endif
.if defined(WITH_IDN) && !defined(WITHOUT_IDN)
LIB_DEPENDS+= idn:${PORTSDIR}/dns/libidn
CMAKE_ARGS+= -DUSE_IDNA:BOOL=ON
.else
CMAKE_ARGS+= -DUSE_IDNA:BOOL=OFF
.endif
.if defined(WITH_DHT) && !defined(WITHOUT_DHT)
CMAKE_ARGS+= -DWITH_DHT:BOOL=ON
.else
CMAKE_ARGS+= -DWITH_DHT:BOOL=OFF
.endif
.include <bsd.port.pre.mk>
.if ${OSVERSION} < 700024
USE_OPENSSL_PORT=yes
.endif
GCC_LIBS= "${LOCALBASE}/lib/${_GCC_BUILD_DEPENDS}"
post-build:
${LOCALBASE}/bin/chrpath -r "${GCC_LIBS}" "${WRKSRC}/dcpp/libeiskaltdcpp.so.2.2"
.include <bsd.port.post.mk>