[BACK]Return to Makefile CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / archivers / unarchiver

File: [cvs.NetBSD.org] / pkgsrc / archivers / unarchiver / Makefile (download)

Revision 1.4, Wed Nov 23 16:19:16 2022 UTC (2 months, 1 week ago) by adam
Branch: MAIN
CVS Tags: pkgsrc-2022Q4-base, pkgsrc-2022Q4, HEAD
Changes since 1.3: +2 -2 lines

massive revision bump after textproc/icu update

# $NetBSD: Makefile,v 1.4 2022/11/23 16:19:16 adam Exp $

DISTNAME=	TheUnarchiverSource
PKGNAME=	unarchiver-3.10 # See ${WRKSRC}/Info.plist
PKGREVISION=	3
CATEGORIES=	archivers
MASTER_SITES=	https://cdn.theunarchiver.com/downloads/
DIST_SUBDIR=	${PKGNAME_NOREV}
EXTRACT_SUFX=	.zip

MAINTAINER=	pkgsrc-users@NetBSD.org
HOMEPAGE=	https://theunarchiver.com/command-line
COMMENT=	Command-line tools for The Unarchiver
LICENSE=	gnu-lgpl-v2.1

WRKSRC=		${WRKDIR}/XADMaster
USE_LANGUAGES=	c c++
USE_TOOLS+=	gmake

NO_CONFIGURE=		yes
GNUSTEP_MAKEFILE=	Makefile.linux
MAKE_FLAGS+=		CC=${CC} OBJCC=${OBJC} CXX=${CXX}

# Fix build with clang. See
# https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=230627
.include "../../devel/gnustep-make/gnustep.mk"
.if empty(PKG_OPTIONS:Mfragile)
BUILDLINK_TRANSFORM+=	rm:-DGNU_RUNTIME=1
BUILDLINK_TRANSFORM+=	rm:-fgnu-runtime
.endif

# Also remove -isystem /usr/include/GNUstep. Our GNUstep is not there.
BUILDLINK_TRANSFORM+=	rm:-isystem rm:/usr/include/GNUstep

INSTALLATION_DIRS+= bin ${PKGMANDIR}/man1 share/bash-completion/completions
do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/lsar ${DESTDIR}${PREFIX}/bin
	${INSTALL_PROGRAM} ${WRKSRC}/unar ${DESTDIR}${PREFIX}/bin
	${INSTALL_DATA} ${WRKDIR}/Extra/lsar.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
	${INSTALL_DATA} ${WRKDIR}/Extra/unar.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
	${INSTALL_DATA} ${WRKDIR}/Extra/lsar.bash_completion ${DESTDIR}${PREFIX}/share/bash-completion/completions/lsar
	${INSTALL_DATA} ${WRKDIR}/Extra/unar.bash_completion ${DESTDIR}${PREFIX}/share/bash-completion/completions/unar

.include "../../devel/gnustep-base/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"