summaryrefslogtreecommitdiff
path: root/archivers/upx/Makefile
blob: 2ea930b4067e84db0b9d856b09816e28cd944643 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
PORTNAME=	upx
PORTVERSION=	3.96
MASTER_SITES=	https://github.com/upx/upx/releases/download/v${PORTVERSION}/
CATEGORIES=	archivers
DISTVERSIONSUFFIX=	-src

MAINTAINER=	sunpoet@FreeBSD.org
COMMENT=	Ultimate Packer for eXecutables
WWW=		https://upx.github.io/

LICENSE=	GPLv2+
LICENSE_FILE=	${WRKSRC}/LICENSE

LIB_DEPENDS=	libucl.so:archivers/ucl

USES=		cpe gmake perl5 tar:xz
USE_PERL5=	build

MAKE_ENV=	UPX_UCLDIR=${LOCALBASE} \
		target=freebsd

PLIST_FILES=	bin/upx \
		man/man1/upx.1.gz

CPE_VENDOR=	upx_project

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/src/upx.out ${STAGEDIR}${PREFIX}/bin/upx
	${INSTALL_MAN} ${WRKSRC}/doc/upx.1 ${STAGEDIR}${PREFIX}/man/man1

.include <bsd.port.mk>