pkgsrc/chat/pidgin-silc/Makefile
tnn 5908229cb6 Update pidgin and friends to 2.4.3. Done during pkgsrc freeze because of:
i) CVE-2008-2927 fix
ii) the previous version was being rejected from the ICQ network.
version 2.4.3 (07/01/2008):
libpurple:
* Yahoo! Japan now uses UTF-8, matching the behavior of official clients
  and restoring compatibility with the web messenger (Yusuke Odate)
* Setting your buddy icon once again works for Yahoo! accounts.
* Fixes in the Yahoo! protocol to prevent a double free, crashes on
  aliases, and alias functionality
* Fix crashes in the bonjour protocol
* Always use UTF-8 for Yahoo! (#5973)
* Fix a crash when the given jabber id is invalid.
* Make the IRC "unknown message" debugging messages UTF-8 safe.
* Fix connecting to ICQ
* Fix a memleak when handling jabber xforms.
Pidgin:
* Include the send button plugin in the win32 build
* Various memory leak fixes
2008-07-11 07:39:20 +00:00

52 lines
1.8 KiB
Makefile

# $NetBSD: Makefile,v 1.8 2008/07/11 07:39:21 tnn Exp $
#
PKGNAME= pidgin-silc-${PIDGIN_VERSION}
COMMENT= SILC plugin for the Pidgin instant messenger
PKG_DESTDIR_SUPPORT= user-destdir
.include "../../chat/libpurple/Makefile.common"
USE_TOOLS+= msgfmt
BUILD_DIRS= libpurple/protocols/silc
# Because pkgsrc's silc-toolkit is too old, we have to jump through some very,
# very, VERY nasty hoops to build this package. Hopefully this hack can be
# removed soon.
BUNDLE_SILC=yes
.if defined(BUNDLE_SILC)
DISTINFO_FILE= ${.CURDIR}/../../chat/pidgin-silc/distinfo
SITES.silc-toolkit-1.1.7.tar.gz= \
http://www.silcnet.org/download/toolkit/sources/
DISTFILES+= pidgin-${PIDGIN_VERSION}.tar.bz2 silc-toolkit-1.1.7.tar.gz
CFLAGS+= -fPIC
pre-configure:
# Build libsilc statically and install it into the buildlink dir
cd ${WRKDIR}/silc-toolkit-1.1.7 && ${SETENV} ${CONFIGURE_ENV} \
./configure --disable-asm --enable-static --disable-shared \
--without-libtoolfix --prefix=${BUILDLINK_DIR} && \
${SETENV} ${MAKE_ENV} gmake && \
${SETENV} ${MAKE_ENV} gmake install && \
cp ${WRKDIR}/silc-toolkit-1.1.7/lib/.libs/*.a \
${WRKSRC}/libpurple/protocols/silc
SUBST_CLASSES+= linkage
SUBST_STAGE.linkage= post-configure
SUBST_MESSAGE.linkage= Fixing static linkage
SUBST_FILES.linkage= libpurple/protocols/silc/Makefile
SUBST_SED.linkage= -e 's/-lsilcclient -lsilc/-Wl,--whole-archive,libsilcclient.a,libsilc.a,--no-whole-archive/'
.endif
BUILDLINK_API_DEPENDS.libpurple+= libpurple-${PIDGIN_VERSION}{,nb*}
.include "../../chat/libpurple/buildlink3.mk"
.include "../../converters/libiconv/buildlink3.mk"
.include "../../devel/GConf/schemas.mk"
.include "../../devel/glib2/buildlink3.mk"
#.include "../../devel/silc-toolkit/buildlink3.mk"
.include "../../textproc/libxml2/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"