svn commit: r542847 - in head/net/bsdec2-image-upload: . files
Piotr Kubaj
pkubaj at FreeBSD.org
Wed Jul 22 10:17:27 UTC 2020
Author: pkubaj
Date: Wed Jul 22 10:17:26 2020
New Revision: 542847
URL: https://svnweb.freebsd.org/changeset/ports/542847
Log:
net/bsdec2-image-upload: fix build on GCC architectures
-W\#warnings is incorrect for GCC:
cc1: error: -Werror=#warnings: No option -W#warnings
MFH: 2020Q3 (fix build blanket)
Added:
head/net/bsdec2-image-upload/files/
head/net/bsdec2-image-upload/files/extra-patch-Makefile (contents, props changed)
Modified:
head/net/bsdec2-image-upload/Makefile
Modified: head/net/bsdec2-image-upload/Makefile
==============================================================================
--- head/net/bsdec2-image-upload/Makefile Wed Jul 22 09:49:57 2020 (r542846)
+++ head/net/bsdec2-image-upload/Makefile Wed Jul 22 10:17:26 2020 (r542847)
@@ -13,7 +13,7 @@ LICENSE_FILE= ${WRKSRC}/COPYRIGHT
RUN_DEPENDS= ${LOCALBASE}/share/certs/ca-root-nss.crt:security/ca_root_nss
-USES= ssl tar:tgz uidfix
+USES= compiler ssl tar:tgz uidfix
CFLAGS+= -I${OPENSSLINC}
LDFLAGS+= -L${OPENSSLLIB}
@@ -23,4 +23,10 @@ MAKE_ARGS+= BINDIR=${PREFIX}/bin
PLIST_FILES= bin/bsdec2-image-upload
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${CHOSEN_COMPILER_TYPE} == gcc
+EXTRA_PATCHES= ${FILESDIR}/extra-patch-Makefile
+.endif
+
+.include <bsd.port.post.mk>
Added: head/net/bsdec2-image-upload/files/extra-patch-Makefile
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/net/bsdec2-image-upload/files/extra-patch-Makefile Wed Jul 22 10:17:26 2020 (r542847)
@@ -0,0 +1,10 @@
+--- Makefile.orig 2020-07-22 09:29:11 UTC
++++ Makefile
+@@ -2,7 +2,6 @@ PROG= bsdec2-image-upload
+ SRCS= main.c
+ MAN =
+ WARNS ?= 3
+-CFLAGS += -Wno-error=\#warnings
+ BINDIR ?= /usr/local/bin
+ LDADD += -lcrypto -lssl
+
More information about the svn-ports-head
mailing list