- Fix build without libstdc++ by removing hardcoded libstdc++ linkage [1]

- Convert to new LIB_DEPENDS format
- Convert to new OPTIONS simplifier

Reported by:	pkg-fallout [1]
This commit is contained in:
Sunpoet Po-Chuan Hsieh 2013-09-20 06:34:15 +00:00
parent c184a462da
commit 6c6694c46f
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=327657

View file

@ -10,7 +10,7 @@ MASTER_SITES= GOOGLE_CODE
MAINTAINER= sunpoet@FreeBSD.org
COMMENT= C++ wrapper for libcurl
LIB_DEPENDS= curl:${PORTSDIR}/ftp/curl
LIB_DEPENDS= libcurl.so:${PORTSDIR}/ftp/curl
OPTIONS_DEFINE= BOOST DOCS EXAMPELS
@ -21,15 +21,15 @@ LDFLAGS+= -L${LOCALBASE}/lib
USE_LDCONFIG= yes
USES= pathfix
BOOST_BUILD_DEPENDS= boost-libs>=1.20.0:${PORTSDIR}/devel/boost-libs
BOOST_RUN_DEPENDS= ${BOOST_BUILD_DEPENDS}
BOOST_CONFIGURE_ON= --with-boost=${LOCALBASE}
BOOST_CONFIGURE_OFF= --without-boost
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MBOOST}
BUILD_DEPENDS+= boost-libs>=1.20.0:${PORTSDIR}/devel/boost-libs
RUN_DEPENDS+= boost-libs>=1.20.0:${PORTSDIR}/devel/boost-libs
CONFIGURE_ARGS+=--with-boost=${LOCALBASE}
.else
CONFIGURE_ARGS+=--without-boost
.endif
post-patch:
@${REINPLACE_CMD} -e 's| -lstdc++||' ${WRKSRC}/configure
post-install:
.if ${PORT_OPTIONS:MDOCS}