2012-10-07 15:59:39 +02:00
|
|
|
# Created by: Juergen Lock <nox@jelal.kn-bremen.de>
|
2004-08-11 20:07:36 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= p7zip
|
2011-03-17 20:56:29 +01:00
|
|
|
PORTVERSION= 9.20.1
|
2014-01-03 05:21:55 +01:00
|
|
|
PORTREVISION?= 2
|
2004-08-11 20:07:36 +02:00
|
|
|
CATEGORIES= archivers
|
2006-09-24 08:41:33 +02:00
|
|
|
MASTER_SITES= SF
|
2007-07-17 09:10:19 +02:00
|
|
|
DISTNAME= ${PORTNAME}_${DISTVERSION}_src_all
|
2004-08-11 20:07:36 +02:00
|
|
|
|
2011-08-28 20:04:48 +02:00
|
|
|
MAINTAINER= rakuco@FreeBSD.org
|
2014-01-02 01:20:19 +01:00
|
|
|
COMMENT?= File archiver with high compression ratio
|
2010-06-26 17:06:28 +02:00
|
|
|
|
2014-01-02 01:20:19 +01:00
|
|
|
LICENSE?= LGPL21
|
2012-11-25 23:49:35 +01:00
|
|
|
|
2014-01-02 01:20:19 +01:00
|
|
|
ALL_TARGET?= all3
|
2004-08-11 20:07:36 +02:00
|
|
|
USE_BZIP2= yes
|
|
|
|
MAKEFILE= makefile
|
2014-01-02 01:20:19 +01:00
|
|
|
MAKE_ARGS= OPTFLAGS="${CXXFLAGS}"
|
2004-11-26 02:19:10 +01:00
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}_${PORTVERSION}
|
2004-10-28 06:59:12 +02:00
|
|
|
|
2014-01-02 01:20:19 +01:00
|
|
|
CFLAGS_amd64= -fPIC
|
|
|
|
CFLAGS_ia64= -fPIC
|
2004-12-28 03:46:57 +01:00
|
|
|
|
2014-01-02 01:20:19 +01:00
|
|
|
OPTIONS_DEFINE= DOCS
|
2004-08-11 20:07:36 +02:00
|
|
|
|
2014-01-02 01:20:19 +01:00
|
|
|
.include <bsd.port.options.mk>
|
2005-04-30 06:43:20 +02:00
|
|
|
|
2004-10-28 06:59:12 +02:00
|
|
|
post-patch:
|
2014-01-02 01:20:19 +01:00
|
|
|
${SED} -e 's!g\+\+!${CXX}!' \
|
2005-01-30 13:23:53 +01:00
|
|
|
-e 's!gcc!${CC}!' \
|
2005-04-29 00:49:04 +02:00
|
|
|
-e 's/-D_LARGEFILE_SOURCE//' \
|
|
|
|
-e 's/-D_FILE_OFFSET_BITS=64//' \
|
2011-03-17 20:56:29 +01:00
|
|
|
${WRKSRC}/makefile.freebsd6 > ${WRKSRC}/makefile.machine
|
2011-01-01 18:31:57 +01:00
|
|
|
${REINPLACE_CMD} -e 's|{DEST_SHARE_DOC}|${DOCSDIR}|' \
|
2005-10-15 14:44:30 +02:00
|
|
|
${WRKSRC}/man1/*
|
2007-04-22 09:27:15 +02:00
|
|
|
${MV} ${WRKSRC}/README ${WRKSRC}/DOCS/readme.unix
|
2004-10-28 06:59:12 +02:00
|
|
|
|
2014-01-02 01:20:19 +01:00
|
|
|
.if ${SLAVE_PORT} == "no"
|
2004-08-11 20:07:36 +02:00
|
|
|
do-install:
|
2014-01-02 01:20:19 +01:00
|
|
|
${MKDIR} ${STAGEDIR}${PREFIX}/libexec/p7zip
|
|
|
|
.for BINARY in 7z 7za 7zr 7zCon.sfx
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/bin/${BINARY} ${STAGEDIR}${PREFIX}/libexec/p7zip
|
|
|
|
.endfor
|
2014-01-03 05:21:55 +01:00
|
|
|
${INSTALL_LIB} ${WRKSRC}/bin/7z.so ${STAGEDIR}${PREFIX}/libexec/p7zip
|
2014-01-02 01:20:19 +01:00
|
|
|
|
|
|
|
${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
|
2004-11-26 02:19:10 +01:00
|
|
|
.endif
|
2004-08-11 20:07:36 +02:00
|
|
|
|
2014-01-02 01:20:19 +01:00
|
|
|
.include <bsd.port.mk>
|