예제 #1
0
def configure(ctx):
    path, version = get_pkg_path_and_version("pidgin-sipe")
    
    ctx.env.SIPE_PATH = path
    ctx.env.SIPE_VERSION = version

    ctx.env.append_value("DEFINES_SIPE_BUILD", "HAVE_CONFIG_H")
    ctx.env.append_value("INCLUDES_SIPE_BUILD",
                            ["pidgin-sipe_config",
                             join(ctx.env.SIPE_PATH, "src", "api")])

    headers = ["dlfcn", "inttypes", "langinfo", "locale", "memory", "stdint",
               "stdlib", "strings", "string", "sys/sockio", "sys/stat",
               "sys/types", "unistd"]
    for i in headers:
        ctx.check_cc(header_name=i + ".h", mandatory=False,
                      auto_add_header_name=True)

    ctx.define("ENABLE_NLS", 1)
    ctx.define("HAVE_DCGETTEXT", 1)
    ctx.define("HAVE_GETTEXT", 1)
    ctx.define("HAVE_BIND_TEXTDOMAIN_CODESET", 1)
    ctx.define("STDC_HEADERS", 1)
    ctx.define("LOCALEDIR", "")
    ctx.define("PACKAGE_NAME", "pidgin-sipe")
    ctx.define("PACKAGE_STRING", "pidgin-sipe %s" % version)
    ctx.define("PACKAGE_TARNAME", "pidgin-sipe")
    ctx.define("PACKAGE_URL", "http://sipe.sourceforge.net")
    ctx.define("PACKAGE_VERSION", version)
    ctx.define("PACKAGE_BUGREPORT",
                "https://sourceforge.net/tracker/?atid=949931&group_id=194563")
    ctx.define("SIPE_TRANSLATIONS_URL",
                "https://www.transifex.net/projects/p/pidgin-sipe/r/mob/")

    ctx.write_config_header("pidgin-sipe_config/config.h")
예제 #2
0
def build(ctx):
    ctx.load("account", tooldir="build_lib")
    for name in "msn icq jabber novell yahoo sipe sametime".split(" "):
        use = ["BASE", "GLIB", "XML", "GNUTLS", "PURPLE_BUILD"]
        root_path = join(ctx.env.PURPLE_PATH, "protocols")
        icon_path = join(ctx.env.PIDGIN_PATH, "pidgin", "pixmaps", "protocols")
        exclude = ["win32"]
        includes = []
        path = None
        if name == "jabber":
            # bld.load("sasl", tooldir="build_lib")
            # use += ["sasl", "SASL_BUILD"]
            exclude += ["auth_cyrus.c"]
        elif name == "icq":
            exclude += ["libaim.c"]
            path = "oscar"
        elif name == "aim":
            exclude += ["libicq.c"]
            path = "oscar"
        elif name == "yahoo":
            exclude += ["libyahoojp.c"]

        elif name == "sipe":
            ctx.load("sipe", tooldir="build_lib")
            root_path = join(ctx.env.SIPE_PATH, "src")
            exclude += ["purple-media.c", "tests*.c"]
            path = "purple"
            use = ["SIPE_BUILD",  "libsipe"] + use
            icon_path = join(ctx.env.SIPE_PATH, "pixmaps")

        elif name == "sametime":
            mw_root, mw_version = get_pkg_path_and_version("meanwhile")
            ctx.objects(target="meanwhile",
                        source=ant_glob(ctx, mw_root, "src", "**", "*.c"),
                        use="GLIB"
                       )
            includes.append(join(mw_root, "src"))
            use = ["meanwhile"] + use

        root_path = join(root_path, path if path else name)
        ctx.shlib(target="protocols/%s" % name,
                  source=ant_glob(ctx, root_path, "**", "*.c", exclude=exclude),
                  includes=[root_path] + includes,
                  use=" ".join(use),
                  install_path="${PLUGIN_IPKG_PATH}"
                 )

        for n in _get_accounts(name):
            ctx(
                    features="account",
                    target="accounts",
                    source="accounts/%s.json" % n,
                    install_path="/usr/palm/accounts",
                    prototype="accounts/prototype.json",
                    defines={"icon_path": icon_path}
                )
