Index: head/devel/liblpm/Makefile =================================================================== --- head/devel/liblpm/Makefile (revision 503920) +++ head/devel/liblpm/Makefile (revision 503921) @@ -1,32 +1,38 @@ # $FreeBSD$ PORTNAME= liblpm PORTVERSION= g2019052401 CATEGORIES= devel MAINTAINER= swills@FreeBSD.org COMMENT= Longest Prefix Match library LICENSE= BSD2CLAUSE LICENSE_FILE= ${WRKSRC}/../LICENSE -USES= gmake libtool:build +USES= compiler gmake libtool:build USE_GITHUB= yes GH_ACCOUNT= rmind GH_PROJECT= liblpm GH_TAGNAME= 984ac5f WRKSRC_SUBDIR= src USE_LDCONFIG= yes MAKE_ENV= DESTDIR=${STAGEDIR}${PREFIX} \ INCDIR=${LOCALBASE}/include \ LIBDIR=${LOCALBASE}/lib \ MANDIR=${LOCALBASE}/man PLIST_FILES= include/lpm.h \ lib/liblpm.a \ lib/liblpm.so \ lib/liblpm.so.1 \ lib/liblpm.so.1.0.0 -.include +.include + +.if ${CHOSEN_COMPILER_TYPE} == gcc +EXTRA_PATCHES= ${PATCHDIR}/extra-patch-Makefile +.endif + +.include Index: head/devel/liblpm/files/extra-patch-Makefile =================================================================== --- head/devel/liblpm/files/extra-patch-Makefile (nonexistent) +++ head/devel/liblpm/files/extra-patch-Makefile (revision 503921) @@ -0,0 +1,16 @@ +--- Makefile.orig 2019-05-18 16:55:32 UTC ++++ Makefile +@@ -11,13 +11,10 @@ CFLAGS+= -D_GNU_SOURCE -D_DEFAULT_SOURCE + # + # Extended warning flags. + # +-CFLAGS+= -Wno-unknown-warning-option # gcc vs clang +- + CFLAGS+= -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith + CFLAGS+= -Wmissing-declarations -Wredundant-decls -Wnested-externs + CFLAGS+= -Wshadow -Wcast-qual -Wcast-align -Wwrite-strings + CFLAGS+= -Wold-style-definition +-CFLAGS+= -Wsuggest-attribute=noreturn -Wjump-misses-init + + # New GCC 6/7 flags: + #CFLAGS+= -Wduplicated-cond -Wmisleading-indentation -Wnull-dereference Property changes on: head/devel/liblpm/files/extra-patch-Makefile ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property