summaryrefslogtreecommitdiff
path: root/archivers/cabextract/Makefile
blob: 4089ae63997acd9634dc2dc67e25c2e55d7552f3 (plain) (blame)
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
40
# Created by: Maxim Sobolev <sobomax@FreeBSD.org>
# $FreeBSD$

PORTNAME=	cabextract
PORTVERSION=	1.9
CATEGORIES=	archivers
MASTER_SITES=	https://www.cabextract.org.uk/

MAINTAINER=	sunpoet@FreeBSD.org
COMMENT=	Program to extract Microsoft cabinet (.CAB) files

LICENSE=	GPLv3
LICENSE_FILE=	${WRKSRC}/COPYING

USES=		cpe

GNU_CONFIGURE=	yes

PLIST_FILES=	bin/cabextract \
		man/ja/man1/cabextract.1.gz \
		man/man1/cabextract.1.gz
PORTDOCS=	${DOCS} ${DOC_DOCS} ${SRC_DOCS}

DOCS=		AUTHORS ChangeLog NEWS README TODO
DOC_DOCS=	magic wince_cab_format.html
SRC_DOCS=	wince_info wince_rename

OPTIONS_DEFINE=	DOCS

post-install:
	${INSTALL_MAN} ${WRKSRC}/doc/cabextract.1 ${STAGEDIR}${MAN1PREFIX}/man/man1
	${INSTALL_MAN} ${WRKSRC}/doc/ja/cabextract.1 ${STAGEDIR}${MAN1PREFIX}/man/ja/man1

post-install-DOCS-on:
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
	cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${STAGEDIR}${DOCSDIR}
	cd ${WRKSRC}/doc && ${INSTALL_DATA} ${DOC_DOCS} ${STAGEDIR}${DOCSDIR}
	cd ${WRKSRC}/src && ${INSTALL_DATA} ${SRC_DOCS} ${STAGEDIR}${DOCSDIR}

.include <bsd.port.mk>