summaryrefslogtreecommitdiffstats
path: root/archivers/ppmd-7z/Makefile
blob: ed8a7b554adbddeeb890fd82b1c310f97af9df8d (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
# New ports collection makefile for:	ppmd-7z
# Date created:		1 September 2007
# Whom:			Andrew Pantyukhin <infofarmer@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=	ppmd
PORTVERSION=	4.57
CATEGORIES=	archivers
MASTER_SITES=	SF/p7zip
PKGNAMESUFFIX=	-7z
DISTNAME=	p7zip_${DISTVERSION}_src_all

MAINTAINER=	ports@FreeBSD.org
COMMENT=	High-ratio PPMD compressor

USE_BZIP2=	yes
USE_GMAKE=	yes
WRKSRC=		${WRKDIR}/p7zip_${DISTVERSION}
BUILD_WRKSRC=	${WRKSRC}/CPP/7zip/Compress/PPMD_Alone
MAKEFILE=	makefile
PLIST_FILES=	bin/${PKGBASE}
MAKE_ARGS=	PROG=${PORTNAME} CXX="${CXX}" LIB="${PTHREAD_LIBS}"

post-patch:
	@${REINPLACE_CMD} -e '/bool Open(LPCTSTR fileName, DWORD creationDisposition)/,/}/d'\
		${WRKSRC}/CPP/7zip/Common/FileStreams.h
	@${REINPLACE_CMD} -e 's|^CFLAGS =|CFLAGS +=|;s|-o|${CFLAGS} -o|'\
			${BUILD_WRKSRC}/${MAKEFILE}

do-install:
	@${INSTALL_PROGRAM} ${BUILD_WRKSRC}/${PORTNAME} ${PREFIX}/bin/${PKGBASE}

.include <bsd.port.mk>
OpenPOWER on IntegriCloud