예제 #3
0
def build(ctx):
    ctx.load("account", tooldir="build_lib")
    for name in "msn icq jabber novell yahoo sipe sametime".split(" "):
        use = ["BASE", "GLIB", "XML", "GNUTLS", "PURPLE_BUILD"]
        root_path = join(ctx.env.PURPLE_PATH, "protocols")
        icon_path = join(ctx.env.PIDGIN_PATH, "pidgin", "pixmaps", "protocols")
        exclude = ["win32"]
        includes = []
        path = None
        if name == "jabber":
            # bld.load("sasl", tooldir="build_lib")
            # use += ["sasl", "SASL_BUILD"]
            exclude += ["auth_cyrus.c"]
        elif name == "icq":
            exclude += ["libaim.c"]
            path = "oscar"
        elif name == "aim":
            exclude += ["libicq.c"]
            path = "oscar"
        elif name == "yahoo":
            exclude += ["libyahoojp.c"]

        elif name == "sipe":
            ctx.load("sipe", tooldir="build_lib")
            root_path = join(ctx.env.SIPE_PATH, "src")
            exclude += ["purple-media.c", "tests*.c"]
            path = "purple"
            use = ["SIPE_BUILD", "libsipe"] + use
            icon_path = join(ctx.env.SIPE_PATH, "pixmaps")

        elif name == "sametime":
            mw_root, mw_version = get_pkg_path_and_version("meanwhile")
            ctx.objects(target="meanwhile",
                        source=ant_glob(ctx, mw_root, "src", "**", "*.c"),
                        use="GLIB")
            includes.append(join(mw_root, "src"))
            use = ["meanwhile"] + use

        root_path = join(root_path, path if path else name)
        ctx.shlib(target="protocols/%s" % name,
                  source=ant_glob(ctx, root_path, "**", "*.c",
                                  exclude=exclude),
                  includes=[root_path] + includes,
                  use=" ".join(use),
                  install_path="${PLUGIN_IPKG_PATH}")

        for n in _get_accounts(name):
            ctx(features="account",
                target="accounts",
                source="accounts/%s.json" % n,
                install_path="/usr/palm/accounts",
                prototype="accounts/prototype.json",
                defines={"icon_path": icon_path})
예제 #4
0
def configure(ctx):
    path, version = get_pkg_path_and_version("pidgin-sipe")

    ctx.env.SIPE_PATH = path
    ctx.env.SIPE_VERSION = version

    ctx.env.append_value("DEFINES_SIPE_BUILD", "HAVE_CONFIG_H")
    ctx.env.append_value(
        "INCLUDES_SIPE_BUILD",
        ["pidgin-sipe_config",
         join(ctx.env.SIPE_PATH, "src", "api")])

    headers = [
        "dlfcn", "inttypes", "langinfo", "locale", "memory", "stdint",
        "stdlib", "strings", "string", "sys/sockio", "sys/stat", "sys/types",
        "unistd"
    ]
    for i in headers:
        ctx.check_cc(header_name=i + ".h",
                     mandatory=False,
                     auto_add_header_name=True)

    ctx.define("ENABLE_NLS", 1)
    ctx.define("HAVE_DCGETTEXT", 1)
    ctx.define("HAVE_GETTEXT", 1)
    ctx.define("HAVE_BIND_TEXTDOMAIN_CODESET", 1)
    ctx.define("STDC_HEADERS", 1)
    ctx.define("LOCALEDIR", "")
    ctx.define("PACKAGE_NAME", "pidgin-sipe")
    ctx.define("PACKAGE_STRING", "pidgin-sipe %s" % version)
    ctx.define("PACKAGE_TARNAME", "pidgin-sipe")
    ctx.define("PACKAGE_URL", "http://sipe.sourceforge.net")
    ctx.define("PACKAGE_VERSION", version)
    ctx.define("PACKAGE_BUGREPORT",
               "https://sourceforge.net/tracker/?atid=949931&group_id=194563")
    ctx.define("SIPE_TRANSLATIONS_URL",
               "https://www.transifex.net/projects/p/pidgin-sipe/r/mob/")

    ctx.write_config_header("pidgin-sipe_config/config.h")
