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

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

Revision 1.26, Tue Sep 11 19:46:52 2012 UTC (8 years, 9 months ago) by asau
Branch: MAIN
CVS Tags: pkgsrc-2013Q3-base, pkgsrc-2013Q3, pkgsrc-2013Q2-base, pkgsrc-2013Q2, pkgsrc-2013Q1-base, pkgsrc-2013Q1, pkgsrc-2012Q4-base, pkgsrc-2012Q4, pkgsrc-2012Q3-base, pkgsrc-2012Q3
Changes since 1.25: +1 -2 lines

"user-destdir" is default these days

# $NetBSD: Makefile,v 1.26 2012/09/11 19:46:52 asau Exp $

DISTNAME=	arj-3.10.22
CATEGORIES=	archivers
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE:=arj/}

MAINTAINER=	pkgsrc-users@NetBSD.org
HOMEPAGE=	http://arj.sourceforge.net/
COMMENT=	Open-source ARJ archiver

PKG_INSTALLATION_TYPES=	overwrite pkgviews

MAKE_JOBS_SAFE=		no

USE_TOOLS+=		autoconf gmake
GNU_CONFIGURE=		yes
CONFIGURE_ENV+=		LD=${LD:Q}
CONFIGURE_SCRIPT=	${WRKSRC}/gnu/configure
MAKE_FILE=		makefile.gnu
MAKE_FLAGS+=		INSTALL_DIR=${INSTALL_PROGRAM_DIR:Q}

INSTALL_UNSTRIPPED=	yes # $LOCALBASE/bin/arj must have symbol table
ARJ_DOCSDIR=		${PREFIX}/share/doc/arj

.include "../../mk/compiler.mk"

.if !empty(CC_VERSION:Mgcc-4.*)
CFLAGS+=	-fno-unit-at-a-time
.endif

pre-configure:
	${CP} -f ${WRKSRC}/environ.c ${WRKSRC}/environ.c.1
	${SED} -e 's|@PREFIX@|${PREFIX}|g' < ${WRKSRC}/environ.c.1	\
			> ${WRKSRC}/environ.c
	${RM} -f ${WRKSRC}/environ.c.1
	cd ${WRKSRC}/gnu && autoconf

INSTALLATION_DIRS+=	${ARJ_DOCSDIR}

post-install:
	${INSTALL_DATA} ${WRKSRC}/doc/COPYING ${WRKSRC}/doc/debug.txt 	\
					${DESTDIR}${ARJ_DOCSDIR}
.for i in arjl.txt arjs.txt history.txt readme.txt unix.txt
	${INSTALL_DATA} ${WRKSRC}/resource/en/${i:Q} ${DESTDIR}${ARJ_DOCSDIR}
.endfor

.include "../../mk/bsd.pkg.mk"