예제 #1
0
def MAIN_EXTRACT(args):
    set_global(args)

    ops.copyto(ops.path_join(pkg_path, "src/."), output_dir)
    ops.copyto(ops.path_join(pkg_path, "cfg.lua"), output_dir)

    return True
예제 #2
0
파일: CONFIG.py 프로젝트: YuanYuLin/weston
def MAIN_EXTRACT(args):
    set_global(args)

    ops.unTarXz(tarball_pkg, output_dir)
    ops.copyto(ops.path_join(pkg_path, "weston_init.sh"), output_dir)

    return True
예제 #3
0
def MAIN_INSTALL(args):
    set_global(args)

    if ops.isExist(ops.path_join(build_dir, pre_loader_path)):
        ops.copyto(
            ops.path_join(build_dir, pre_loader_path),
            ops.path_join(iopc.getOutputRootDir(),
                          pre_loader_image_output_name))

    ops.copyto(ops.path_join(build_dir, image_path),
               ops.path_join(iopc.getOutputRootDir(), image_output_name))
    '''
    extra_conf = []
    extra_conf.append("modules_install")
    extra_conf.append("ARCH=" + ops.getEnv("ARCH"))
    extra_conf.append("INSTALL_MOD_PATH=" + output_dir)
    iopc.make(build_dir, extra_conf)

    extra_conf = []
    extra_conf.append("firmware_install")
    extra_conf.append("ARCH=" + ops.getEnv("ARCH"))
    extra_conf.append("INSTALL_MOD_PATH=" + output_dir)
    iopc.make(build_dir, extra_conf)
    '''
    return False
예제 #4
0
파일: CONFIG.py 프로젝트: YuanYuLin/libglu
def MAIN_BUILD(args):
    set_global(args)

    ops.mkdir(install_dir)
    ops.mkdir(install_tmp_dir)
    iopc.make(tarball_dir)
    iopc.make_install(tarball_dir)

    ops.mkdir(install_dir)
    ops.mkdir(dst_lib_dir)
    ops.mkdir(dst_usr_local_lib_dir)
    libGLU = "libGLU.so.1.3.1"
    ops.copyto(ops.path_join(install_tmp_dir, "usr/local/lib/" + libGLU),
               dst_lib_dir)
    ops.ln(dst_lib_dir, libGLU, "libGLU.so.1.3")
    ops.ln(dst_lib_dir, libGLU, "libGLU.so.1")
    ops.ln(dst_lib_dir, libGLU, "libGLU.so")

    ops.mkdir(tmp_include_dir)
    ops.copyto(ops.path_join(install_tmp_dir, "usr/local/include/."),
               tmp_include_dir)

    ops.mkdir(dst_pkgconfig_dir)
    #ops.copyto(ops.path_join(src_pkgconfig_dir, '.'), dst_pkgconfig_dir)

    return True
예제 #5
0
파일: CONFIG.py 프로젝트: YuanYuLin/libpng
def MAIN_EXTRACT(args):
    set_global(args)

    ops.unTarXz(tarball_pkg, output_dir)
    ops.copyto(ops.path_join(iopc.getSdkPath(), 'usr/include/libz/.'), tarball_dir)
    #ops.copyto(ops.path_join(pkg_path, "finit.conf"), output_dir)

    return True
예제 #6
0
파일: CONFIG.py 프로젝트: YuanYuLin/libbdb
def MAIN_EXTRACT(args):
    set_global(args)

    ops.mkdir(dst_lib_dir)
    ops.copyto(ops.path_join(src_usr_lib_dir, "libdb-5.3.so"), dst_lib_dir)
    ops.ln(dst_lib_dir, "libdb-5.3.so", "libdb.so")
    #ops.mkdir(dst_include_dir)
    #iopc.installBin(args["pkg_name"], ops.path_join(src_include_dir, "db_185.h"), dst_include_dir)
    #iopc.installBin(args["pkg_name"], ops.path_join(src_include_dir, "db.h"), dst_include_dir)
    return True
예제 #7
0
def MAIN_EXTRACT(args):
    set_global(args)

    ops.mkdir(output_platform_dir)
    for ini in dao_files:
        dao_file = ops.path_join(pkg_path, ini + ".ini")
        ops.copyto(dao_file, output_platform_dir)
        ops.copyto(dao_file, output_dir)

    return True
