Skip to content

Commit

Permalink
comms/{py-}libimobiledevice: Fix build on llvm15
Browse files Browse the repository at this point in the history
- While I am here utilize USES=localbase:ldflags

Approved by:	portmgr (blanket)
  • Loading branch information
5u623l20 committed Jun 5, 2023
1 parent 6298a78 commit 148f9e0
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions comms/libimobiledevice/Makefile
Expand Up @@ -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
Expand Down Expand Up @@ -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>

0 comments on commit 148f9e0

Please sign in to comment.