Skip to content

Commit

Permalink
devel/leatherman: Unbreak on HEAD
Browse files Browse the repository at this point in the history
- Pet portclippy while I am here

Approved by:	portmgr (blanket)
  • Loading branch information
5u623l20 committed Apr 29, 2023
1 parent be22e4e commit 0a28a51
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions devel/leatherman/Makefile
Expand Up @@ -15,16 +15,22 @@ LIB_DEPENDS= libboost_system.so:devel/boost-libs \
USES= compiler:c++11-lang cmake gettext ruby
USE_GITHUB= yes
GH_ACCOUNT= puppetlabs
USE_LDCONFIG= yes

CMAKE_ON= LEATHERMAN_SHARED
CMAKE_OFF= ENABLE_CXX_WERROR
USE_LDCONFIG= yes

TEST_TARGET= test

PLIST_SUB= PORTVERSION=${PORTVERSION}

.include <bsd.port.pre.mk>

post-configure:
# This file is vendored in vendor/Catch-1.10.0.zip and extracted at configure step
${SED} -i '' -e '1s|\(.*\)|#include <sys/signal.h>\n\1|' ${CONFIGURE_WRKSRC}/src/Catch-1.10.0/single_include/catch.hpp
.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1400079
${REINPLACE_CMD} -e 's|ptrdiff_t|size_t|' ${CONFIGURE_WRKSRC}/src/Catch-1.10.0/single_include/catch.hpp
.endif

PLIST_SUB= PORTVERSION=${PORTVERSION}

.include <bsd.port.mk>
.include <bsd.port.post.mk>

0 comments on commit 0a28a51

Please sign in to comment.