Skip to content

Commit

Permalink
security/pidgin-encryption: Fix build with llvm15
Browse files Browse the repository at this point in the history
- Pet portclippy
- Refactor USES=localbase

Approved by:	portmgr (blanket)
  • Loading branch information
5u623l20 committed Jun 11, 2023
1 parent 0a3c416 commit d99c374
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions security/pidgin-encryption/Makefile
Expand Up @@ -11,26 +11,33 @@ COMMENT= Encryption Plugin for the Pidgin instant messenger client
WWW= http://pidgin-encrypt.sf.net

BUILD_DEPENDS= ${LOCALBASE}/bin/pidgin:net-im/pidgin
RUN_DEPENDS= ${LOCALBASE}/bin/pidgin:net-im/pidgin
LIB_DEPENDS= libpurple.so:net-im/libpurple \
libnss3.so:security/nss
RUN_DEPENDS= ${LOCALBASE}/bin/pidgin:net-im/pidgin

USES= gettext gmake gnome libtool localbase pkgconfig
USE_GNOME= gtk20

GNU_CONFIGURE= yes
CONFIGURE_ARGS= --disable-static \
--with-nspr-includes=${LOCALBASE}/include/nspr \
--with-nspr-libs=${LOCALBASE}/lib \
--with-nss-includes=${LOCALBASE}/include/nss \
--with-nss-libs=${LOCALBASE}/lib
CPPFLAGS+= -I${LOCALBASE}/include
LIBS+= -L${LOCALBASE}/lib

INSTALL_TARGET= install-strip
USES= gettext gmake gnome libtool pkgconfig
USE_GNOME= gtk20

OPTIONS_DEFINE= NLS
OPTIONS_SUB= yes
NLS_CONFIGURE_ENABLE= nls

NLS_USES= gettext
NLS_CONFIGURE_ENABLE= nls

.include <bsd.port.options.mk>

.if ${OPSYS} == FreeBSD && ( ${OSVERSION} >= 1400079 || ( ${OSVERSION} >= 1302505 && ${OSVERSION} < 1400000 ))
CFLAGS+= -Wno-error=int-conversion
.endif

post-extract:
@${REINPLACE_CMD} -e 's|glib/.*\.h"|glib.h"|g' ${WRKSRC}/rsa_nss.c
Expand Down

0 comments on commit d99c374

Please sign in to comment.