2010-08-30 17:31:33 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.69 2010/08/30 21:31:33 sthen Exp $
|
2007-05-12 11:19:35 -04:00
|
|
|
|
|
|
|
SHARED_ONLY= Yes
|
|
|
|
|
2009-06-16 13:19:41 -04:00
|
|
|
COMMENT-main= multi-protocol instant messaging client
|
|
|
|
COMMENT-finch= multi-protocol instant messaging client, console client
|
|
|
|
COMMENT-libpurple= multi-protocol instant messaging library
|
2007-05-12 11:19:35 -04:00
|
|
|
|
2010-08-18 17:35:59 -04:00
|
|
|
VERSION= 2.7.3
|
2009-06-16 13:19:41 -04:00
|
|
|
DISTNAME= pidgin-${VERSION}
|
2010-07-12 18:07:37 -04:00
|
|
|
PKGNAME-main= pidgin-${VERSION}
|
|
|
|
PKGNAME-finch= finch-${VERSION}
|
|
|
|
PKGNAME-libpurple= libpurple-${VERSION}
|
2010-08-30 17:31:33 -04:00
|
|
|
REVISION-main= 0
|
|
|
|
REVISION-finch= 0
|
|
|
|
REVISION-libpurple= 0
|
2007-05-12 11:19:35 -04:00
|
|
|
CATEGORIES= net
|
2009-01-14 05:34:21 -05:00
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=pidgin/}
|
2007-05-12 11:19:35 -04:00
|
|
|
|
2009-05-21 11:07:37 -04:00
|
|
|
SHARED_LIBS= jabber 0.0 \
|
|
|
|
oscar 0.0 \
|
2010-06-10 16:13:33 -04:00
|
|
|
purple 5.1 \
|
|
|
|
purple-client 5.1 \
|
2010-08-18 17:35:59 -04:00
|
|
|
gnt 6.0 \
|
2009-09-08 02:35:24 -04:00
|
|
|
ymsg 0.0
|
2008-09-13 18:04:40 -04:00
|
|
|
|
2007-05-12 11:19:35 -04:00
|
|
|
HOMEPAGE= http://pidgin.im/
|
|
|
|
|
2007-09-01 16:11:21 -04:00
|
|
|
MAINTAINER= Brad Smith <brad@comstyle.com>
|
2007-05-12 11:19:35 -04:00
|
|
|
|
2008-06-05 06:24:14 -04:00
|
|
|
# GPLv2+
|
2007-05-12 11:19:35 -04:00
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
2009-06-16 13:19:41 -04:00
|
|
|
|
2009-06-16 22:08:35 -04:00
|
|
|
WANTLIB= c dbus-1 dbus-glib-1 glib-2.0 gmodule-2.0 gobject-2.0 \
|
2010-02-28 17:51:56 -05:00
|
|
|
gthread-2.0 m pcre pthread util xml2 z
|
2009-06-16 13:19:41 -04:00
|
|
|
|
2009-09-08 02:35:24 -04:00
|
|
|
WANTLIB-main= X11 Xau Xdmcp ICE SM Xcomposite Xcursor Xdamage Xext \
|
2009-06-16 22:08:35 -04:00
|
|
|
Xfixes Xi Xinerama Xrandr Xrender Xss atk-1.0 cairo \
|
2009-09-08 02:35:24 -04:00
|
|
|
execinfo expat fontconfig freetype gdk-x11-2.0 gdk_pixbuf-2.0 \
|
|
|
|
gio-2.0 glitz gtk-x11-2.0 pango-1.0 pangocairo-1.0 \
|
|
|
|
pangoft2-1.0 pixman-1 png pthread-stubs stdc++ xcb-atom \
|
2010-06-10 16:13:33 -04:00
|
|
|
xcb-aux xcb-event xcb-render xcb-render-util xcb ${WANTLIB}
|
2009-06-16 13:19:41 -04:00
|
|
|
|
2009-06-16 22:08:35 -04:00
|
|
|
WANTLIB-libpurple= crypto ssl ${WANTLIB}
|
2009-06-16 13:19:41 -04:00
|
|
|
|
2009-09-08 02:35:24 -04:00
|
|
|
WANTLIB-finch= X11 Xau Xdmcp ncurses panel pthread-stubs xcb ${WANTLIB}
|
2007-05-12 11:19:35 -04:00
|
|
|
|
2009-05-14 02:51:07 -04:00
|
|
|
MODULES= devel/gettext \
|
|
|
|
textproc/intltool \
|
2009-06-07 01:59:47 -04:00
|
|
|
lang/python \
|
|
|
|
devel/gconf2
|
2007-05-12 11:19:35 -04:00
|
|
|
|
2009-07-20 10:27:05 -04:00
|
|
|
BUILD_DEPENDS= ::x11/dbus-python
|
|
|
|
RUN_DEPENDS-main= ::x11/dbus-python \
|
|
|
|
::x11/py-gtk2 \
|
|
|
|
::devel/desktop-file-utils
|
2009-09-08 02:35:24 -04:00
|
|
|
LIB_DEPENDS-main= ${LIB_DEPENDS} \
|
2010-07-09 02:10:16 -04:00
|
|
|
startup-notification-1:startup-notification->=0.10:devel/startup-notification
|
2009-06-16 15:31:29 -04:00
|
|
|
RUN_DEPENDS-finch= # empty
|
2009-09-08 02:35:24 -04:00
|
|
|
LIB_DEPENDS-finch= ${LIB_DEPENDS} \
|
2010-07-09 02:10:16 -04:00
|
|
|
${MODPY_LIB_DEPENDS}
|
2009-09-08 02:35:24 -04:00
|
|
|
RUN_DEPENDS-libpurple= ${MODGCONF2_RUN_DEPENDS}
|
|
|
|
LIB_DEPENDS-libpurple= ${LIB_DEPENDS} \
|
|
|
|
silc.>=7,silcclient.>=5::devel/silc-toolkit \
|
2009-06-16 13:19:41 -04:00
|
|
|
meanwhile::net/meanwhile \
|
|
|
|
gadu.>=4::net/libgadu
|
|
|
|
|
|
|
|
MODGCONF2_SCHEMAS_DIR= pidgin
|
|
|
|
MODGCONF2_LIBDEP= No
|
2009-06-07 01:59:47 -04:00
|
|
|
|
2009-06-16 22:08:35 -04:00
|
|
|
SEPARATE_BUILD= simple
|
2007-05-12 11:19:35 -04:00
|
|
|
USE_X11= Yes
|
|
|
|
USE_LIBTOOL= Yes
|
|
|
|
LIBTOOL_FLAGS+= --tag=disable-static
|
|
|
|
USE_GMAKE= Yes
|
|
|
|
CONFIGURE_STYLE= autoconf
|
2010-07-07 11:57:48 -04:00
|
|
|
# Should be 2.65
|
2010-04-02 20:21:14 -04:00
|
|
|
AUTOCONF_VERSION= 2.64
|
2009-06-07 01:59:47 -04:00
|
|
|
CONFIGURE_ARGS+= --disable-avahi \
|
2009-09-08 02:35:24 -04:00
|
|
|
--disable-cap \
|
2009-01-14 05:34:21 -05:00
|
|
|
--disable-doxygen \
|
2009-09-08 02:35:24 -04:00
|
|
|
--disable-farsight \
|
2008-06-05 06:24:14 -04:00
|
|
|
--disable-gevolution \
|
2007-05-12 11:19:35 -04:00
|
|
|
--disable-gnutls \
|
2009-09-08 02:35:24 -04:00
|
|
|
--disable-idn \
|
2008-06-05 06:24:14 -04:00
|
|
|
--disable-nm \
|
2007-05-12 11:19:35 -04:00
|
|
|
--disable-nss \
|
|
|
|
--disable-perl \
|
2010-08-18 17:35:59 -04:00
|
|
|
--disable-silent-rules \
|
2007-05-12 11:19:35 -04:00
|
|
|
--disable-tcl \
|
|
|
|
--disable-tk \
|
2009-09-08 02:35:24 -04:00
|
|
|
--disable-vv \
|
2009-05-14 02:51:07 -04:00
|
|
|
--with-python=${MODPY_BIN}
|
2009-06-16 13:19:41 -04:00
|
|
|
# XXX prevent a fatal error at install phase
|
|
|
|
CONFIGURE_ARGS+= --disable-schemas-install
|
2007-05-12 11:19:35 -04:00
|
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
|
2009-05-21 11:07:37 -04:00
|
|
|
LDFLAGS="-L${LOCALBASE}/lib" \
|
|
|
|
ac_cv_lib_db_dbopen=no
|
2007-05-12 11:19:35 -04:00
|
|
|
|
2007-05-26 15:56:10 -04:00
|
|
|
MAKE_FLAGS+= CFLAGS="${CFLAGS}"
|
|
|
|
|
2009-06-16 13:19:41 -04:00
|
|
|
FLAVORS= audio gtkspell
|
2007-05-12 11:19:35 -04:00
|
|
|
FLAVOR?=
|
|
|
|
|
2009-06-16 13:19:41 -04:00
|
|
|
MULTI_PACKAGES= -main -finch -libpurple
|
|
|
|
|
2007-05-12 11:19:35 -04:00
|
|
|
.if ${FLAVOR:L:Maudio}
|
2010-08-01 16:11:48 -04:00
|
|
|
LIB_DEPENDS+= gstreamer-0.10:gstreamer->=0.10,<=0.11:multimedia/gstreamer-0.10/core \
|
|
|
|
gstinterfaces-0.10::multimedia/gstreamer-0.10/plugins-base
|
2010-07-09 02:10:16 -04:00
|
|
|
LIB_DEPENDS-main+= purple:libpurple-${VERSION}-audio:${BUILD_PKGPATH},-libpurple
|
|
|
|
LIB_DEPENDS-finch+= purple:libpurple-${VERSION}-audio:${BUILD_PKGPATH},-libpurple
|
2007-05-12 11:19:35 -04:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-gstreamer
|
2010-07-09 02:10:16 -04:00
|
|
|
LIB_DEPENDS-main+= purple:libpurple-${VERSION}:${BUILD_PKGPATH},-libpurple
|
|
|
|
LIB_DEPENDS-finch+= purple:libpurple-${VERSION}:${BUILD_PKGPATH},-libpurple
|
2007-05-12 11:19:35 -04:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${FLAVOR:L:Mgtkspell}
|
2009-06-16 13:19:41 -04:00
|
|
|
LIB_DEPENDS-main+= gtkspell::textproc/gtkspell
|
|
|
|
WANTLIB-main+= enchant
|
2007-05-12 11:19:35 -04:00
|
|
|
.else
|
2009-06-16 13:19:41 -04:00
|
|
|
CONFIGURE_ARGS+= --disable-gtkspell
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(DEBUG)
|
2010-07-07 11:57:48 -04:00
|
|
|
CONFIGURE_ARGS+= --enable-debug
|
2009-06-16 13:19:41 -04:00
|
|
|
INSTALL_STRIP=
|
2007-05-12 11:19:35 -04:00
|
|
|
.endif
|
|
|
|
|
|
|
|
post-extract:
|
2008-08-21 01:59:01 -04:00
|
|
|
@cp ${FILESDIR}/ssl-openssl.c ${WRKSRC}/libpurple/plugins/ssl
|
|
|
|
|
|
|
|
post-build:
|
|
|
|
cp ${FILESDIR}/purple.service ${WRKSRC}
|
|
|
|
${SUBST_CMD} ${WRKSRC}/libpurple/purple-remote \
|
|
|
|
${WRKSRC}/libpurple/purple-url-handler \
|
|
|
|
${WRKSRC}/purple.service
|
2007-05-12 11:19:35 -04:00
|
|
|
|
|
|
|
post-install:
|
2008-08-21 01:59:01 -04:00
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/dbus-1/services
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/pidgin
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/purple.service \
|
|
|
|
${PREFIX}/share/dbus-1/services
|
2007-05-12 11:19:35 -04:00
|
|
|
mv ${PREFIX}/lib/purple-2/libjabber.* ${PREFIX}/lib
|
|
|
|
mv ${PREFIX}/lib/purple-2/liboscar.* ${PREFIX}/lib
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|