openbsd-ports/net/pidgin/Makefile
jasper 07d14051ac - split pidgin into -main, -finch and -libpurple.
- add a patch that fixing linking with libpurple

this allows the use of libpurple by other IM clients, without the need of having pidgin installed.

some initial input from brad (MAINTAINER), timed out generously on the diff
feedback from ajacoutot@ and sthen@ , thanks!
2009-06-16 17:19:41 +00:00

142 lines
3.8 KiB
Makefile

# $OpenBSD: Makefile,v 1.43 2009/06/16 17:19:41 jasper Exp $
SHARED_ONLY= Yes
COMMENT-main= multi-protocol instant messaging client
COMMENT-finch= multi-protocol instant messaging client, console client
COMMENT-libpurple= multi-protocol instant messaging library
DISTNAME= pidgin-2.5.6
VERSION= 2.5.6
DISTNAME= pidgin-${VERSION}
PKGNAME= pidgin-${VERSION}
PKGNAME-main= pidgin-${VERSION}p3
FULLPKGNAME-finch= finch-${VERSION}
FULLPKGNAME-libpurple= libpurple-${VERSION}
CATEGORIES= net
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=pidgin/}
SHARED_LIBS= jabber 0.0 \
oscar 0.0 \
purple 4.6 \
purple-client 4.6 \
gnt 4.6
HOMEPAGE= http://pidgin.im/
MAINTAINER= Brad Smith <brad@comstyle.com>
# GPLv2+
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
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
MODULES= devel/gettext \
textproc/intltool \
lang/python \
devel/gconf2
BUILD_DEPENDS= :dbus-python-*:x11/dbus-python
RUN_DEPENDS-main+= :dbus-python-*:x11/dbus-python \
: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
LIB_DEPENDS-finch= purple::${BUILD_PKGPATH}
LIB_DEPENDS-libpurple= silc.>=7,silcclient.>=5::devel/silc-toolkit \
meanwhile::net/meanwhile \
gadu.>=4::net/libgadu
MODGCONF2_SCHEMAS_DIR= pidgin
MODGCONF2_LIBDEP= No
USE_X11= Yes
USE_LIBTOOL= Yes
LIBTOOL_FLAGS+= --tag=disable-static
USE_GMAKE= Yes
SEPARATE_BUILD= simple
CONFIGURE_STYLE= autoconf
AUTOCONF_VERSION= 2.61
CONFIGURE_ARGS+= --disable-avahi \
--disable-doxygen \
--disable-gevolution \
--disable-gnutls \
--disable-nm \
--disable-nss \
--disable-perl \
--disable-tcl \
--disable-tk \
--disable-cap \
--with-python=${MODPY_BIN}
# XXX prevent a fatal error at install phase
CONFIGURE_ARGS+= --disable-schemas-install
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib" \
ac_cv_lib_db_dbopen=no
MAKE_FLAGS+= CFLAGS="${CFLAGS}"
FLAVORS= audio gtkspell
FLAVOR?=
MULTI_PACKAGES= -main -finch -libpurple
.if ${FLAVOR:L:Maudio}
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
.else
CONFIGURE_ARGS+= --disable-gstreamer
# --disable-gstreamer is not sufficient
MAKE_FLAGS+= GSTREAMER_CFLAGS= GSTREAMER_LIBS=
.endif
.if ${FLAVOR:L:Mgtkspell}
LIB_DEPENDS-main+= gtkspell::textproc/gtkspell
WANTLIB-main+= enchant
.else
CONFIGURE_ARGS+= --disable-gtkspell
.endif
.if defined(DEBUG)
CONFIGURE_ARGS+= --enable-debug \
--disable-mcheck
INSTALL_STRIP=
.endif
post-extract:
@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
post-install:
${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
mv ${PREFIX}/lib/purple-2/libjabber.* ${PREFIX}/lib
mv ${PREFIX}/lib/purple-2/liboscar.* ${PREFIX}/lib
.include <bsd.port.mk>