1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-28 05:29:48 +00:00
freebsd-ports/archivers/ppmd-7z/Makefile
Martin Wilke 56a89130fe - Update to 4.61
PR:		131461
Submitted by:	bf <bf2006a@yahoo.com> (maintainer)
2009-02-09 13:04:29 +00:00

39 lines
1.0 KiB
Makefile

# New ports collection makefile for: ppmd-7z
# Date created: 1 September 2007
# Whom: Andrew Pantyukhin <infofarmer@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= ppmd
PORTVERSION= 4.61
CATEGORIES= archivers
MASTER_SITES= SF/p7zip
PKGNAMESUFFIX= -7z
DISTNAME= p7zip_${DISTVERSION}_src_all
MAINTAINER= bf2006a@yahoo.com
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}
regression-test: build
@(cd ${BUILD_WRKSRC}; ${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} test)
.include <bsd.port.mk>