aboutsummaryrefslogtreecommitdiffstats
path: root/archivers/gtar/Makefile
blob: 3d466a47b51bc1cdd0635e2996599de6e1544610 (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
# Created by: Andreas Klemm <andreas@klemm.gtn.com>
# $FreeBSD$

PORTNAME=   tar
PORTVERSION=    1.27
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

LICENSE=    GPLv3

INFO=       tar

USES=       iconv:${STATIC_ARGS}
USE_XZ=     yes
GNU_CONFIGURE=  yes
CONFIGURE_ARGS= --program-prefix=g \
        --disable-silent-rules
CPPFLAGS+=  -I${LOCALBASE}/include
LDFLAGS+=   -L${LOCALBASE}/lib
CONFIGURE_ENV=  DEFAULT_ARCHIVE=/dev/sa0 \
        DEFAULT_RMT_COMMAND=/etc/rmt
# supply result to skip a test that will abort configure if run as root
CONFIGURE_ENV+= gl_cv_func_mknod_works=yes

OPTIONS_DEFINE= NLS STATIC
OPTIONS_SUB=    yes

NLS_USES=   gettext:${STATIC_ARGS}
NLS_CONFIGURE_ENABLE=   nls

STATIC_LDFLAGS= -static
STATIC_CONFIGURE_ENV=   SHLIBEXT=""

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MSTATIC}
STATIC_ARGS=    build
.else
STATIC_ARGS=    lib
.endif

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

.include <bsd.port.mk>