2008-08-21 01:59:01 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.26 2008/08/21 05:59:01 brad Exp $
|
2007-05-12 11:19:35 -04:00
|
|
|
|
|
|
|
SHARED_ONLY= Yes
|
|
|
|
|
2007-09-01 16:11:21 -04:00
|
|
|
COMMENT= multi-protocol instant messaging client
|
2007-05-12 11:19:35 -04:00
|
|
|
|
2008-08-21 01:59:01 -04:00
|
|
|
DISTNAME= pidgin-2.5.0
|
|
|
|
SHARED_LIBS += jabber 0.0
|
|
|
|
SHARED_LIBS += oscar 0.0
|
|
|
|
SHARED_LIBS += purple 4.0
|
|
|
|
SHARED_LIBS += purple-client 4.0
|
|
|
|
SHARED_LIBS += gnt 4.0
|
2007-05-12 11:19:35 -04:00
|
|
|
CATEGORIES= net
|
|
|
|
|
|
|
|
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
|
2007-12-09 05:56:31 -05:00
|
|
|
WANTLIB= ICE SM X11 Xau Xcomposite Xcursor Xdamage Xdmcp \
|
|
|
|
Xext Xfixes Xi Xinerama Xrandr Xrender Xss atk-1.0 \
|
|
|
|
c cairo crypto dbus-1 expat fontconfig freetype \
|
|
|
|
glib-2.0 glitz gmodule-2.0 gobject-2.0 gthread-2.0 \
|
|
|
|
m ncurses panel pango-1.0 pangocairo-1.0 \
|
2008-06-05 06:24:14 -04:00
|
|
|
pangoft2-1.0 pcre pixman-1 png pthread ssl stdc++ z
|
2007-05-12 11:19:35 -04:00
|
|
|
|
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=pidgin/}
|
|
|
|
|
2008-06-05 06:24:14 -04:00
|
|
|
MODULES= devel/gettext lang/python textproc/intltool
|
2007-05-12 11:19:35 -04:00
|
|
|
|
2008-06-08 10:08:36 -04:00
|
|
|
BUILD_DEPENDS= :gconf2-*:devel/gconf2
|
2007-05-12 11:19:35 -04:00
|
|
|
RUN_DEPENDS+= :dbus-python-*:x11/dbus-python \
|
2007-12-15 16:13:00 -05:00
|
|
|
:py-gtk2-*:x11/py-gtk2 \
|
2008-06-08 10:08:36 -04:00
|
|
|
:desktop-file-utils-*:devel/desktop-file-utils \
|
|
|
|
:gconf2-*:devel/gconf2
|
2007-05-12 11:19:35 -04:00
|
|
|
LIB_DEPENDS+= gdk-x11-2.0,gdk_pixbuf-2.0,gtk-x11-2.0::x11/gtk+2 \
|
|
|
|
startup-notification-1::devel/startup-notification \
|
2007-10-01 18:03:29 -04:00
|
|
|
silc.>=7,silcclient.>=5::devel/silc-toolkit \
|
2007-05-12 11:19:35 -04:00
|
|
|
meanwhile::net/meanwhile \
|
|
|
|
gadu::net/libgadu \
|
|
|
|
xml2::textproc/libxml \
|
|
|
|
dbus-glib-1::x11/dbus-glib
|
|
|
|
|
2008-08-21 01:59:01 -04:00
|
|
|
SUBST_VARS= MODPY_BIN TRUEPREFIX
|
|
|
|
|
2007-05-12 11:19:35 -04:00
|
|
|
USE_X11= Yes
|
|
|
|
USE_LIBTOOL= Yes
|
|
|
|
LIBTOOL_FLAGS+= --tag=disable-static
|
|
|
|
USE_GMAKE= Yes
|
|
|
|
SEPARATE_BUILD= simple
|
|
|
|
CONFIGURE_STYLE= autoconf
|
2007-10-01 18:03:29 -04:00
|
|
|
AUTOCONF_VERSION= 2.61
|
2008-06-05 06:24:14 -04:00
|
|
|
CONFIGURE_ARGS+= --with-gconf-schema-file-dir=${LOCALBASE}/share/schemas/pidgin \
|
|
|
|
--disable-avahi \
|
|
|
|
--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 \
|
|
|
|
--disable-schemas-install \
|
|
|
|
--with-python=${MODPY_BIN}
|
|
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
|
|
|
|
LDFLAGS="-L${LOCALBASE}/lib"
|
|
|
|
|
2007-05-26 15:56:10 -04:00
|
|
|
MAKE_FLAGS+= CFLAGS="${CFLAGS}"
|
|
|
|
|
2008-08-21 01:59:01 -04:00
|
|
|
FLAVORS= audio debug gtkspell
|
2007-05-12 11:19:35 -04:00
|
|
|
FLAVOR?=
|
|
|
|
|
|
|
|
.if ${FLAVOR:L:Maudio}
|
|
|
|
LIB_DEPENDS+= gstreamer-0.10:gstreamer-0.10.*:multimedia/gstreamer-0.10/core
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-gstreamer
|
|
|
|
# --disable-gstreamer is not sufficient
|
|
|
|
MAKE_FLAGS+= GSTREAMER_CFLAGS= GSTREAMER_LIBS=
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${FLAVOR:L:Mdebug}
|
2007-05-16 09:08:15 -04:00
|
|
|
CFLAGS+= -O0
|
|
|
|
CONFIGURE_ARGS+=--enable-debug --disable-mcheck
|
2007-05-12 11:19:35 -04:00
|
|
|
INSTALL_STRIP=
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${FLAVOR:L:Mgtkspell}
|
|
|
|
LIB_DEPENDS+= gtkspell::textproc/gtkspell
|
|
|
|
WANTLIB+= aspell
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--disable-gtkspell
|
|
|
|
.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>
|