# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:filetype=tcl:et:sw=4:ts=4:sts=4 # $Id$ PortSystem 1.0 name amttools set my_distname amtterm version 1.4 revision 2 categories sysutils license GPL-2+ maintainers ionic openmaintainer platforms darwin installs_libs no description Intel AMTĀ® Serial-over-LAN client and tools long_description AMT (included in Intel vPro and Centrino Pro) provides \ out-of-band (OOB) management for Desktops and Laptops, \ using an agent integrated in the network adapter and \ in the motherboard. \ Serial-over-lan provides a secure way to connect a \ remote computer, through a pseudo serial interface. \ amtterm and gamt are two terminal tools to connect to \ that pseudo serial interface from a remote computer. \ amttool is a perl script to gather information about \ and remotely control AMT managed computers. homepage https://www.kraxel.org/blog/linux/${my_distname}/ master_sites https://www.kraxel.org/releases/${my_distname}/ distname ${my_distname}-${version} checksums rmd160 fac39807990870f88884e541f4b062db8b8d1236 \ sha256 e10af2b02dbf66fb24abd292b9ddc6d86b31eea09887da5cb0eb8fb2ee900e21 set perl_branch 5.24 depends_build port:pkgconfig depends_run port:p${perl_branch}-soap-lite default_variants +gtk use_configure no variant universal {} # Sometimes people are trying to be just a little bit too smart. # Revert this. # In a perfect world, everyone would be using trace mode and # even if GTK+3 and libvte were installed, they couldn't be # picked up by the build system. # Sadly, our world is not perfect, so patch out gamt support. # (And drop this patch in the gtk variant...) patchfiles patch-amttool-prepare-hashbang-for-reinplace.diff \ patch-mk_Variables.mk-no-special-usr-local-treatment.diff \ patch-GNUmakefile-check-for-GTK2-only.diff \ patch-GNUmakefile-disable-gamt.diff build.type gnu build.env CFLAGS="${configure.cppflags} ${configure.cflags} [get_canonical_archflags cc]" \ LDFLAGS="${configure.ldflags} [get_canonical_archflags ld]" build.args CC=${configure.cc} \ LD=${configure.cc} \ verbose=yes destroot.args prefix="${prefix}" post-patch { reinplace -W "${worksrcpath}" "s|@@PERL_BINARY@@|${prefix}/bin/perl${perl_branch}|" amttool } variant gtk description {Enable gamt (GTK2-based AMT terminal)} { depends_lib-append path:lib/pkgconfig/gtk-2.0.pc:gtk2 \ port:vte patchfiles-delete patch-GNUmakefile-disable-gamt.diff # Our libvte is GTK3-only, we need to switch the check to # that version explicitly. Also holds for the (newer) libvte # version, which now appends its library version number. patchfiles-append patch-GNUmakefile-use-GTK3.diff \ patch-GNUmakefile-use-vte-2.91.diff # This is a "rebased" patch taken from upstream's git repository, # c.f., https://www.kraxel.org/cgit/amtterm/patch/?id=f08799bee patchfiles-append patch-gamt.c-switch-to-GTK3.diff # (More or less) trivial fixups for libvte 2.91. patchfiles-append patch-gamt.c-switch-to-libvte-2.91.diff } livecheck.name ${my_distname}