Skip to content

Commit

Permalink
graphics/libemf: Unbreak build with clang16
Browse files Browse the repository at this point in the history
PR:	272425
  • Loading branch information
nunotexbsd authored and fluffykhv committed Jul 11, 2023
1 parent 2c2ec62 commit 2f3cbb8
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions graphics/libemf/Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
PORTNAME= libEMF
PORTVERSION= 1.0.13
DISTVERSION= 1.0.13
PORTREVISION= 1
CATEGORIES= graphics
MASTER_SITES= SF
DISTNAME= libemf-${DISTVERSION}
Expand All @@ -10,14 +11,21 @@ WWW= http://libemf.sourceforge.net/

LICENSE= LGPL21

OPTIONS_DEFINE= DOCS

USES= cpe libtool
USES= compiler:c++14-lang cpe libtool
CPE_VENDOR= ${PORTNAME:tl}_project
# libEMF 1.10.13 does not work with C++17 which is the default since
# clang 16. This can be removed once that port starts working with C++17 and
# has its own USE_CXXSTD removed.
# See also: https://sourceforge.net/p/libemf/bugs/5/
USE_CXXSTD= c++14
USE_LDCONFIG= yes

GNU_CONFIGURE= yes
INSTALL_TARGET= install-strip
TEST_TARGET= check

OPTIONS_DEFINE= DOCS

post-install-DOCS-on:
${MKDIR} ${STAGEDIR}${DOCSDIR}
cd ${WRKSRC}/doc/html && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR}
Expand Down

0 comments on commit 2f3cbb8

Please sign in to comment.