2014-05-26 03:30:39 +02:00
|
|
|
# $NetBSD: Makefile,v 1.22 2014/05/26 01:30:39 rodent Exp $
|
2004-01-07 16:12:59 +01:00
|
|
|
|
2014-05-26 03:30:39 +02:00
|
|
|
DISTNAME= upx-3.91-src
|
|
|
|
PKGNAME= ${DISTNAME:S/-src//1}
|
|
|
|
CATEGORIES= archivers
|
2004-01-07 16:12:59 +01:00
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=upx/}
|
2012-05-02 08:45:14 +02:00
|
|
|
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/}
|
2004-01-07 16:12:59 +01:00
|
|
|
|
|
|
|
MAINTAINER= fab@gnux.info
|
|
|
|
HOMEPAGE= http://upx.sourceforge.net/
|
|
|
|
COMMENT= Ultimate packer for executables
|
2012-05-02 08:45:14 +02:00
|
|
|
LICENSE= gnu-gpl-v2
|
2004-01-07 16:12:59 +01:00
|
|
|
|
2014-05-26 03:30:39 +02:00
|
|
|
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
|
2004-01-20 13:07:06 +01:00
|
|
|
|
2012-05-02 08:45:14 +02:00
|
|
|
INSTALLATION_DIRS= bin ${PKGMANDIR}/man1 share/doc/upx
|
2004-01-07 16:12:59 +01:00
|
|
|
|
2012-05-02 08:45:14 +02:00
|
|
|
BUILDLINK_TRANSFORM+= rm:-mcpu=i686
|
2007-09-29 12:23:08 +02:00
|
|
|
|
2012-02-15 20:27:10 +01:00
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
.if ${OPSYS} == "SunOS"
|
2012-05-02 08:45:14 +02:00
|
|
|
BUILDLINK_TRANSFORM+= rm:-Wl,-Map rm:-Wl,upx.map
|
2012-02-15 20:27:10 +01:00
|
|
|
.endif
|
|
|
|
|
2012-05-02 08:45:14 +02:00
|
|
|
post-extract:
|
|
|
|
mkdir -p ${WRKSRC}/src/stub/src/c/lzma-sdk
|
|
|
|
ln -sf ${WRKDIR}/C ${WRKSRC}/src/stub/src/c/lzma-sdk/C
|
|
|
|
|
2004-01-07 16:12:59 +01:00
|
|
|
do-install:
|
2012-05-02 08:45:14 +02:00
|
|
|
${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
|
2004-01-07 16:12:59 +01:00
|
|
|
|
2005-02-10 16:51:38 +01:00
|
|
|
.include "../../devel/ucl/buildlink3.mk"
|
2012-05-02 08:45:14 +02:00
|
|
|
.include "../../devel/zlib/buildlink3.mk"
|
2004-01-07 16:12:59 +01:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|