예제 #8
0
def MAIN_EXTRACT(args):
    set_global(args)

    ops.mkdir(dst_lib_dir)
    lib_so = "libjson-c.so.2.0.0"
    ops.copyto(ops.path_join(src_lib_dir, lib_so), dst_lib_dir)
    ops.ln(dst_lib_dir, lib_so, "libjson-c.so.2.0")
    ops.ln(dst_lib_dir, lib_so, "libjson-c.so.2")
    ops.ln(dst_lib_dir, lib_so, "libjson-c.so")

    return True
예제 #9
0
파일: CONFIG.py 프로젝트: YuanYuLin/libudev
def MAIN_EXTRACT(args):
    set_global(args)

    ops.mkdir(dst_lib_dir)
    ops.copyto(ops.path_join(src_lib_dir, "libudev.so.1.6.5"), dst_lib_dir)
    ops.ln(dst_lib_dir, "libudev.so.1.6.5", "libudev.so.1.6")
    ops.ln(dst_lib_dir, "libudev.so.1.6.5", "libudev.so.1")
    ops.ln(dst_lib_dir, "libudev.so.1.6.5", "libudev.so")

    ops.mkdir(tmp_include_dir)
    ops.copyto(ops.path_join(src_include_dir, 'libudev.h'), tmp_include_dir)
    return True
예제 #10
0
def MAIN_EXTRACT(args):
    set_global(args)

    ops.mkdir(dst_lib_dir)
    ops.copyto(ops.path_join(src_lib_dir, "libuuid.so.1.3.0"), dst_lib_dir)
    ops.ln(dst_lib_dir, "libuuid.so.1.3.0", "libuuid.so.1.3")
    ops.ln(dst_lib_dir, "libuuid.so.1.3.0", "libuuid.so.1")
    ops.ln(dst_lib_dir, "libuuid.so.1.3.0", "libuuid.so")

    ops.mkdir(tmp_include_dir)
    ops.copyto(ops.path_join(src_include_dir, 'uuid'), tmp_include_dir)
    return True
예제 #11
0
def MAIN_BUILD(args):
    set_global(args)

    ops.copyto(ops.path_join(pkg_path, mkinitramfs), iopc.getOutputRootDir())
    CMD = [
        ops.path_join(iopc.getOutputRootDir(), mkinitramfs),
        ops.path_join(iopc.getOutputRootDir(), "rootfs"), initramfs_file
    ]
    res = ops.execCmd(CMD, iopc.getOutputRootDir(), False, None)
    print res

    return False
예제 #12
0
def MAIN_EXTRACT(args):
    set_global(args)

    ops.mkdir(dst_lib_dir)
    ops.copyto(ops.path_join(src_usr_lib_dir, "libtokyocabinet.so.9.11.0"), dst_lib_dir)
    ops.ln(dst_lib_dir, "libtokyocabinet.so.9.11.0", "libtokyocabinet.so.9.11")
    ops.ln(dst_lib_dir, "libtokyocabinet.so.9.11.0", "libtokyocabinet.so.9")
    ops.ln(dst_lib_dir, "libtokyocabinet.so.9.11.0", "libtokyocabinet.so")

    ops.copyto(ops.path_join(src_usr_lib_dir2, "libtokyotyrant.so.3.23.0"), dst_lib_dir)
    ops.ln(dst_lib_dir, "libtokyotyrant.so.3.23.0", "libtokyotyrant.so.3.23")
    ops.ln(dst_lib_dir, "libtokyotyrant.so.3.23.0", "libtokyotyrant.so.3")
    ops.ln(dst_lib_dir, "libtokyotyrant.so.3.23.0", "libtokyotyrant.so")

    return True
예제 #13
0
def MAIN_EXTRACT(args):
    set_global(args)

    lib_so = "libmicrohttpd.so.10.27.0"

    ops.mkdir(dst_lib_dir)
    ops.copyto(ops.path_join(src_usr_lib_dir, lib_so), dst_lib_dir)
    ops.ln(dst_lib_dir, lib_so, "libmicrohttpd.so.10.27")
    ops.ln(dst_lib_dir, lib_so, "libmicrohttpd.so.10")
    ops.ln(dst_lib_dir, lib_so, "libmicrohttpd.so")

    ops.mkdir(src_include_dir)
    ops.copyto(ops.path_join(base_include_dir, "microhttpd.h"),
               src_include_dir)
    return False
