openbsd-ports/archivers/p7zip/Makefile
sthen 1f9324de36 update to 4.58 and fix homepage, from maintainer Josh Grosse with
tweaks by me. Changelog notes speed optimizations, bug fixes, utf8
support for .zip filenames, .lzma unpack added.
2008-06-10 03:24:37 +00:00

60 lines
1.4 KiB
Makefile

# $OpenBSD: Makefile,v 1.8 2008/06/10 03:24:37 sthen Exp $
SHARED_ONLY= Yes
COMMENT-main= file archiver with high compression ratio
COMMENT-rar= rar modules for p7zip
V= 4.58
DISTNAME= p7zip_${V}_src_all
PKGNAME= p7zip-${V}
PKGNAME-main= p7zip-${V}
PKGNAME-rar= p7zip-rar-${V}
CATEGORIES= archivers
HOMEPAGE= http://sourceforge.net/projects/p7zip/
MAINTAINER= Josh Grosse <josh@jggimi.homeip.net>
# LGPL, except unRar plugin which is licensed as Freeware
PERMIT_PACKAGE_CDROM-rar= no fee
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= no fee
PERMIT_DISTFILES_FTP= Yes
WANTLIB-main= c m pthread stdc++
WANTLIB-rar= pthread
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=p7zip/}
EXTRACT_SUFX= .tar.bz2
MULTI_PACKAGES= -main -rar
RUN_DEPENDS-rar=::archivers/p7zip,-main
WRKDIST= ${WRKDIR}/p7zip_${V}
USE_GMAKE= Yes
MAKE_FILE= makefile
MAKE_FLAGS= MYCC="${CC}" MYCXX="${CXX}" \
MYCFLAGS="${CFLAGS}" MYCXXFLAGS="${CXXFLAGS}"
ALL_TARGET= all3
REGRESS_TARGET= all_test
do-configure:
cp ${WRKSRC}/makefile.openbsd ${WRKSRC}/makefile.machine
cp ${WRKSRC}/makefile.parallel_jobs ${WRKSRC}/makefile
do-install:
@cd ${WRKBUILD} && ${SETENV} ${MAKE_ENV} PREFIX=${TRUEPREFIX} \
DESTDIR=${DESTDIR} /bin/sh install.sh
.include <bsd.port.mk>
# unaligned access error in NCompress::NPPMD::CInfo::CreateSuccessors()
.if ${MACHINE_ARCH} == "alpha"
CXXFLAGS:= ${CXXFLAGS:N-O*}
.endif