2011-03-06 09:13:20 -05:00
|
|
|
# $OpenBSD: Makefile,v 1.88 2011/03/06 14:13:20 steven 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
|
|
|
|
2011-03-06 09:13:20 -05:00
|
|
|
VERSION= 2.7.10
|
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-09-02 05:09:24 -04:00
|
|
|
.for i in -finch -libpurple
|
|
|
|
FULLPKGNAME$i= ${PKGNAME$i}${FLAVOR_EXT:S/-gtkspell//}
|
|
|
|
FULLPKGPATH$i= ${PKGPATH},$i${FLAVOR_EXT:S/-gtkspell//:S/-/,/g}
|
|
|
|
.endfor
|
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
|
|
|
|
2010-11-29 18:18:30 -05:00
|
|
|
WANTLIB-main= GL X11 Xau Xdmcp ICE SM Xcomposite Xcursor Xdamage Xext \
|
|
|
|
Xfixes Xi Xinerama Xrandr Xrender Xss Xxf86vm atk-1.0 cairo \
|
|
|
|
drm execinfo expat fontconfig freetype gdk-x11-2.0 \
|
|
|
|
gdk_pixbuf-2.0 gio-2.0 gtk-x11-2.0 pango-1.0 pangocairo-1.0 \
|
2009-09-08 02:35:24 -04:00
|
|
|
pangoft2-1.0 pixman-1 png pthread-stubs stdc++ xcb-atom \
|
2010-11-29 18:18:30 -05:00
|
|
|
startup-notification-1 purple xcb-aux xcb-event xcb-render \
|
|
|
|
xcb-shm xcb ${WANTLIB}
|
2009-06-16 13:19:41 -04:00
|
|
|
|
2010-11-19 17:31:32 -05:00
|
|
|
WANTLIB-libpurple= crypto ssl silc>=7 silcclient>=5 meanwhile gadu>=4 \
|
2010-11-11 11:27:54 -05:00
|
|
|
${WANTLIB}
|
2009-06-16 13:19:41 -04:00
|
|
|
|
2010-11-29 18:18:30 -05:00
|
|
|
WANTLIB-finch= X11 Xau Xdmcp ncursesw panelw pthread-stubs xcb purple \
|
|
|
|
${WANTLIB} ${MODPY_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
|
|
|
|
2010-11-19 17:31:32 -05: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-11-19 17:31:32 -05:00
|
|
|
devel/startup-notification>=0.10
|
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} \
|
2010-11-19 17:31:32 -05:00
|
|
|
devel/silc-toolkit \
|
|
|
|
net/meanwhile \
|
|
|
|
net/libgadu
|
2009-06-16 13:19:41 -04:00
|
|
|
|
|
|
|
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_LIBTOOL= Yes
|
|
|
|
LIBTOOL_FLAGS+= --tag=disable-static
|
|
|
|
USE_GMAKE= Yes
|
|
|
|
CONFIGURE_STYLE= autoconf
|
2010-10-24 15:17:31 -04:00
|
|
|
# Should be 2.67
|
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}"
|
|
|
|
|
2010-10-28 06:10:24 -04:00
|
|
|
FLAVORS= audio debug gtkspell
|
2010-11-04 03:18:54 -04:00
|
|
|
FLAVOR?=
|
2007-05-12 11:19:35 -04:00
|
|
|
|
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-11-19 17:31:32 -05:00
|
|
|
LIB_DEPENDS+= gstreamer->=0.10,<=0.11:multimedia/gstreamer-0.10/core \
|
|
|
|
multimedia/gstreamer-0.10/plugins-base
|
2010-11-11 11:27:54 -05:00
|
|
|
WANTLIB += gstreamer-0.10 gstinterfaces-0.10
|
2010-11-19 17:31:32 -05:00
|
|
|
LIB_DEPENDS-main+= libpurple-${VERSION}-audio:${BUILD_PKGPATH},-libpurple
|
|
|
|
LIB_DEPENDS-finch+= libpurple-${VERSION}-audio:${BUILD_PKGPATH},-libpurple
|
2007-05-12 11:19:35 -04:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-gstreamer
|
2010-11-19 17:31:32 -05:00
|
|
|
LIB_DEPENDS-main+= libpurple-${VERSION}:${BUILD_PKGPATH},-libpurple
|
|
|
|
LIB_DEPENDS-finch+= libpurple-${VERSION}:${BUILD_PKGPATH},-libpurple
|
2007-05-12 11:19:35 -04:00
|
|
|
.endif
|
|
|
|
|
2010-10-28 06:10:24 -04:00
|
|
|
.if ${FLAVOR:L:Mdebug}
|
|
|
|
CONFIGURE_ARGS+= --enable-debug
|
|
|
|
DEBUG= -O0 -g
|
|
|
|
.endif
|
|
|
|
|
2007-05-12 11:19:35 -04:00
|
|
|
.if ${FLAVOR:L:Mgtkspell}
|
2010-11-19 17:31:32 -05:00
|
|
|
LIB_DEPENDS-main+= textproc/gtkspell
|
2010-11-11 11:27:54 -05:00
|
|
|
WANTLIB-main+= enchant gtkspell
|
2007-05-12 11:19:35 -04:00
|
|
|
.else
|
2009-06-16 13:19:41 -04:00
|
|
|
CONFIGURE_ARGS+= --disable-gtkspell
|
|
|
|
.endif
|
|
|
|
|
2007-05-12 11:19:35 -04:00
|
|
|
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}
|
2011-03-06 09:13:20 -05:00
|
|
|
@${SUBST_CMD} ${WRKSRC}/libpurple/purple-remote \
|
2008-08-21 01:59:01 -04:00
|
|
|
${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>
|