예제 #5
0
def configure(conf):
    conf.load('compiler_c intltool')

    path, version = get_pkg_path_and_version("pidgin")
    conf.env.PIDGIN_PATH = path
    conf.env.PURPLE_PATH = join(path, "libpurple")
    conf.env.PURPLE_VERSION = version

    if conf.env.PURPLE_SSL:
        # Order matters: It seems like ssl-gnutls has to be loaded before
        # core-ssl to be found (see ssl.c:probe_ssl_plugins)
        conf.env.PURPLE_PLUGINS += ["ssl-" + conf.env.PURPLE_SSL, "ssl"]

        conf.env.append_value("LIB_PURPLE_BUILD", ["gnutls"])

    plugins = conf.env.PURPLE_PLUGINS

    conf.check_cfg(atleast_pkgconfig_version='0.1')
    conf.check_cfg(package='libxml-2.0',
                   uselib_store='XML',
                   args=['--cflags', '--libs'])

    conf.env.append_value("DEFINES_PURPLE_BUILD", ["HAVE_CONFIG_H"])
    conf.env.append_value("INCLUDES_PURPLE_BUILD",
                          ["libpurple_config", conf.env.PURPLE_PATH])
    conf.env.append_value("LIB_PURPLE_BUILD", ["resolv"])

    # We are going to build a shared library
    conf.env.append_value("CFLAGS_PURPLE_BUILD", ["-fPIC"])

    headers = [
        "arpa/nameser_compat", "fcntl", "sys/time", "unistd", "locale",
        "libintl", "signal", "stdint", "regex"
    ]

    for i in headers:
        conf.check_cc(header_name=i + ".h",
                      mandatory=False,
                      auto_add_header_name=True)

    conf.define("PURPLE_PLUGINS", 1)
    conf.define("HAVE_GETIFADDRS", 1)
    conf.define("HAVE_INET_NTOP", 1)
    conf.define("HAVE_INET_ATON", 1)
    conf.define("HAVE_GETADDRINFO", 1)
    conf.define("HAVE_STRUCT_TM_TM_ZONE", 1)
    conf.define("HAVE_TM_GMTOFF", 1)
    conf.define("HAVE_TIMEZONE", 1)
    conf.define("HAVE_TIMGM", 1)
    conf.define("HAVE_STRFTIME_Z_FORMAT", 1)
    conf.define("HAVE_FILENO", 1)
    conf.define("HAVE_STRUCT_SOCKADDR_SA_LEN", 1)
    conf.define("VERSION", conf.env.PURPLE_VERSION)
    conf.define("DISPLAY_VERSION", conf.env.PURPLE_VERSION)
    conf.define("DATADIR", ".")
    conf.define("SYSCONFDIR", ".")
    conf.define("PACKAGE_NAME", "libpurple")
    conf.define("HAVE_SSL", 1)
    conf.define("HAVE_ICONV", 1)
    conf.define("SIZEOF_TIME_T", 4, quote=False)
    conf.define("HAVE_CONFIG_H", 1, quote=False)
    conf.define("HAVE_GNUTLS_PRIORITY_FUNCS", 1)
    conf.define("_GNU_SOURCE", 1, quote=False)

    conf.define("SSL_CERTIFICATES_DIR",
                join(conf.env.APP_PATH, "share", "ca-certs"))
    conf.define("LIBDIR", conf.env.PLUGIN_PATH)

    conf.define("ENABLE_NLS", 1, quote=False)
    conf.define("PACKAGE", "libpurple")
    conf.define("LOCALEDIR", join(conf.env.APP_PATH, "share", "locale"))

    conf.define("STATIC_PROTO_INIT",
                "void static_proto_init() {}",
                quote=False)
    conf.write_config_header('libpurple_config/config.h')

    conf.load('protocols', tooldir=conf.env.TOOLDIR)
