summaryrefslogtreecommitdiff
path: root/archivers/makeself/Makefile
blob: 24dacac6e9752b48d7ad753f585cbde1283fe04a (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
PORTNAME=	makeself
DISTVERSION=	2.4.5
CATEGORIES=	archivers
MASTER_SITES=	https://github.com/megastep/makeself/releases/download/release-${PORTVERSION}/
EXTRACT_SUFX=	.run

MAINTAINER=	eduardo@FreeBSD.org
COMMENT=	Neat script to make self-extracting archives

LICENSE=	GPLv2
LICENSE_FILE=	${WRKSRC}/COPYING

USES=		makeself

NO_ARCH=	yes
NO_BUILD=	yes
NO_WRKSUBDIR=	yes

PLIST_FILES=	bin/makeself \
		bin/makeself-header \
		bin/makeself-header.sh \
		bin/makeself.sh \
		man/man1/makeself.1.gz
PORTDOCS=	README.md

OPTIONS_DEFINE=	DOCS

do-install:
.for i in makeself makeself-header
	${INSTALL_SCRIPT} ${WRKSRC}/${i}.sh ${STAGEDIR}${PREFIX}/bin
	@${LN} -sf ${i}.sh ${STAGEDIR}${PREFIX}/bin/${i}
.endfor
	${INSTALL_MAN} ${WRKSRC}/makeself.1 ${STAGEDIR}${MAN1PREFIX}/man/man1

do-install-DOCS-on:
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
	${INSTALL_MAN} ${WRKSRC}/README.md ${STAGEDIR}${DOCSDIR}

.include <bsd.port.mk>