예제 #14
0
def MAIN_EXTRACT(args):
    set_global(args)

    #ops.mkdir(GOPATH)
    CMD = [ops.path_join(pkg_path, go_pkgs_dep_script)]
    res = ops.execCmd(CMD, GOPATH, False, None)
    #if res[2] != 0:
    #    print res
    #    print res[1]
    #    sys.exit(1)

    ops.copyto(ops.path_join(pkg_path, "src"), GOPATH)
    ops.copyto(ops.path_join(pkg_path, "Makefile"), GOPATH)
    #ops.copyto(ops.path_join(pkg_path, "main.go"), GOPATH)

    return True
예제 #15
0
파일: CONFIG.py 프로젝트: YuanYuLin/mtdev
def MAIN_BUILD(args):
    set_global(args)

    ops.mkdir(install_dir)
    ops.mkdir(install_tmp_dir)
    iopc.make(tarball_dir)
    iopc.make_install(tarball_dir)

    ops.mkdir(install_dir)
    ops.mkdir(dst_lib_dir)
    libmtdev = "libmtdev.so.1.0.0"
    ops.copyto(ops.path_join(install_tmp_dir, "usr/local/lib/" + libmtdev), dst_lib_dir)
    ops.ln(dst_lib_dir, libmtdev, "libmtdev.so.1.0")
    ops.ln(dst_lib_dir, libmtdev, "libmtdev.so.1")
    ops.ln(dst_lib_dir, libmtdev, "libmtdev.so")

    ops.mkdir(tmp_include_dir)
    ops.copyto(ops.path_join(install_tmp_dir, "usr/local/include/."), tmp_include_dir)
    return False
예제 #16
0
def MAIN_BUILD(args):
    set_global(args)

    ops.mkdir(install_dir)
    ops.mkdir(install_tmp_dir)
    iopc.make(tarball_dir)
    iopc.make_install(tarball_dir)

    ops.copyto(
        ops.path_join(install_tmp_dir, "usr/local/share/wayland-protocols"),
        install_dir)

    ops.mkdir(tmp_include_dir)
    #ops.copyto(ops.path_join(install_tmp_dir, "usr/local/include/."), tmp_include_dir)

    ops.mkdir(dst_pkgconfig_dir)
    ops.copyto(ops.path_join(src_pkgconfig_dir, '.'), dst_pkgconfig_dir)

    return False
예제 #17
0
파일: CONFIG.py 프로젝트: YuanYuLin/busybox
def MAIN_INSTALL(args):
    set_global(args)

    ops.mkdir(busybox_install_dir)
    extra_conf = []
    #extra_conf.append("CONFIG_PREFIX=" + iopc.getBinPkgPath(args["pkg_name"]))
    extra_conf.append("CONFIG_PREFIX=" + busybox_install_dir)
    iopc.make_install(busybox_build_dir, extra_conf)

    ops.mkdir(ops.path_join(busybox_install_dir, "usr/share/udhcpc"))
    ops.copyto(src_busybox_udhcpc_script, ops.path_join(busybox_install_dir, "usr/share/udhcpc"))

    ops.mkdir(ops.path_join(busybox_install_dir, "etc"))
    #ops.copyto(src_busybox_inittab, ops.path_join(busybox_install_dir, "etc"))
    ops.ln(busybox_install_dir, "/sbin/init", "init")
    #iopc.installBin(args["pkg_name"], tmp_busybox_udhcpc_script, "/usr/share/udhcpc/")
    #iopc.installBin(args["pkg_name"], dst_busybox_inittab, "/etc")
    iopc.installBin(args["pkg_name"], ops.path_join(busybox_install_dir, "."), ".")
    #ops.ln(install_dir, "/sbin/init", "init")
    return False
예제 #18
0
def MAIN_EXTRACT(args):
    set_global(args)

    ops.pkg_mkdir(output_rootfs_dir, "bin")
    ops.pkg_mkdir(output_rootfs_dir, "dev")
    ops.pkg_mkdir(output_rootfs_dir, "etc")
    ops.pkg_mkdir(output_rootfs_dir, "lib")
    ops.pkg_mkdir(output_rootfs_dir, "mnt")
    ops.pkg_mkdir(output_rootfs_dir, "newroot")
    ops.pkg_mkdir(output_rootfs_dir, "root")
    ops.pkg_mkdir(output_rootfs_dir, "sbin")
    ops.pkg_mkdir(output_rootfs_dir, "proc")
    ops.pkg_mkdir(output_rootfs_dir, "sys")
    ops.mknod_char(ops.path_join(output_rootfs_dir, "dev"), "console", "5",
                   "1")
    ops.mknod_char(ops.path_join(output_rootfs_dir, "dev"), "null", "1", "3")

    ops.copyto(ops.path_join(pkg_path, "init"), output_rootfs_dir)
    ops.ln(output_rootfs_dir, "lib", "lib64")

    return True
