2011-12-18 04:01:19 -05:00
|
|
|
# $OpenBSD: Makefile,v 1.19 2011/12/18 09:01:19 ajacoutot Exp $
|
2007-04-20 13:50:05 -04:00
|
|
|
|
|
|
|
SHARED_ONLY= Yes
|
|
|
|
|
2007-09-10 06:52:40 -04:00
|
|
|
COMMENT-main= file archiver with high compression ratio
|
|
|
|
COMMENT-rar= rar modules for p7zip
|
2007-04-20 13:50:05 -04:00
|
|
|
|
2011-03-21 08:54:17 -04:00
|
|
|
V= 9.20.1
|
2007-04-20 13:50:05 -04:00
|
|
|
DISTNAME= p7zip_${V}_src_all
|
|
|
|
PKGNAME= p7zip-${V}
|
|
|
|
PKGNAME-main= p7zip-${V}
|
|
|
|
PKGNAME-rar= p7zip-rar-${V}
|
2011-12-04 18:24:20 -05:00
|
|
|
REVISION-main= 0
|
|
|
|
REVISION-rar= 1
|
2007-04-20 13:50:05 -04:00
|
|
|
CATEGORIES= archivers
|
|
|
|
|
2008-06-09 23:24:37 -04:00
|
|
|
HOMEPAGE= http://sourceforge.net/projects/p7zip/
|
2007-04-20 13:50:05 -04:00
|
|
|
|
|
|
|
MAINTAINER= Josh Grosse <josh@jggimi.homeip.net>
|
|
|
|
|
|
|
|
# LGPL, except unRar plugin which is licensed as Freeware
|
2007-09-15 06:14:32 -04:00
|
|
|
PERMIT_PACKAGE_CDROM-rar= no fee
|
2007-04-20 13:50:05 -04:00
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
2007-09-15 06:14:32 -04:00
|
|
|
PERMIT_DISTFILES_CDROM= no fee
|
2007-04-20 13:50:05 -04:00
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
|
2011-10-12 04:37:39 -04:00
|
|
|
WANTLIB= m pthread stdc++
|
|
|
|
WANTLIB-main= ${WANTLIB} c
|
|
|
|
WANTLIB-rar= ${WANTLIB}
|
2007-04-20 13:50:05 -04:00
|
|
|
|
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=p7zip/}
|
|
|
|
EXTRACT_SUFX= .tar.bz2
|
|
|
|
|
|
|
|
MULTI_PACKAGES= -main -rar
|
|
|
|
|
2010-11-14 19:22:45 -05:00
|
|
|
RUN_DEPENDS-rar= ${BASE_PKGPATH},-main
|
2007-04-20 13:50:05 -04:00
|
|
|
|
|
|
|
WRKDIST= ${WRKDIR}/p7zip_${V}
|
|
|
|
|
2007-09-10 06:52:40 -04:00
|
|
|
USE_GMAKE= Yes
|
2007-04-20 13:50:05 -04:00
|
|
|
MAKE_FILE= makefile
|
|
|
|
MAKE_FLAGS= MYCC="${CC}" MYCXX="${CXX}" \
|
|
|
|
MYCFLAGS="${CFLAGS}" MYCXXFLAGS="${CXXFLAGS}"
|
|
|
|
|
|
|
|
ALL_TARGET= all3
|
2007-05-29 17:55:05 -04:00
|
|
|
REGRESS_TARGET= all_test
|
2007-04-20 13:50:05 -04:00
|
|
|
|
|
|
|
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>
|