diff --git a/devel/csmith/Makefile b/devel/csmith/Makefile index 926cbad8087a..d6672dde2d67 100644 --- a/devel/csmith/Makefile +++ b/devel/csmith/Makefile @@ -1,26 +1,34 @@ PORTNAME= csmith PORTVERSION= 2.3.0 CATEGORIES= devel MASTER_SITES= http://embed.cs.utah.edu/csmith/ MAINTAINER= ports@FreeBSD.org COMMENT= Generates random C programs that conform to the C99 standard WWW= https://embed.cs.utah.edu/csmith/ LICENSE= BSD2CLAUSE +USES= gmake libtool localbase perl5 shebangfix +USE_CXXSTD= c++11 +USE_LDCONFIG= yes +USE_PERL5= run + +SHEBANG_FILES= scripts/compiler_test.pl scripts/launchn.pl + GNU_CONFIGURE= yes CONFIGURE_ARGS= --docdir=${DOCSDIR} -CPPFLAGS+= -I${LOCALBASE}/include -LIBS+= -L${LOCALBASE}/lib + INSTALL_TARGET= install-strip -USES= gmake libtool perl5 shebangfix -USE_PERL5= run -SHEBANG_FILES= scripts/compiler_test.pl scripts/launchn.pl -USE_LDCONFIG= yes + +PLIST_SUB= PKGNAME="${PKGNAME}" OPTIONS_DEFINE= DOCS -PLIST_SUB= PKGNAME="${PKGNAME}" +.include + +.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1400091 +CPPFLAGS+= -Wno-error=enum-constexpr-conversion +.endif .include