예제 #19
0
def MAIN_BUILD(args):
    set_global(args)

    ops.mkdir(install_dir)
    ops.mkdir(install_tmp_dir)
    iopc.make(tarball_dir)
    iopc.make_install(tarball_dir)

    ops.mkdir(dst_lib_dir)

    libfreetype = "libfreetype.so.6.16.1"
    ops.copyto(ops.path_join(install_tmp_dir, "usr/local/lib/" + libfreetype),
               dst_lib_dir)
    ops.ln(dst_lib_dir, libfreetype, "libfreetype.so.6.16")
    ops.ln(dst_lib_dir, libfreetype, "libfreetype.so.6")
    ops.ln(dst_lib_dir, libfreetype, "libfreetype.so")

    ops.mkdir(dst_include_dir)
    ops.copyto(ops.path_join(install_tmp_dir, "usr/local/include/."),
               dst_include_dir)

    ops.mkdir(dst_pkgconfig_dir)
    ops.copyto(ops.path_join(src_pkgconfig_dir, '.'), dst_pkgconfig_dir)

    return False
예제 #20
0
def MAIN_BUILD(args):
    set_global(args)

    ops.mkdir(install_dir)
    ops.mkdir(install_tmp_dir)
    iopc.make(tarball_dir)
    iopc.make_install(tarball_dir)

    ops.mkdir(install_dir)
    ops.mkdir(dst_lib_dir)

    ops.mkdir(dst_lib_dir)
    ops.copyto(
        ops.path_join(install_tmp_dir, "usr/local/lib/libepoxy.so.0.0.0"),
        dst_lib_dir)
    ops.ln(dst_lib_dir, "libepoxy.so.0.0.0", "libepoxy.so.0.0")
    ops.ln(dst_lib_dir, "libepoxy.so.0.0.0", "libepoxy.so.0")
    ops.ln(dst_lib_dir, "libepoxy.so.0.0.0", "libepoxy.so")

    ops.mkdir(tmp_include_dir)
    ops.copyto(ops.path_join(install_tmp_dir, "usr/local/include/."),
               tmp_include_dir)

    ops.mkdir(dst_pkgconfig_dir)
    ops.copyto(ops.path_join(src_pkgconfig_dir, '.'), dst_pkgconfig_dir)

    return True
예제 #21
0
파일: CONFIG.py 프로젝트: YuanYuLin/libdbus
def MAIN_BUILD(args):
    set_global(args)

    ops.mkdir(install_dir)
    ops.mkdir(install_tmp_dir)
    iopc.make(tarball_dir)
    iopc.make_install(tarball_dir)

    ops.mkdir(install_dir)
    ops.mkdir(dst_lib_dir)

    ops.copyto(
        ops.path_join(install_tmp_dir, "usr/local/lib/libdbus-1.so.3.19.8"),
        dst_lib_dir)
    ops.ln(dst_lib_dir, "libdbus-1.so.3.19.8", "libdbus-1.so.3.19")
    ops.ln(dst_lib_dir, "libdbus-1.so.3.19.8", "libdbus-1.so.3")
    ops.ln(dst_lib_dir, "libdbus-1.so.3.19.8", "libdbus-1.so")

    ops.mkdir(tmp_include_dir)
    ops.copyto(ops.path_join(install_tmp_dir, "usr/local/include/."),
               tmp_include_dir)
    ops.copyto(
        ops.path_join(install_tmp_dir, "usr/local/lib/dbus-1.0/include/."),
        tmp_include_dir)

    return True
