mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-15 03:14:23 +00:00
a01b22a052
PR: 210474 Submitted by: jbeich With hat: portmgr-secretary
34 lines
1004 B
Makefile
34 lines
1004 B
Makefile
# Created by: Andrew Pantyukhin <infofarmer@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= ppmd
|
|
PORTVERSION= 9.04
|
|
CATEGORIES= archivers
|
|
MASTER_SITES= SF/p7zip/p7zip/${PORTVERSION}
|
|
PKGNAMESUFFIX= -7z
|
|
DISTNAME= p7zip_${DISTVERSION}_src_all
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= High-ratio PPMD compressor
|
|
|
|
USES= tar:bzip2 gmake
|
|
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"
|
|
|
|
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} ${STAGEDIR}${PREFIX}/bin/${PKGBASE}
|
|
|
|
regression-test: build
|
|
@(cd ${BUILD_WRKSRC}; ${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} test)
|
|
|
|
.include <bsd.port.mk>
|