mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-24 00:45:52 +00:00
MFH: r542847
net/bsdec2-image-upload: fix build on GCC architectures -W\#warnings is incorrect for GCC: cc1: error: -Werror=#warnings: No option -W#warnings Approved by: portmgr (fix build blanket)
This commit is contained in:
parent
c328cd0fa9
commit
36536619c1
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/branches/2020Q3/; revision=542848
@ -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