1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-02 01:20:54 +00:00
freebsd-ports/archivers/p7zip/Makefile
FUJISHIMA Satsuki c734c7be74 update to 4.12.
o install only monolithic binary 7za.
o create a compatibility symlink 7z -> 7za not to violate POLA.
o respect NOPORTDOCS.
o retire ONLY_FOR_ARCHS. This version runs on sparc64.
o tested on i386, amd64, ia64, alpha and sparc64.

Changelogs:
4.10 -> 4.12 http://sourceforge.net/project/shownotes.php?release_id=283730
0.91 -> 4.10 http://sourceforge.net/project/shownotes.php?release_id=277286

Reviewed by:	maintainer
2004-11-26 01:19:10 +00:00

54 lines
1.4 KiB
Makefile

# New ports collection makefile for: p7zip
# Date created: Sun Jul 18 15:07:26 CEST 2004
# Whom: Juergen Lock <nox@jelal.kn-bremen.de>
#
# $FreeBSD$
#
PORTNAME= p7zip
PORTVERSION= 4.12
CATEGORIES= archivers
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= p7zip
DISTNAME= ${PORTNAME}_${PORTVERSION}_src
MAINTAINER= nox@jelal.kn-bremen.de
COMMENT= Command line versions of 7-zip
USE_BZIP2= yes
USE_GMAKE= yes
MAKEFILE= makefile
WRKSRC= ${WRKDIR}/${PORTNAME}_${PORTVERSION}
PLIST_FILES= "@unexec ${RM} %D/bin/7z"
PLIST_FILES+= bin/7za
PLIST_FILES+= "@exec ${LN} -sf 7za %D/bin/7z"
PORTDOCS= *
.include <bsd.port.pre.mk>
.if ${OSVERSION} < 500039
BROKEN= 'Requires wchar functions (mbrtowc(3) etc.) for compilation'
.endif
post-patch:
${SED} -e 's/-O2/${CFLAGS} ${PTHREAD_CFLAGS}/' \
-e 's/g\+\+/${CXX}/' \
-e 's/gcc/${CC}/' \
-e '/LITTLE_ENDIAN/d' \
-e 's/-lc_r/${PTHREAD_LIBS}/' \
${WRKSRC}/makefile.freebsd_x86 > ${WRKSRC}/makefile.machine
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/bin/7za ${PREFIX}/bin
${LN} -sf 7za ${PREFIX}/bin/7z
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
${PAX} -rw -s,${WRKSRC}/DOCS,, ${WRKSRC}/DOCS ${DOCSDIR}
${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${DOCSDIR}
${FIND} ${DOCSDIR} -type d | ${XARGS} ${CHMOD} 755
${FIND} ${DOCSDIR} -type f | ${XARGS} ${CHMOD} ${SHAREMODE}
.endif
.include <bsd.port.post.mk>