git: 148f9e0f2cd9 - main - comms/{py-}libimobiledevice: Fix build on llvm15
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 05 Jun 2023 14:23:59 UTC
The branch main has been updated by bofh:
URL: https://cgit.FreeBSD.org/ports/commit/?id=148f9e0f2cd9090ac22b2a426ee382c312ece6a6
commit 148f9e0f2cd9090ac22b2a426ee382c312ece6a6
Author: Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2023-06-05 14:00:13 +0000
Commit: Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-06-05 14:23:45 +0000
comms/{py-}libimobiledevice: Fix build on llvm15
- While I am here utilize USES=localbase:ldflags
Approved by: portmgr (blanket)
---
comms/libimobiledevice/Makefile | 12 ++++++++----
1 file changed, 8 insertions(+), 4 deletions(-)
diff --git a/comms/libimobiledevice/Makefile b/comms/libimobiledevice/Makefile
index bb58a406dc91..e19006b9dadc 100644
--- a/comms/libimobiledevice/Makefile
+++ b/comms/libimobiledevice/Makefile
@@ -13,12 +13,10 @@ LICENSE_FILE= ${WRKSRC}/COPYING.LESSER
SLAVE_PORT?= no
-USES+= cpe libtool localbase pathfix pkgconfig ssl tar:bzip2
+USES+= cpe libtool localbase:ldflags pathfix pkgconfig ssl tar:bzip2
GNU_CONFIGURE= yes
CONFIGURE_ARGS+=openssl_CFLAGS="-I${OPENSSLINC}" \
openssl_LIBS="-L${OPENSSLLIB} -lssl -lcrypto"
-CFLAGS+= -I${LOCALBASE}/include
-LDFLAGS+= -L${LOCALBASE}/lib
INSTALL_TARGET= install-strip
.if ${SLAVE_PORT} == no
@@ -46,4 +44,10 @@ post-install:
.endif # ${SLAVE_PORT} == no
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${OPSYS} == FreeBSD && ( ${OSVERSION} >= 1400079 || ( ${OSVERSION} >= 1302505 && ${OSVERSION} < 1400000 ))
+CFLAGS+= -Wno-error=int-conversion
+.endif
+
+.include <bsd.port.post.mk>