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