blob: b8465ef0e2ef3be923f69591e50a1e20aad02046 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
|
# $NetBSD: Makefile,v 1.86 2014/10/09 13:44:32 wiz Exp $
#
# Please run 'make files/gtar.1' when updating version of this package
# to regenerate the man page. converters/help2man is needed.
.include "../../archivers/gtar/Makefile.common"
PKGNAME= ${DISTNAME:S/tar/gtar-base/}
COMMENT= The GNU tape archiver with remote magnetic tape support
LICENSE= gnu-gpl-v3
CONFLICTS= gcpio-[0-9]*
USE_FEATURES= snprintf
USE_PKGLOCALEDIR= yes
USE_TOOLS+= msgfmt
GNU_CONFIGURE= yes
INSTALLATION_DIRS= ${PKGMANDIR}/man1
INSTALLATION_DIRS+= ${PKGGNUDIR}bin ${PKGGNUDIR}libexec
INSTALLATION_DIRS+= ${PKGGNUDIR}${PKGMANDIR}/man1
.include "../../mk/bsd.prefs.mk"
CONFIGURE_ARGS+= --program-prefix=g
# lie to configure about gettext -- it does not need GNU gettext
CONFIGURE_ENV+= gt_cv_func_gnugettext2_libintl=yes
# allow configure to run as root
CONFIGURE_ENV+= FORCE_UNSAFE_CONFIGURE=1
.if ${OS_VARIANT} == "SCOOSR5"
# SCO OpenServer 5.0.7/3.2 has strtoimax in inttypes.h, but not in library.
CONFIGURE_ENV+= gl_cv_have_raw_decl_strtoimax=no
CONFIGURE_ENV+= ac_cv_have_decl_strtoimax=no
LDFLAGS.SCO_SV+= -lsocket
.endif
PLIST_VARS+= gtar rmt
TEST_TARGET= check
# don't include rmt if gtar won't build it
.if ${OPSYS} != "Interix" && ${OPSYS} != "Darwin" && ${OS_VARIANT} != "SCOOSR5"
PLIST.rmt= yes
.endif
# XXX see similar hack in coreutils.
.if ${OPSYS} != "Linux"
CONFIGURE_ENV+= gt_cv_func_gnugettext3_libintl=yes
.endif
.if ${OPSYS} == "MirBSD"
CPPFLAGS+= -Dstrtoimax=strtoll -Dstrtoumax=strtoull
.endif
SYMLINKS= bin/gtar ${PKGGNUDIR}bin/tar \
${PKGMANDIR}/man1/gtar.1 ${PKGGNUDIR}${PKGMANDIR}/man1/tar.1
.if defined(PLIST.rmt) && ${PLIST.rmt} == "yes"
SYMLINKS+= libexec/grmt ${PKGGNUDIR}libexec/rmt
.endif
post-install:
${INSTALL_DATA} ${WRKSRC}/doc/tar.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/gtar.1
.for o n in ${SYMLINKS}
${LN} -sf ${PREFIX}/${o} ${DESTDIR}${PREFIX}/${n}
.endfor
.include "../../devel/gettext-lib/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
|