openbsd-ports/archivers/p7zip/Makefile
steven a2610717e5 import p7zip 4.44
p7zip is a port of 7-zip for *nix platforms.
7-zip is a file archiver with a high compression ratio.

from Josh Grosse <josh at jggimi.homeip.net> and
Stuart Henderson <stu at spacehopper.org>

with testing, feedback, and ok from naddy@
2007-04-20 17:50:05 +00:00

58 lines
1.3 KiB
Makefile

# $OpenBSD: Makefile,v 1.1.1.1 2007/04/20 17:50:05 steven Exp $
SHARED_ONLY= Yes
COMMENT-main= "file archiver with high compression ratio"
COMMENT-rar= "rar modules for p7zip"
V= 4.44
DISTNAME= p7zip_${V}_src_all
PKGNAME= p7zip-${V}
PKGNAME-main= p7zip-${V}
PKGNAME-rar= p7zip-rar-${V}
CATEGORIES= archivers
HOMEPAGE= http://www.7-zip.org/
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}
MAKE_FILE= makefile
MAKE_FLAGS= MYCC="${CC}" MYCXX="${CXX}" \
MYCFLAGS="${CFLAGS}" MYCXXFLAGS="${CXXFLAGS}"
ALL_TARGET= all3
REGRESS_TARGET= test
do-configure:
cp ${WRKSRC}/makefile.openbsd ${WRKSRC}/makefile.machine
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