579e977969
CONFIGURE_ARGS.
67 lines
1.6 KiB
Makefile
67 lines
1.6 KiB
Makefile
# $NetBSD: Makefile,v 1.47 2005/12/05 23:55:01 rillig Exp $
|
|
#
|
|
|
|
DISTNAME= tar-1.15.1
|
|
PKGNAME= gtar-base-1.15.1
|
|
SVR4_PKGNAME= gtarb
|
|
CATEGORIES= archivers
|
|
MASTER_SITES= ${MASTER_SITE_GNU:=tar/}
|
|
|
|
MAINTAINER= tech-pkg@NetBSD.org
|
|
HOMEPAGE= http://www.gnu.org/software/tar/tar.html
|
|
COMMENT= The GNU tape archiver with remote magnetic tape support
|
|
|
|
BUILD_USES_MSGFMT= YES
|
|
|
|
PKG_INSTALLATION_TYPES= overwrite pkgviews
|
|
|
|
USE_PKGLOCALEDIR= YES
|
|
GNU_CONFIGURE= YES
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
.if defined(GNU_PROGRAM_PREFIX) && ${GNU_PROGRAM_PREFIX} != ""
|
|
GTAR_PROGRAM_PREFIX?= ${GNU_PROGRAM_PREFIX}
|
|
.else
|
|
GTAR_PROGRAM_PREFIX?= g
|
|
.endif
|
|
|
|
.if ${GTAR_PROGRAM_PREFIX} == ""
|
|
# pax installs a "tar" also
|
|
CONFLICTS+= pax-[0-9]*
|
|
.else
|
|
CONFIGURE_ARGS+= --program-prefix=${GTAR_PROGRAM_PREFIX:Q}
|
|
.endif
|
|
|
|
# lie to configure about gettext -- it does not need GNU gettext
|
|
CONFIGURE_ENV+= gt_cv_func_gnugettext2_libintl=yes
|
|
|
|
PLIST_SUBST+= GTAR_PROGRAM_PREFIX=${GTAR_PROGRAM_PREFIX:Q}
|
|
BUILD_DEFS+= GNU_PROGRAM_PREFIX
|
|
BUILD_DEFS+= GTAR_PROGRAM_PREFIX
|
|
|
|
TEST_TARGET= check
|
|
|
|
.if ${GTAR_PROGRAM_PREFIX} != "g"
|
|
PLIST_SUBST+= IF_BIN_GTAR=""
|
|
.else
|
|
PLIST_SUBST+= IF_BIN_GTAR="@comment "
|
|
.endif
|
|
|
|
# don't include rmt if gtar won't build it
|
|
.if ${OPSYS} != "Interix"
|
|
PLIST_SUBST+= IF_LIBEXEC_RMT=""
|
|
.else
|
|
PLIST_SUBST+= IF_LIBEXEC_RMT="@comment "
|
|
.endif
|
|
|
|
post-install:
|
|
${INSTALL_MAN_DIR} ${PREFIX}/man/man1
|
|
${INSTALL_DATA} ${FILESDIR}/gtar.1 \
|
|
${PREFIX}/man/man1/${GTAR_PROGRAM_PREFIX}tar.1
|
|
.if ${GTAR_PROGRAM_PREFIX} != "g"
|
|
${LN} -sf ${GTAR_PROGRAM_PREFIX}tar ${PREFIX}/bin/"gtar"
|
|
.endif
|
|
|
|
.include "../../devel/gettext-lib/buildlink3.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|