mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-22 04:17:44 +00:00
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)
This commit is contained in:
parent
515958e3f1
commit
e0d4a5b851
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=542847
@ -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>
|
||||
|
10
net/bsdec2-image-upload/files/extra-patch-Makefile
Normal file
10
net/bsdec2-image-upload/files/extra-patch-Makefile
Normal file
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user