aboutsummaryrefslogtreecommitdiffstats
path: root/archivers/gtar/Makefile
blob: 6b1334d3e40bea0b7798c61924af7d0e10a9e162 (plain) (blame)
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
# New ports collection makefile for:    gtar
# Date created:     Sa   6 Jun 1998 10:24:51 CEST
# Whom:         Andreas Klemm <andreas@klemm.gtn.com>
#
# $FreeBSD$
#

PORTNAME=   tar
PORTVERSION=    1.25
PORTREVISION=   1
CATEGORIES= archivers sysutils
MASTER_SITES=   ${MASTER_SITE_GNU}
MASTER_SITE_SUBDIR= ${PORTNAME}
PKGNAMEPREFIX=  g

MAINTAINER= naddy@FreeBSD.org
COMMENT=    GNU version of the traditional tape archiver

# only force dependencies for compressors that have a single-letter option
#RUN_DEPENDS=   # see below

INFO=       tar

USE_XZ=     yes
USE_ICONV=  yes
GNU_CONFIGURE=  yes
MAKE_JOBS_SAFE= yes
CONFIGURE_ARGS= --program-prefix=g \
        --disable-silent-rules
CONFIGURE_ENV=  CPPFLAGS='-I${LOCALBASE}/include' \
        LDFLAGS='-L${LOCALBASE}/lib ${LDSTATIC}' \
        DEFAULT_ARCHIVE=/dev/sa0 \
        DEFAULT_RMT_COMMAND=/etc/rmt

.if defined(WANT_STATIC)
LDSTATIC=   -static
MAKE_ARGS+= LIBINTL='$$(LTLIBINTL)' LIBICONV='$$(LTLIBICONV)'
.else
LDSTATIC=
.endif

.if !defined(WITHOUT_NLS)
USE_GETTEXT=    yes
PLIST_SUB+= NLS=""
.else
CONFIGURE_ARGS+=--disable-nls
PLIST_SUB+= NLS="@comment "
.endif

regression-test: build
    @cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE} check

.include <bsd.port.pre.mk>

.if ${OSVERSION} < 800505 || (${OSVERSION} >= 900000 && ${OSVERSION} < 900012)
RUN_DEPENDS+=   xz:${PORTSDIR}/archivers/xz
.endif

# supply result to skip a test that will abort configure if run as root
.if ${OSVERSION} < 800040
CONFIGURE_ENV+= gl_cv_func_mknod_works=no
.else
CONFIGURE_ENV+= gl_cv_func_mknod_works=yes
.endif

.include <bsd.port.post.mk>