예제 #22
0
def MAIN_EXTRACT(args):
    set_global(args)

    ops.mkdir(dst_lib_dir)
    ops.copyto(ops.path_join(src_lib_dir, "libexpat.so.1.6.0"), dst_lib_dir)
    ops.ln(dst_lib_dir, "libexpat.so.1.6.0", "libexpat.so.1.6")
    ops.ln(dst_lib_dir, "libexpat.so.1.6.0", "libexpat.so.1")
    ops.ln(dst_lib_dir, "libexpat.so.1.6.0", "libexpat.so")

    ops.mkdir(tmp_include_dir)
    ops.copyto(ops.path_join(src_include_dir, 'expat.h'), tmp_include_dir)
    ops.copyto(ops.path_join(src_include_dir, 'expat_external.h'), tmp_include_dir)
    ops.copyto(ops.path_join(ops.path_join(src_include_dir, src_arch_include_dir), 'expat_config.h'), tmp_include_dir)
    return True
예제 #23
0
def MAIN_BUILD(args):
    set_global(args)

    ops.mkdir(install_dir)
    ops.mkdir(install_tmp_dir)
    iopc.make(tarball_dir)
    iopc.make_install(tarball_dir)

    ops.mkdir(install_dir)
    ops.mkdir(dst_lib_dir)
    libfontconfig = "libfontconfig.so.1.11.1"
    ops.copyto(
        ops.path_join(install_tmp_dir, "usr/local/lib/" + libfontconfig),
        dst_lib_dir)
    ops.ln(dst_lib_dir, libfontconfig, "libfontconfig.so.1.11")
    ops.ln(dst_lib_dir, libfontconfig, "libfontconfig.so.1")
    ops.ln(dst_lib_dir, libfontconfig, "libfontconfig.so")

    ops.mkdir(tmp_include_dir)
    ops.copyto(ops.path_join(install_tmp_dir, "usr/local/include/."),
               tmp_include_dir)
    return True
예제 #24
0
def MAIN_EXTRACT(args):
    set_global(args)

    ops.copyto(ops.path_join(pkg_path, "Makefile"), output_dir)
    ops.copyto(ops.path_join(pkg_path, "Makefile.include.app"), output_dir)
    ops.copyto(ops.path_join(pkg_path, "init.c"), output_dir)

    return True
예제 #25
0
def MAIN_EXTRACT(args):
    set_global(args)

    ops.mkdir(output_platform_dir)
    ops.copyto(ops.path_join(pkg_path, dao_script), output_platform_dir)
    ops.copyto(ops.path_join(pkg_path, daosfs_script), output_platform_dir)
    ops.copyto(ops.path_join(pkg_path, header_script), output_platform_dir)

    return True
예제 #26
0
def MAIN_EXTRACT(args):
    set_global(args)

    ops.mkdir(dst_usr_bin_dir)
    ops.copyto(ops.path_join(src_usr_bin_dir, "luajit-2.0.4"), dst_usr_bin_dir)
    ops.ln(dst_usr_bin_dir, "luajit-2.0.4", "luajit")
        
    ops.mkdir(dst_usr_share_dir)
    ops.copyto(ops.path_join(src_usr_share_dir, "luajit-2.0.4"), dst_usr_share_dir)

    ops.mkdir(tmp_include_dir)
    ops.copyto(ops.path_join(src_include_dir, 'luajit-2.0'), tmp_include_dir)
    return True
예제 #27
0
def MAIN_EXTRACT(args):
    set_global(args)

    ops.mkdir(dst_bin_dir)
    ops.copyto(ops.path_join(src_sbin_dir, "mkfs.btrfs"), dst_bin_dir)
    ops.copyto(ops.path_join(src_sbin_dir, "btrfs"), dst_bin_dir)

    ops.mkdir(dst_lib_dir)
    lib_so = "liblzo2.so.2.0.0"
    ops.copyto(ops.path_join(src_lib_dir, lib_so), dst_lib_dir)
    ops.ln(dst_lib_dir, lib_so, "liblzo2.so.2.0")
    ops.ln(dst_lib_dir, lib_so, "liblzo2.so.2")
    ops.ln(dst_lib_dir, lib_so, "liblzo2.so")

    return True
