Changeset View
Changeset View
Standalone View
Standalone View
devel/libcutl/Makefile
PORTNAME= libcutl | PORTNAME= libcutl | ||||
PORTVERSION= 1.10.0 | PORTVERSION= 1.11.0 | ||||
PORTREVISION= 22 | |||||
CATEGORIES= devel | CATEGORIES= devel | ||||
MASTER_SITES= https://www.codesynthesis.com/download/${PORTNAME}/${PORTVERSION:R}/ | MASTER_SITES= https://www.codesynthesis.com/download/xsd/4.2/ | ||||
MAINTAINER= rakuco@FreeBSD.org | MAINTAINER= rakuco@FreeBSD.org | ||||
COMMENT= C++ utility library with generic and independent components | COMMENT= C++ utility library with generic and independent components | ||||
WWW= https://www.codesynthesis.com/projects/libcutl/ | WWW= https://www.codesynthesis.com/projects/libcutl/ | ||||
LICENSE= MIT | LICENSE= MIT | ||||
LICENSE_FILE= ${WRKSRC}/LICENSE | LICENSE_FILE= ${WRKSRC}/LICENSE | ||||
BROKEN_sparc64= Does not build: cannot configure with boost | BUILD_DEPENDS= build2>=0.16.0:devel/build2 | ||||
LIB_DEPENDS= libboost_system.so:devel/boost-libs \ | USES= compiler:c++2b-lang | ||||
libexpat.so:textproc/expat2 | |||||
USES= compiler:c++11-lib libtool | |||||
# libcutl 1.10.0 is not compatible with C++17, which is the default since clang | |||||
# 16. This means ports depending on it also need to use at most C++14. | |||||
USE_CXXSTD= c++11 | |||||
GNU_CONFIGURE= yes | |||||
INSTALL_TARGET= install-strip | |||||
# 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 | OPTIONS_DEFINE= DOCS | ||||
post-patch: | B_CMD= ${LOCALBASE}/bin/b | ||||
# Avoid conflict with C++20 <version> by adding .txt suffix | B_ARGS= -V -j ${MAKE_JOBS_NUMBER} -J ${MAKE_JOBS_NUMBER} | ||||
@${MV} ${WRKSRC}/version ${WRKSRC}/version.txt | |||||
@${REINPLACE_CMD} -i .c++20 '/doc_DATA/s/version/&.txt/' \ | do-build: | ||||
${WRKSRC}/Makefile.in | @cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${B_CMD} configure ${B_ARGS} \ | ||||
config.cxx=${CXX} \ | |||||
config.cxx.coptions="${CXXFLAGS}" \ | |||||
config.cxx.loptions="${LDFLAGS} ${STRIP}" \ | |||||
config.bin.lib=shared \ | |||||
config.bin.rpath=${PREFIX}/lib \ | |||||
config.install.chroot=${STAGEDIR} \ | |||||
config.install.root=${PREFIX} | |||||
do-install: | |||||
@cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${B_CMD} install ${B_ARGS} | |||||
.include <bsd.port.mk> | .include <bsd.port.mk> |