summaryrefslogtreecommitdiff
path: root/chat/pidgin-silc/Makefile
diff options
context:
space:
mode:
authortnn <tnn@pkgsrc.org>2007-08-14 01:16:26 +0000
committertnn <tnn@pkgsrc.org>2007-08-14 01:16:26 +0000
commit2e416a869254b923551c312ae842737d7b1f87fe (patch)
treee228f8004cd567ada5bfccaa849cc6d748b7e470 /chat/pidgin-silc/Makefile
parent97cad8f63b9ceaad5feddfc451deb1cf4b3cdbda (diff)
downloadpkgsrc-2e416a869254b923551c312ae842737d7b1f87fe.tar.gz
Import pidgin-silc-2.1.0. This is the SILC protocol plugin for chat/pidgin.
Diffstat (limited to 'chat/pidgin-silc/Makefile')
-rw-r--r--chat/pidgin-silc/Makefile53
1 files changed, 53 insertions, 0 deletions
diff --git a/chat/pidgin-silc/Makefile b/chat/pidgin-silc/Makefile
new file mode 100644
index 00000000000..757b545a04c
--- /dev/null
+++ b/chat/pidgin-silc/Makefile
@@ -0,0 +1,53 @@
+# $NetBSD: Makefile,v 1.1.1.1 2007/08/14 01:16:26 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"
+
+CONFIGURE_ARGS+= --disable-gevolution
+CONFIGURE_ARGS+= --disable-gtkui
+CONFIGURE_ARGS+= --disable-consoleui
+
+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.2.tar.gz= \
+ http://www.silcnet.org/download/toolkit/sources/
+DISTFILES+= pidgin-${PIDGIN_VERSION}.tar.bz2 silc-toolkit-1.1.2.tar.gz
+CFLAGS+= -fPIC
+pre-configure:
+ # Build libsilc statically and install it into the buildlink dir
+ cd ${WRKDIR}/silc-toolkit-1.1.2 && ${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.2/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
+
+.include "../../chat/libpurple/buildlink3.mk"
+.include "../../converters/libiconv/buildlink3.mk"
+.include "../../devel/GConf2/schemas.mk"
+.include "../../devel/glib2/buildlink3.mk"
+#.include "../../devel/silc-toolkit/buildlink3.mk"
+.include "../../textproc/libxml2/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"