pkgsrc/archivers/upx/Makefile
rodent e057c12c24 Updated to latest release, 3.91. Minor whitespace fixes in the Makefile.
Use BUILD_DIRS and MAKE_ENV instead of writing do-install phase manually.
Add sparc{,64} support to package. Fixes build on OpenBSD/sparc64 at least.
Defuzz patches. From NEWS:

==================================================================
User visible changes for UPX
==================================================================

Changes in 3.91 (30 Sep 2013):
  * Added experimental support for Windows 64-bit PE files, based on
    work by Stefan Widmann. Please use for testing only!
  * bug fixes

==================================================================

Changes in 3.09 (18 Feb 2013):
  * New option --preserve-build-id for GNU ELF.
  * Allow for code signing and LC_UUID on Mac OS X executables.
  * Allow non-contiguous LC_SEGMENTs and 0==.vmsize for Mach-O.
  * Allow zero-filled final page in PackUnix::canUnpack().
  * bug fixes
2014-05-26 01:30:39 +00:00

44 lines
1.4 KiB
Makefile

# $NetBSD: Makefile,v 1.22 2014/05/26 01:30:39 rodent Exp $
DISTNAME= upx-3.91-src
PKGNAME= ${DISTNAME:S/-src//1}
CATEGORIES= archivers
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=upx/}
EXTRACT_SUFX= .tar.bz2
# consult src/stub/src/c/Makevars.lzma for the supported LZMA SDK version
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} lzma443${EXTRACT_SUFX}
SITES.lzma443.tar.bz2= ${MASTER_SITE_SOURCEFORGE:=sevenzip/}
MAINTAINER= fab@gnux.info
HOMEPAGE= http://upx.sourceforge.net/
COMMENT= Ultimate packer for executables
LICENSE= gnu-gpl-v2
USE_LANGUAGES= c c++
USE_TOOLS+= gmake perl pod2man pod2html pod2text
NO_CONFIGURE= yes
BUILD_DIRS= src doc
MAKE_ENV+= PREFIX=${PREFIX} UCLDIR=${PREFIX} LDLIBDIRS=-L${PREFIX}/lib
INSTALLATION_DIRS= bin ${PKGMANDIR}/man1 share/doc/upx
BUILDLINK_TRANSFORM+= rm:-mcpu=i686
.include "../../mk/bsd.prefs.mk"
.if ${OPSYS} == "SunOS"
BUILDLINK_TRANSFORM+= rm:-Wl,-Map rm:-Wl,upx.map
.endif
post-extract:
mkdir -p ${WRKSRC}/src/stub/src/c/lzma-sdk
ln -sf ${WRKDIR}/C ${WRKSRC}/src/stub/src/c/lzma-sdk/C
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/src/upx.out ${DESTDIR}${PREFIX}/bin/upx
${INSTALL_MAN} ${WRKSRC}/doc/upx.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
${INSTALL_DATA} ${WRKSRC}/doc/upx.doc ${DESTDIR}${PREFIX}/share/doc/upx
${INSTALL_DATA} ${WRKSRC}/doc/upx.html ${DESTDIR}${PREFIX}/share/doc/upx
.include "../../devel/ucl/buildlink3.mk"
.include "../../devel/zlib/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"