1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-18 03:46:03 +00:00
freebsd-ports/archivers/ppmd-7z/Makefile
Dmitry Marakasov 8edcb9347f - Add LICENSE
- Switch to new test framework
- Unsilence installation commands

Approved by:	portmgr blanket
2018-02-15 09:02:52 +00:00

40 lines
1.2 KiB
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
LICENSE= LGPL21+ UNRAR
LICENSE_COMB= multi
LICENSE_NAME_UNRAR= unRAR license
LICENSE_FILE= ${WRKSRC}/DOCS/License.txt
LICENSE_FILE_UNRAR= ${WRKSRC}/DOCS/unRarLicense.txt
LICENSE_FILE_LGPL21+ = ${WRKSRC}/DOCS/copying.txt
LICENSE_PERMS_UNRAR= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
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"
TEST_TARGET= test
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}
.include <bsd.port.mk>