summaryrefslogtreecommitdiff
path: root/sysutils/cloop-utils/Makefile
blob: 4f809b79cce01f6f1b3e21ce5146a4ad165906ed (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
# New ports collection makefile for:	cloop-utils
# Date created:				19 Jan 2004
# Whom:					Max Khon <fjoe@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=	cloop-utils
PORTVERSION=	${CLOOP_VERSION}.${CLOOP_REVISION}
CATEGORIES=	sysutils
MASTER_SITES=	http://debian-knoppix.alioth.debian.org/sources/
DISTNAME=	cloop_${CLOOP_VERSION}-${CLOOP_REVISION}

MAINTAINER=	fjoe@FreeBSD.org
COMMENT=	Compressed loop FS utils

WRKSRC=		${WRKDIR}/cloop-${CLOOP_VERSION}
USE_GMAKE=	yes
MAKE_ENV=	APPSONLY=yes
PLIST_FILES=	bin/create_compressed_fs bin/extract_compressed_fs

.ifndef NOPORTDOCS
PORTDOCS=	README
.endif

CLOOP_VERSION=	2.01
CLOOP_REVISION=	2

post-patch:
	@${REINPLACE_CMD} -e 's/^CFLAGS:=/CFLAGS?=/' ${WRKSRC}/Makefile

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/create_compressed_fs ${PREFIX}/bin
	${INSTALL_PROGRAM} ${WRKSRC}/extract_compressed_fs ${PREFIX}/bin
.ifndef NOPORTDOCS
	${MKDIR} ${DOCSDIR}
	${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
.endif

.include <bsd.port.mk>