summaryrefslogtreecommitdiff
path: root/archivers/upx/Makefile
blob: e2285749200863972b95cda054b80a07c69ede9f (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
32
33
34
35
36
37
38
39
# $NetBSD: Makefile,v 1.15 2008/03/02 03:48:37 jlam Exp $

DISTNAME=	upx-1.25-src
PKGNAME=	${DISTNAME:S/-src//}
PKGREVISION=	1
CATEGORIES=	misc archivers
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE:=upx/}

MAINTAINER=	fab@gnux.info
HOMEPAGE=	http://upx.sourceforge.net/
COMMENT=	Ultimate packer for executables

PKG_DESTDIR_SUPPORT=	user-destdir

WRKSRC=		${WRKDIR}/${PKGNAME_NOREV}

USE_TOOLS+=	gmake perl
USE_LANGUAGES=	c c++

INSTALLATION_DIRS=	bin

BUILDLINK_TRANSFORM=	rm:-mcpu=i686

do-build:
	cd ${WRKSRC:Q}/src && ${SETENV} ${MAKE_ENV}			\
		${MAKE_PROGRAM} PREFIX=${PREFIX:Q} target=netbsd	\
			UCLDIR=${PREFIX:Q} LDLIBDIRS=-L${PREFIX:Q}/lib
	cd ${WRKSRC:Q}/doc && ${MAKE_PROGRAM}

do-install:
	${INSTALL_PROGRAM} ${WRKSRC:Q}/src/upx ${DESTDIR}${PREFIX:Q}/bin
	${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX:Q}/share/doc/upx/
	${INSTALL_DATA} ${WRKSRC:Q}/doc/upx.doc \
		${DESTDIR}${PREFIX:Q}/share/doc/upx
	${INSTALL_DATA} ${WRKSRC:Q}/doc/upx.html \
		${DESTDIR}${PREFIX:Q}/share/doc/upx

.include "../../devel/ucl/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"