예제 #28
0
def MAIN_BUILD(args):
    set_global(args)

    ops.mkdir(install_dir)
    ops.mkdir(install_tmp_dir)
    iopc.make(tarball_dir)
    iopc.make_install(tarball_dir)

    ops.mkdir(install_dir)
    ops.mkdir(dst_lib_dir)
    libharfbuzz_subset = "libharfbuzz-subset.so.0.10706.0"
    ops.copyto(
        ops.path_join(install_tmp_dir, "usr/local/lib/" + libharfbuzz_subset),
        dst_lib_dir)
    ops.ln(dst_lib_dir, libharfbuzz_subset, "libharfbuzz-subset.so.0.10706")
    ops.ln(dst_lib_dir, libharfbuzz_subset, "libharfbuzz-subset.so.0")
    ops.ln(dst_lib_dir, libharfbuzz_subset, "libharfbuzz-subset.so")

    libharfbuzz = "libharfbuzz.so.0.10706.0"
    ops.copyto(ops.path_join(install_tmp_dir, "usr/local/lib/" + libharfbuzz),
               dst_lib_dir)
    ops.ln(dst_lib_dir, libharfbuzz, "libharfbuzz.so.0.10706")
    ops.ln(dst_lib_dir, libharfbuzz, "libharfbuzz.so.0")
    ops.ln(dst_lib_dir, libharfbuzz, "libharfbuzz.so")

    libharfbuzz_icu = "libharfbuzz-icu.so.0.10706.0"
    ops.copyto(
        ops.path_join(install_tmp_dir, "usr/local/lib/" + libharfbuzz_icu),
        dst_lib_dir)
    ops.ln(dst_lib_dir, libharfbuzz_icu, "libharfbuzz-icu.so.0.10706")
    ops.ln(dst_lib_dir, libharfbuzz_icu, "libharfbuzz-icu.so.0")
    ops.ln(dst_lib_dir, libharfbuzz_icu, "libharfbuzz-icu.so")

    ops.mkdir(tmp_include_dir)
    ops.copyto(ops.path_join(install_tmp_dir, "usr/local/include/."),
               tmp_include_dir)
    return False
예제 #29
0
def MAIN_INSTALL(args):
    set_global(args)

    ops.mkdir(install_dir)

    ops.mkdir(dst_lib_dir)

    libcairo = "libcairo.so.2.11400.12"
    ops.copyto(ops.path_join(install_tmp_dir, "usr/local/lib/" + libcairo), dst_lib_dir)
    ops.ln(dst_lib_dir, libcairo, "libcairo.so.2")
    ops.ln(dst_lib_dir, libcairo, "libcairo.so")

    ops.mkdir(dst_include_dir)
    ops.copyto(ops.path_join(install_tmp_dir, "usr/local/include/cairo/cairo-deprecated.h"), dst_include_dir)
    ops.copyto(ops.path_join(install_tmp_dir, "usr/local/include/cairo/cairo-features.h"), dst_include_dir)
    ops.copyto(ops.path_join(install_tmp_dir, "usr/local/include/cairo/cairo.h"), dst_include_dir)
    ops.copyto(ops.path_join(install_tmp_dir, "usr/local/include/cairo/cairo-script.h"), dst_include_dir)
    ops.copyto(ops.path_join(install_tmp_dir, "usr/local/include/cairo/cairo-version.h"), dst_include_dir)

    iopc.installBin(args["pkg_name"], ops.path_join(ops.path_join(install_dir, "lib"), "."), "lib")
    iopc.installBin(args["pkg_name"], dst_include_dir, "include")

    return False
예제 #30
0
파일: CONFIG.py 프로젝트: YuanYuLin/libcogl
def MAIN_BUILD(args):
    set_global(args)

    ops.mkdir(install_dir)
    ops.mkdir(install_tmp_dir)
    iopc.make(tarball_dir)
    iopc.make_install(tarball_dir)

    ops.mkdir(dst_lib_dir)

    libgio = "libgio-2.0.so.0.5400.3"
    ops.copyto(ops.path_join(install_tmp_dir, "usr/local/lib/" + libgio),
               dst_lib_dir)
    ops.ln(dst_lib_dir, libgio, "libgio-2.0.so.0")
    ops.ln(dst_lib_dir, libgio, "libgio-2.0.so")

    libglib = "libglib-2.0.so.0.5400.3"
    ops.copyto(ops.path_join(install_tmp_dir, "usr/local/lib/" + libglib),
               dst_lib_dir)
    ops.ln(dst_lib_dir, libglib, "libglib-2.0.so.0")
    ops.ln(dst_lib_dir, libglib, "libglib-2.0.so")

    libgmodule = "libgmodule-2.0.so.0.5400.3"
    ops.copyto(ops.path_join(install_tmp_dir, "usr/local/lib/" + libgmodule),
               dst_lib_dir)
    ops.ln(dst_lib_dir, libgmodule, "libgmodule-2.0.so.0")
    ops.ln(dst_lib_dir, libgmodule, "libgmodule-2.0.so")

    libgobject = "libgobject-2.0.so.0.5400.3"
    ops.copyto(ops.path_join(install_tmp_dir, "usr/local/lib/" + libgobject),
               dst_lib_dir)
    ops.ln(dst_lib_dir, libgobject, "libgobject-2.0.so.0")
    ops.ln(dst_lib_dir, libgobject, "libgobject-2.0.so")

    libgthread = "libgthread-2.0.so.0.5400.3"
    ops.copyto(ops.path_join(install_tmp_dir, "usr/local/lib/" + libgthread),
               dst_lib_dir)
    ops.ln(dst_lib_dir, libgthread, "libgthread-2.0.so.0")
    ops.ln(dst_lib_dir, libgthread, "libgthread-2.0.so")

    ops.mkdir(dst_include_dir)
    ops.copyto(ops.path_join(tarball_dir, "glib/glibconfig.h"),
               dst_include_dir)
    ops.copyto(ops.path_join(install_tmp_dir, "usr/local/include/."),
               dst_include_dir)

    ops.mkdir(dst_pkgconfig_dir)
    ops.copyto(ops.path_join(src_pkgconfig_dir, '.'), dst_pkgconfig_dir)

    return False
