1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-17 08:01:36 +00:00

- Add LICENSE_FILE

- Use USES=localbase
- Convert to new options target helper
This commit is contained in:
Sunpoet Po-Chuan Hsieh 2015-10-15 20:16:10 +00:00
parent d8f2449fd6
commit 5e0de1cddd
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=399364

View File

@ -11,18 +11,18 @@ MAINTAINER= sunpoet@FreeBSD.org
COMMENT= C++ wrapper for libcurl
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/COPYING
LIB_DEPENDS= libcurl.so:${PORTSDIR}/ftp/curl
OPTIONS_DEFINE= BOOST DOCS EXAMPLES
CONFIGURE_ARGS= --disable-ewarning
CPPFLAGS+= -I${LOCALBASE}/include
GNU_CONFIGURE= yes
INSTALL_TARGET= install-strip
LDFLAGS+= -L${LOCALBASE}/lib
PATHFIX_MAKEFILEIN= Makefile.am
USE_LDCONFIG= yes
USES= autoreconf libtool pathfix
USES= autoreconf libtool localbase pathfix
PORTDOCS= *
PORTEXAMPLES= *
@ -30,8 +30,6 @@ PORTEXAMPLES= *
GH_ACCOUNT= jpbarrette
USE_GITHUB= yes
PATHFIX_MAKEFILEIN= Makefile.am
BOOST_BUILD_DEPENDS= boost-libs>=1.20.0:${PORTSDIR}/devel/boost-libs
BOOST_RUN_DEPENDS= ${BOOST_BUILD_DEPENDS}
BOOST_CONFIGURE_ON= --with-boost=${LOCALBASE}
@ -40,9 +38,11 @@ BOOST_CONFIGURE_OFF= --without-boost
post-patch:
@${REINPLACE_CMD} -e 's| -lstdc++||' ${WRKSRC}/configure.ac
post-install:
post-install-DOCS-on:
${MKDIR} ${STAGEDIR}${DOCSDIR}/
${INSTALL_DATA} ${WRKSRC}/doc/guide.pdf ${STAGEDIR}${DOCSDIR}/
post-install-EXAMPLES-on:
${MKDIR} ${STAGEDIR}${EXAMPLESDIR}/
${INSTALL_DATA} ${WRKSRC}/examples/README ${WRKSRC}/examples/example*.cpp ${STAGEDIR}${EXAMPLESDIR}/