2011-12-13 09:42:55 -05:00
|
|
|
# $OpenBSD: Makefile,v 1.102 2011/12/13 14:42:55 jasper 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-12-13 09:42:55 -05:00
|
|
|
VERSION= 2.10.1
|
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/}
|
2011-12-13 09:42:55 -05:00
|
|
|
EXTRACT_SUFX= .tar.bz2
|
2007-05-12 11:19:35 -04:00
|
|
|
|
2009-05-21 11:07:37 -04:00
|
|
|
SHARED_LIBS= jabber 0.0 \
|
|
|
|
oscar 0.0 \
|
2011-08-22 03:35:34 -04:00
|
|
|
purple 6.1 \
|
|
|
|
purple-client 6.1 \
|
2011-07-22 02:44:45 -04:00
|
|
|
gnt 6.1 \
|
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
|
|
|
|
2011-12-13 09:42:55 -05:00
|
|
|
WANTLIB= c dbus-1 dbus-glib-1 ffi gio-2.0 glib-2.0 gmodule-2.0 \
|
|
|
|
gobject-2.0 gthread-2.0 idn m pcre pthread util xml2 z
|
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 \
|
2011-03-13 13:27:10 -04:00
|
|
|
drm expat fontconfig freetype gdk-x11-2.0 gdk_pixbuf-2.0 \
|
2011-08-22 03:35:34 -04:00
|
|
|
gtk-x11-2.0 pango-1.0 pangocairo-1.0 pangoft2-1.0 pixman-1 \
|
|
|
|
png pthread-stubs purple stdc++ xcb-render xcb-shm xcb \
|
|
|
|
${WANTLIB}
|
2011-07-22 02:44:45 -04:00
|
|
|
WANTLIB-libpurple= crypto gadu>=5 meanwhile ssl silc>=7 silcclient>=5 \
|
2010-11-11 11:27:54 -05:00
|
|
|
${WANTLIB}
|
2011-07-22 02:44:45 -04:00
|
|
|
WANTLIB-finch= X11 ncursesw panelw purple xcb ${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
|
2011-03-13 13:27:10 -04:00
|
|
|
LIB_DEPENDS= devel/glib2
|
2010-11-19 17:31:32 -05:00
|
|
|
RUN_DEPENDS-main= x11/dbus-python \
|
|
|
|
x11/py-gtk2 \
|
2011-12-03 18:04:36 -05:00
|
|
|
devel/desktop-file-utils \
|
|
|
|
x11/gtk+2,-guic
|
2009-09-08 02:35:24 -04:00
|
|
|
LIB_DEPENDS-main= ${LIB_DEPENDS} \
|
2011-03-13 13:27:10 -04:00
|
|
|
x11/gtk+2
|
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} \
|
2011-12-13 09:42:55 -05:00
|
|
|
devel/libidn \
|
2010-11-19 17:31:32 -05:00
|
|
|
devel/silc-toolkit \
|
|
|
|
net/meanwhile \
|
2011-07-22 02:44:45 -04:00
|
|
|
net/libgadu>=1.11.0
|
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
|
|
|
|
USE_GMAKE= Yes
|
|
|
|
CONFIGURE_STYLE= autoconf
|
2011-12-13 09:42:55 -05:00
|
|
|
AUTOCONF_VERSION= 2.68
|
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 \
|
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 \
|
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
|
|
|
|
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}
|
2011-03-10 19:13:04 -05:00
|
|
|
LIB_DEPENDS+= multimedia/gstreamer-0.10/core>=0.10,<=0.11 \
|
|
|
|
multimedia/gstreamer-0.10/plugins-base
|
|
|
|
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
|
|
|
|
|
2011-07-07 04:28:04 -04:00
|
|
|
ARCHIVE_DIR_LIST= finch gnt pidgin purple-2
|
|
|
|
|
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
|
2011-07-07 04:28:04 -04:00
|
|
|
.for dir in ${ARCHIVE_DIR_LIST}
|
|
|
|
@find ${PREFIX}/lib/${dir} -name '*.a' -print | xargs rm
|
2011-12-13 09:42:55 -05:00
|
|
|
@find ${PREFIX}/lib/${dir} -name '*.la' -print | xargs rm
|
2011-07-07 04:28:04 -04:00
|
|
|
.endfor
|
2007-05-12 11:19:35 -04:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|