freebsd-ports/archivers/p7zip/Makefile
Raphael Kubo da Costa c9ea4026d8 Install 7z.so, needed for manipulating all archive formats but RAR.
It was missed during the update in r338410 and basically made p7zip stop
handling any archive type.

Reported by:	Green Dog <fiziologus@gmail.com>
Pointy hat to:	rakuco
2014-01-03 04:21:55 +00:00

57 lines
1.4 KiB
Makefile

# Created by: Juergen Lock <nox@jelal.kn-bremen.de>
# $FreeBSD$
PORTNAME= p7zip
PORTVERSION= 9.20.1
PORTREVISION?= 2
CATEGORIES= archivers
MASTER_SITES= SF
DISTNAME= ${PORTNAME}_${DISTVERSION}_src_all
MAINTAINER= rakuco@FreeBSD.org
COMMENT?= File archiver with high compression ratio
LICENSE?= LGPL21
ALL_TARGET?= all3
USE_BZIP2= yes
MAKEFILE= makefile
MAKE_ARGS= OPTFLAGS="${CXXFLAGS}"
WRKSRC= ${WRKDIR}/${PORTNAME}_${PORTVERSION}
CFLAGS_amd64= -fPIC
CFLAGS_ia64= -fPIC
OPTIONS_DEFINE= DOCS
.include <bsd.port.options.mk>
post-patch:
${SED} -e 's!g\+\+!${CXX}!' \
-e 's!gcc!${CC}!' \
-e 's/-D_LARGEFILE_SOURCE//' \
-e 's/-D_FILE_OFFSET_BITS=64//' \
${WRKSRC}/makefile.freebsd6 > ${WRKSRC}/makefile.machine
${REINPLACE_CMD} -e 's|{DEST_SHARE_DOC}|${DOCSDIR}|' \
${WRKSRC}/man1/*
${MV} ${WRKSRC}/README ${WRKSRC}/DOCS/readme.unix
.if ${SLAVE_PORT} == "no"
do-install:
${MKDIR} ${STAGEDIR}${PREFIX}/libexec/p7zip
.for BINARY in 7z 7za 7zr 7zCon.sfx
${INSTALL_PROGRAM} ${WRKSRC}/bin/${BINARY} ${STAGEDIR}${PREFIX}/libexec/p7zip
.endfor
${INSTALL_LIB} ${WRKSRC}/bin/7z.so ${STAGEDIR}${PREFIX}/libexec/p7zip
${INSTALL_SCRIPT} ${FILESDIR}/7z ${STAGEDIR}${PREFIX}/bin/
${LN} -sf 7z ${STAGEDIR}${PREFIX}/bin/7za
${LN} -sf 7z ${STAGEDIR}${PREFIX}/bin/7zr
cd ${WRKSRC}/DOCS && \
${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR}
cd ${WRKSRC}/man1 && \
${INSTALL_MAN} 7z*.1 ${STAGEDIR}${MAN1PREFIX}/man/man1
.endif
.include <bsd.port.mk>