5089N/A#
5089N/A# CDDL HEADER START
5089N/A#
5089N/A# The contents of this file are subject to the terms of the
5089N/A# Common Development and Distribution License (the "License").
5089N/A# You may not use this file except in compliance with the License.
5089N/A#
5089N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
5089N/A# or http://www.opensolaris.org/os/licensing.
5089N/A# See the License for the specific language governing permissions
5089N/A# and limitations under the License.
5089N/A#
5089N/A# When distributing Covered Code, include this CDDL HEADER in each
5089N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
5089N/A# If applicable, add the following below this CDDL HEADER, with the
5089N/A# fields enclosed by brackets "[]" replaced with your own identifying
5089N/A# information: Portions Copyright [yyyy] [name of copyright owner]
5089N/A#
5089N/A# CDDL HEADER END
5089N/A#
5680N/A
5680N/A#
5290N/A# Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved.
5089N/A#
5680N/ABUILD_BITS= 64
5089N/Ainclude ../../../make-rules/shared-macros.mk
5089N/A
5089N/ACOMPONENT_NAME= pidgin
6557N/ACOMPONENT_VERSION= 2.11.0
5089N/ACOMPONENT_PROJECT_URL= http://www.pidgin.im
5089N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.bz2
5089N/ACOMPONENT_ARCHIVE_HASH= \
6557N/A sha256:f72613440586da3bdba6d58e718dce1b2c310adf8946de66d8077823e57b3333
5089N/ACOMPONENT_ARCHIVE_URL= http://downloads.sourceforge.net/$(COMPONENT_NAME)/$(COMPONENT_ARCHIVE)
5089N/A
6557N/ATPNO= 30500
5089N/A
5385N/A# Cyrus SASL is S12-only (at least for evaluation builds).
5385N/Aifeq ($(BUILD_TYPE), evaluation)
5531N/ABUILD_64=
5531N/AINSTALL_64=
5385N/APUBLISH_STAMP=
5385N/Aendif
5385N/A
5680N/ATEST_TARGET= $(NO_TESTS)
5680N/Ainclude $(WS_MAKE_RULES)/common.mk
5089N/A
5089N/A# Need to pick up the Studio compiler as some Makefiles just use "cc".
5089N/A# Need to pick up the GNU version of xgettext.
5680N/APATH=$(dir $(CC)):$(SPRO_VROOT)/bin:$(GNUBIN):$(USRBINDIR)
5089N/A
5089N/ACFLAGS += -DG_IMPLEMENT_INLINES -DG_HAVE_ISO_VARARGS
5089N/A
5089N/ACOMPONENT_PREP_ACTION = \
5089N/A (cd $(@D) ; \
5089N/A glib-gettextize -f ; \
5089N/A libtoolize --force ; \
5089N/A intltoolize --force --copy --automake ; \
5089N/A aclocal -I . ; \
5089N/A autoheader ; \
5089N/A automake -a -c -f ; \
5089N/A autoconf )
5089N/A
5089N/A# Needed to get libpurple to link properly.
5089N/ALIBS += -lresolv
5089N/ACONFIGURE_ENV += LIBS="$(LIBS)"
5935N/A
5795N/ACONFIGURE_ENV += "ac_cv_path_perlpath=$(PERL)"
5517N/A
5290N/ACONFIGURE_OPTIONS += --enable-cyrus-sasl
6664N/ACONFIGURE_OPTIONS += --enable-nss
6664N/ACONFIGURE_OPTIONS += --with-nspr-includes=/usr/include/mps
6664N/ACONFIGURE_OPTIONS += --with-nspr-libs=/usr/lib/mps/64
6664N/ACONFIGURE_OPTIONS += --with-nss-includes=/usr/include/mps
6664N/ACONFIGURE_OPTIONS += --with-nss-libs=/usr/lib/mps/64
6664N/ACONFIGURE_OPTIONS += --disable-gnutls
5089N/ACONFIGURE_OPTIONS += --enable-gnome-keyring
5089N/ACONFIGURE_OPTIONS += --disable-gevolution
5089N/ACONFIGURE_OPTIONS += --enable-cap
5089N/ACONFIGURE_OPTIONS += --disable-meanwhile
5089N/ACONFIGURE_OPTIONS += --disable-nm
6728N/ACONFIGURE_OPTIONS += --enable-consoleui
6728N/ACONFIGURE_OPTIONS += --with-ncurses-headers=/usr/include/ncurses
5089N/ACONFIGURE_OPTIONS += --disable-vv
5879N/A# 23200148 undo this once 23169155 Move developer/gnome/gettext to Userland
5879N/ACONFIGURE_OPTIONS += INTLTOOL_MERGE="$(PERL) /usr/bin/intltool-merge"
5089N/A
6728N/A# We have two implementations of libcurses in Solaris. finch needs to use the
6728N/A# ncurses one. The curses implementations in turn, use libpanel, but the
6728N/A# ncurses one is under /usr/gnu/lib. To make sure that it correctly uses that
6728N/A# one, and not the one under /usr/lib, we need to remove all occurences of
6728N/A# -L/usr/lib/$(MACH64), -L/usr/lib, -L/lib/$(MACH64) and -L/lib from all
6728N/A# Makefiles.
6728N/ACOMPONENT_POST_CONFIGURE_ACTION = \
6728N/A (cd $(@D) ; \
6728N/A mlist=`/usr/bin/find . -name 'Makefile'` ; \
6728N/A echo $$mlist ; \
6728N/A for f in $$mlist ; do \
6728N/A $(GSED) -i \
6728N/A -e 's|-L/usr/lib/$(MACH64) ||g' \
6728N/A -e 's|-L/usr/lib ||g' \
6728N/A -e 's|-L/lib/$(MACH64) ||g' \
6728N/A -e 's|-L/lib ||g' \
6728N/A $$f ; \
6728N/A done)
6728N/A
5089N/A# Always show the build and link lines for easier debugging.
5089N/ACOMPONENT_BUILD_ARGS += V=1
5089N/A
6637N/A# Prevent build problems with package_revision.h with "hg id ..." in the main
6637N/A# pidgin Makefile, if the user has color.mode=terminfo in their ~/.hgrc file.
6637N/ACOMPONENT_BUILD_ARGS += HGPLAIN=
6637N/ACOMPONENT_BUILD_ARGS += HGRCPATH=/dev/null
6637N/A
7366N/AREQUIRED_PACKAGES += communication/im/pidgin-gnome-keyring
5089N/AREQUIRED_PACKAGES += database/sqlite-3
5089N/AREQUIRED_PACKAGES += library/desktop/atk
5089N/AREQUIRED_PACKAGES += library/desktop/cairo
5089N/AREQUIRED_PACKAGES += library/desktop/gdk-pixbuf
6557N/AREQUIRED_PACKAGES += library/desktop/gstreamer-1
6621N/AREQUIRED_PACKAGES += library/desktop/gstreamer-1/gst-plugins-good
5089N/AREQUIRED_PACKAGES += library/desktop/gtk2
5089N/AREQUIRED_PACKAGES += library/desktop/gtkspell
5089N/AREQUIRED_PACKAGES += library/desktop/pango
5089N/AREQUIRED_PACKAGES += library/glib2
5089N/AREQUIRED_PACKAGES += library/libidn
5089N/AREQUIRED_PACKAGES += library/libxml2
6728N/AREQUIRED_PACKAGES += library/ncurses
6664N/AREQUIRED_PACKAGES += library/nspr
5795N/AREQUIRED_PACKAGES += library/perl-5/xml-parser
7330N/AREQUIRED_PACKAGES += library/python/dbus-python-27
7330N/A# Remove once all build machines are upgraded to dbus-python-27:
5089N/AREQUIRED_PACKAGES += library/python/python-dbus-27
6664N/AREQUIRED_PACKAGES += library/security/nss
5795N/AREQUIRED_PACKAGES += $(PERL_PKG)
5089N/AREQUIRED_PACKAGES += runtime/python-27
5089N/AREQUIRED_PACKAGES += runtime/tcl-8
5089N/AREQUIRED_PACKAGES += runtime/tk-8
5089N/AREQUIRED_PACKAGES += shell/ksh93
5089N/AREQUIRED_PACKAGES += system/library/libdbus
5089N/AREQUIRED_PACKAGES += system/library/libdbus-glib
5089N/AREQUIRED_PACKAGES += system/library/math
5452N/AREQUIRED_PACKAGES += system/library/security/libsasl2
5089N/AREQUIRED_PACKAGES += system/network/avahi
5089N/AREQUIRED_PACKAGES += x11/library/libice
5089N/AREQUIRED_PACKAGES += x11/library/libsm
5089N/AREQUIRED_PACKAGES += x11/library/libx11
5914N/AREQUIRED_PACKAGES += x11/library/libxext
5089N/AREQUIRED_PACKAGES += x11/library/libxscrnsaver