In file included from exception.cxx:5: In file included from /usr/include/c++/v1/typeinfo:61: In file included from /usr/include/c++/v1/exception:81: In file included from /usr/include/c++/v1/cstddef:38: ../version:1:1: error: expected unqualified-id 1.10.0 ^ PR: 236192 Approved by: portmgr blanket
44 lines
1.2 KiB
Makefile
44 lines
1.2 KiB
Makefile
# $FreeBSD$
|
|
|
|
PORTNAME= libcutl
|
|
PORTVERSION= 1.10.0
|
|
PORTREVISION= 13
|
|
CATEGORIES= devel
|
|
MASTER_SITES= http://www.codesynthesis.com/download/${PORTNAME}/${PORTVERSION:R}/
|
|
|
|
MAINTAINER= rakuco@FreeBSD.org
|
|
COMMENT= C++ utility library with generic and independent components
|
|
|
|
LICENSE= MIT
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
|
|
|
LIB_DEPENDS= libboost_system.so:devel/boost-libs \
|
|
libexpat.so:textproc/expat2
|
|
|
|
BROKEN_sparc64= Does not build: cannot configure with boost
|
|
|
|
GNU_CONFIGURE= yes
|
|
INSTALL_TARGET= install-strip
|
|
USES= compiler:c++11-lib libtool
|
|
|
|
# The checks for external boost and external expat are quite limited and do not
|
|
# add the ${LOCALBASE} paths correctly (libboost.m4 uses wrong paths and
|
|
# libexpat.m4 does nothing at all).
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
|
|
|
CONFIGURE_ARGS= --disable-static \
|
|
--with-boost=${LOCALBASE} \
|
|
--with-external-boost \
|
|
--with-external-expat \
|
|
--with-pkgconfigdir=${PREFIX}/libdata/pkgconfig
|
|
|
|
OPTIONS_DEFINE= DOCS
|
|
|
|
post-patch:
|
|
# Avoid conflict with C++20 <version> by adding .txt suffix
|
|
@${MV} ${WRKSRC}/version ${WRKSRC}/version.txt
|
|
@${REINPLACE_CMD} -i .c++20 '/doc_DATA/s/version/&.txt/' \
|
|
${WRKSRC}/Makefile.in
|
|
|
|
.include <bsd.port.mk>
|