freebsd-ports/archivers/ppmd-7z/Makefile
Andrew Pantyukhin ada3aaa54d Add port archivers/ppmd-7z:
Simple command line implementation of PPMD compression algorithm. It
is based on code by Dmitry Shkarin (archivers/ppmd) but reworked by
Igor Pavlov and bundled with 7zip.

WWW: http://www.7-zip.org/sdk.html
2007-09-01 12:31:51 +00:00

35 lines
936 B
Makefile

# New ports collection makefile for: ppmd-7z
# Date created: 1 September 2007
# Whom: Andrew Pantyukhin <infofarmer@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= ppmd
PORTVERSION= 4.53
CATEGORIES= archivers
MASTER_SITES= SF
PKGNAMESUFFIX= -7z
DISTNAME= p7zip_${DISTVERSION}_src_all
MAINTAINER= infofarmer@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>