some existing COMPILER lines with arch restrictions etc. In the usual case this is now using "COMPILER = base-clang ports-gcc base-gcc" on ports with c++ libraries in WANTLIB. This is basically intended to be a noop on architectures using clang as the system compiler, but help with other architectures where we currently have many ports knocked out due to building with an unsuitable compiler - - some ports require c++11/newer so the GCC version in base that is used on these archirtectures is too old. - some ports have conflicts where an executable is built with one compiler (e.g. gcc from base) but a library dependency is built with a different one (e.g. gcc from ports), resulted in mixing incompatible libraries in the same address space. devel/gmp is intentionally skipped as it's on the path to building gcc - the c++ library there is unused in ports (and not built by default upstream) so intending to disable building gmpcxx in a future commit.
58 lines
1.3 KiB
Makefile
58 lines
1.3 KiB
Makefile
# $OpenBSD: Makefile,v 1.45 2018/10/24 14:27:57 sthen Exp $
|
|
|
|
COMMENT-main= file archiver with high compression ratio
|
|
COMMENT-rar= rar modules for p7zip
|
|
|
|
V= 16.02
|
|
REVISION-main= 5
|
|
REVISION-rar= 2
|
|
DISTNAME= p7zip_${V}_src_all
|
|
PKGNAME= p7zip-${V}
|
|
PKGNAME-main= p7zip-${V}
|
|
PKGNAME-rar= p7zip-rar-${V}
|
|
CATEGORIES= archivers
|
|
FIX_EXTRACT_PERMISSIONS = Yes
|
|
|
|
HOMEPAGE= http://sourceforge.net/projects/p7zip/
|
|
|
|
MAINTAINER= Josh Grosse <josh@jggimi.net>
|
|
|
|
# LGPL, except unRar plugin which is licensed as Freeware
|
|
PERMIT_PACKAGE_CDROM-rar= no fee
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
# uses pledge()
|
|
WANTLIB= m pthread ${COMPILER_LIBCXX}
|
|
WANTLIB-main= ${WANTLIB} c
|
|
WANTLIB-rar= ${WANTLIB}
|
|
|
|
COMPILER = base-clang ports-gcc base-gcc
|
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=p7zip/}
|
|
EXTRACT_SUFX= .tar.bz2
|
|
|
|
MULTI_PACKAGES= -main -rar
|
|
|
|
RUN_DEPENDS-rar= ${BASE_PKGPATH},-main
|
|
|
|
WRKDIST= ${WRKDIR}/p7zip_${V}
|
|
|
|
USE_GMAKE= Yes
|
|
MAKE_FILE= makefile
|
|
MAKE_FLAGS= MYCC="${CC}" MYCXX="${CXX}" \
|
|
MYCFLAGS="${CFLAGS}" MYCXXFLAGS="${CXXFLAGS}"
|
|
|
|
ALL_TARGET= all3
|
|
TEST_TARGET= all_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
|
|
@chmod -R u=rwX,g=rX ${PREFIX}/share/doc/p7zip
|
|
|
|
.include <bsd.port.mk>
|