예제 #31
0
def MAIN_BUILD(args):
    set_global(args)

    ops.mkdir(install_dir)
    ops.mkdir(install_tmp_dir)
    iopc.make(tarball_dir)
    iopc.make_install(tarball_dir)

    ops.mkdir(dst_lib_dir)

    libgdk_pixbuf = "libgdk_pixbuf-2.0.so.0.3612.0"
    ops.copyto(
        ops.path_join(install_tmp_dir, "usr/local/lib/" + libgdk_pixbuf),
        dst_lib_dir)
    ops.ln(dst_lib_dir, libgdk_pixbuf, "libgdk_pixbuf-2.0.so.0.3612")
    ops.ln(dst_lib_dir, libgdk_pixbuf, "libgdk_pixbuf-2.0.so.0")
    ops.ln(dst_lib_dir, libgdk_pixbuf, "libgdk_pixbuf-2.0.so")

    dst_gdk_loader_dir = ops.path_join(dst_usr_local_lib_dir,
                                       "gdk-pixbuf-2.0/2.10.0/loaders/")
    ops.mkdir(dst_gdk_loader_dir)
    ops.copyto(
        ops.path_join(
            install_tmp_dir,
            "usr/local/lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-ani.so"
        ), dst_gdk_loader_dir)
    ops.copyto(
        ops.path_join(
            install_tmp_dir,
            "usr/local/lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-bmp.so"
        ), dst_gdk_loader_dir)
    ops.copyto(
        ops.path_join(
            install_tmp_dir,
            "usr/local/lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-gif.so"
        ), dst_gdk_loader_dir)
    ops.copyto(
        ops.path_join(
            install_tmp_dir,
            "usr/local/lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-icns.so"
        ), dst_gdk_loader_dir)
    ops.copyto(
        ops.path_join(
            install_tmp_dir,
            "usr/local/lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-ico.so"
        ), dst_gdk_loader_dir)
    ops.copyto(
        ops.path_join(
            install_tmp_dir,
            "usr/local/lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-png.so"
        ), dst_gdk_loader_dir)
    ops.copyto(
        ops.path_join(
            install_tmp_dir,
            "usr/local/lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-pnm.so"
        ), dst_gdk_loader_dir)
    ops.copyto(
        ops.path_join(
            install_tmp_dir,
            "usr/local/lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-qtif.so"
        ), dst_gdk_loader_dir)
    ops.copyto(
        ops.path_join(
            install_tmp_dir,
            "usr/local/lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-tga.so"
        ), dst_gdk_loader_dir)
    ops.copyto(
        ops.path_join(
            install_tmp_dir,
            "usr/local/lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-xbm.so"
        ), dst_gdk_loader_dir)
    ops.copyto(
        ops.path_join(
            install_tmp_dir,
            "usr/local/lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-xpm.so"
        ), dst_gdk_loader_dir)

    ops.mkdir(dst_include_dir)
    ops.copyto(ops.path_join(install_tmp_dir, "usr/local/include/."),
               dst_include_dir)

    ops.mkdir(dst_pkgconfig_dir)
    ops.copyto(ops.path_join(src_pkgconfig_dir, '.'), dst_pkgconfig_dir)

    return False