예제 #6
0
def configure(conf):
    conf.load('compiler_c intltool')

    path, version = get_pkg_path_and_version("pidgin")
    conf.env.PIDGIN_PATH = path
    conf.env.PURPLE_PATH = join(path, "libpurple")
    conf.env.PURPLE_VERSION = version

    if conf.env.PURPLE_SSL:
        # Order matters: It seems like ssl-gnutls has to be loaded before
        # core-ssl to be found (see ssl.c:probe_ssl_plugins)
        conf.env.PURPLE_PLUGINS += ["ssl-" + conf.env.PURPLE_SSL, "ssl"]

        conf.env.append_value("LIB_PURPLE_BUILD", ["gnutls"])

    plugins = conf.env.PURPLE_PLUGINS

    conf.check_cfg(atleast_pkgconfig_version='0.1')
    conf.check_cfg(package='libxml-2.0', uselib_store='XML',
                   args=['--cflags', '--libs'])

    conf.env.append_value("DEFINES_PURPLE_BUILD", ["HAVE_CONFIG_H"])
    conf.env.append_value("INCLUDES_PURPLE_BUILD", ["libpurple_config",
                                                    conf.env.PURPLE_PATH])
    conf.env.append_value("LIB_PURPLE_BUILD", ["resolv"])

    # We are going to build a shared library
    conf.env.append_value("CFLAGS_PURPLE_BUILD", ["-fPIC"])

    headers = ["arpa/nameser_compat", "fcntl", "sys/time",
               "unistd", "locale", "libintl", "signal", "stdint", "regex"]

    for i in headers:
        conf.check_cc(header_name=i + ".h", mandatory=False,
                      auto_add_header_name=True)

    conf.define("PURPLE_PLUGINS", 1)
    conf.define("HAVE_GETIFADDRS", 1)
    conf.define("HAVE_INET_NTOP", 1)
    conf.define("HAVE_INET_ATON", 1)
    conf.define("HAVE_GETADDRINFO", 1)
    conf.define("HAVE_STRUCT_TM_TM_ZONE", 1)
    conf.define("HAVE_TM_GMTOFF", 1)
    conf.define("HAVE_TIMEZONE", 1)
    conf.define("HAVE_TIMGM", 1)
    conf.define("HAVE_STRFTIME_Z_FORMAT", 1)
    conf.define("HAVE_FILENO", 1)
    conf.define("HAVE_STRUCT_SOCKADDR_SA_LEN", 1)
    conf.define("VERSION", conf.env.PURPLE_VERSION)
    conf.define("DISPLAY_VERSION", conf.env.PURPLE_VERSION)
    conf.define("DATADIR", ".")
    conf.define("SYSCONFDIR", ".")
    conf.define("PACKAGE_NAME", "libpurple")
    conf.define("HAVE_SSL", 1)
    conf.define("HAVE_ICONV", 1)
    conf.define("SIZEOF_TIME_T", 4, quote=False)
    conf.define("HAVE_CONFIG_H", 1, quote=False)
    conf.define("HAVE_GNUTLS_PRIORITY_FUNCS", 1)
    conf.define("_GNU_SOURCE", 1, quote=False)

    conf.define("SSL_CERTIFICATES_DIR",
            join(conf.env.APP_PATH, "share", "ca-certs")
    )
    conf.define("LIBDIR", conf.env.PLUGIN_PATH)

    conf.define("ENABLE_NLS", 1, quote=False)
    conf.define("PACKAGE", "libpurple")
    conf.define("LOCALEDIR",
                join(conf.env.APP_PATH, "share", "locale")
    )

    conf.define("STATIC_PROTO_INIT", "void static_proto_init() {}", quote=False)
    conf.write_config_header('libpurple_config/config.h')

    conf.load('protocols', tooldir=conf.env.TOOLDIR)