# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
github.setup upx upx d31947e1f016e87f24f88b944439bbee892f0429
description compress or expand executable files
long_description UPX is a free, portable, extendable, high-performance \
executable packer for several executable formats
homepage https://upx.github.io/
depends_lib port:ucl port:zlib
system -W ${worksrcpath} "git submodule update --init --recursive"
reinplace "s|CXXFLAGS += -fno-delete-null-pointer-checks||" ${worksrcpath}/src/Makefile
reinplace "s| -Wvla||" ${worksrcpath}/src/Makefile
build.env CXX="${configure.cxx}" \
CXXFLAGS_OPTIMIZE="${configure.cxxflags} [get_canonical_archflags cxx]" \
xinstall -m 755 ${worksrcpath}/src/upx.out ${destroot}${prefix}/bin/upx
xinstall -m 644 ${worksrcpath}/doc/upx.1 ${destroot}${prefix}/share/man/man1
xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
xinstall -m 644 -W ${worksrcpath}/doc upx.doc upx.html ${destroot}${prefix}/share/doc/${name}
xinstall -m 644 -W ${worksrcpath} BUGS COPYING LICENSE NEWS PROJECTS README README.1ST README.SRC THANKS ${destroot}${prefix}/share/doc/${name}