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