2009-06-16 15:31:29 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.44 2009/06/16 19:31:29 ajacoutot 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
|
|
|
|
2009-05-21 11:07:37 -04:00
|
|
|
DISTNAME= pidgin-2.5.6
|
2009-06-16 13:19:41 -04:00
|
|
|
VERSION= 2.5.6
|
|
|
|
DISTNAME= pidgin-${VERSION}
|
|
|
|
|
|
|
|
PKGNAME= pidgin-${VERSION}
|
2009-06-16 15:31:29 -04:00
|
|
|
PKGNAME-main= pidgin-${VERSION}p4
|
|
|
|
FULLPKGNAME-finch= finch-${VERSION}p0
|
|
|
|
FULLPKGNAME-libpurple= libpurple-${VERSION}p0
|
2007-05-12 11:19:35 -04:00
|
|
|
CATEGORIES= net
|
2009-06-16 13:19:41 -04:00
|
|
|
|
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 \
|
|
|
|
purple 4.6 \
|
|
|
|
purple-client 4.6 \
|
|
|
|
gnt 4.6
|
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
|
|
|
|
|
|
|
WANTLIB+= c dbus-1 dbus-glib-1 glib-2.0 gmodule-2.0 gobject-2.0
|
|
|
|
WANTLIB+= gthread-2.0 iconv intl m ncurses pcre pthread xml2 z
|
|
|
|
|
|
|
|
WANTLIB-main+= ${WANTLIB}
|
|
|
|
WANTLIB-main+= X11 Xau Xdmcp ICE SM Xcomposite Xcursor Xdamage Xext Xfixes
|
|
|
|
WANTLIB-main+= Xi Xinerama Xrandr Xrender Xss atk-1.0 cairo expat
|
|
|
|
WANTLIB-main+= fontconfig freetype gdk-x11-2.0 gdk_pixbuf-2.0 gio-2.0 glitz
|
|
|
|
WANTLIB-main+= gtk-x11-2.0 pango-1.0 pangocairo-1.0 pangoft2-1.0 pixman-1
|
|
|
|
WANTLIB-main+= png stdc++
|
|
|
|
|
|
|
|
WANTLIB-libpurple=${WANTLIB} crypto ssl
|
|
|
|
|
|
|
|
WANTLIB-finch= ${WANTLIB} X11 Xau Xdmcp panel
|
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-06-16 13:19:41 -04:00
|
|
|
BUILD_DEPENDS= :dbus-python-*:x11/dbus-python
|
2009-06-16 15:31:29 -04:00
|
|
|
RUN_DEPENDS-main= :dbus-python-*:x11/dbus-python \
|
2009-06-16 13:19:41 -04:00
|
|
|
:py-gtk2-*:x11/py-gtk2 \
|
|
|
|
:desktop-file-utils-*:devel/desktop-file-utils
|
|
|
|
LIB_DEPENDS-main= startup-notification-1::devel/startup-notification \
|
|
|
|
purple::${BUILD_PKGPATH},-libpurple
|
2009-06-16 15:31:29 -04:00
|
|
|
LIB_DEPENDS-finch= purple::${BUILD_PKGPATH},-libpurple
|
|
|
|
RUN_DEPENDS-finch= # empty
|
2009-06-16 13:19:41 -04:00
|
|
|
LIB_DEPENDS-libpurple= silc.>=7,silcclient.>=5::devel/silc-toolkit \
|
|
|
|
meanwhile::net/meanwhile \
|
|
|
|
gadu.>=4::net/libgadu
|
2009-06-16 15:31:29 -04:00
|
|
|
RUN_DEPENDS-libpurple= ${MODGCONF2_RUN_DEPENDS}
|
2009-06-16 13:19:41 -04:00
|
|
|
|
|
|
|
MODGCONF2_SCHEMAS_DIR= pidgin
|
|
|
|
MODGCONF2_LIBDEP= No
|
2009-06-07 01:59:47 -04:00
|
|
|
|
2007-05-12 11:19:35 -04:00
|
|
|
USE_X11= Yes
|
|
|
|
USE_LIBTOOL= Yes
|
|
|
|
LIBTOOL_FLAGS+= --tag=disable-static
|
|
|
|
USE_GMAKE= Yes
|
2009-06-16 13:19:41 -04:00
|
|
|
|
|
|
|
SEPARATE_BUILD= simple
|
2007-05-12 11:19:35 -04:00
|
|
|
CONFIGURE_STYLE= autoconf
|
2007-10-01 18:03:29 -04:00
|
|
|
AUTOCONF_VERSION= 2.61
|
2009-06-07 01:59:47 -04:00
|
|
|
CONFIGURE_ARGS+= --disable-avahi \
|
2009-01-14 05:34:21 -05:00
|
|
|
--disable-doxygen \
|
2008-06-05 06:24:14 -04:00
|
|
|
--disable-gevolution \
|
2007-05-12 11:19:35 -04:00
|
|
|
--disable-gnutls \
|
2008-06-05 06:24:14 -04:00
|
|
|
--disable-nm \
|
2007-05-12 11:19:35 -04:00
|
|
|
--disable-nss \
|
|
|
|
--disable-perl \
|
|
|
|
--disable-tcl \
|
|
|
|
--disable-tk \
|
|
|
|
--disable-cap \
|
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}
|
2009-06-16 13:19:41 -04:00
|
|
|
LIB_DEPENDS-main+= gstreamer-0.10:gstreamer-0.10.*:multimedia/gstreamer-0.10/core
|
|
|
|
LIB_DEPENDS-finch+= gstreamer-0.10:gstreamer-0.10.*:multimedia/gstreamer-0.10/core
|
2007-05-12 11:19:35 -04:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-gstreamer
|
|
|
|
# --disable-gstreamer is not sufficient
|
|
|
|
MAKE_FLAGS+= GSTREAMER_CFLAGS= GSTREAMER_LIBS=
|
|
|
|
.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)
|
|
|
|
CONFIGURE_ARGS+= --enable-debug \
|
|
|
|
--disable-mcheck
|
|
|
|
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>
|