aboutsummaryrefslogtreecommitdiffstats
path: root/archivers/gcpio/Makefile
blob: 4ce10671c5b71d74609c587ed6a74230e5a119cb (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
# New ports collection makefile for:    gcpio
# Date created:     2010-03-25
# Whom:         Christian Weisgerber <naddy@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=   cpio
PORTVERSION=    2.11
CATEGORIES= archivers
MASTER_SITES=   ${MASTER_SITE_GNU}
MASTER_SITE_SUBDIR= ${PORTNAME}
PKGNAMEPREFIX=  g

MAINTAINER= naddy@FreeBSD.org
COMMENT=    GNU cpio copies files to and from archives

USE_BZIP2=  yes
GNU_CONFIGURE=  yes
MAKE_JOBS_SAFE= yes
CONFIGURE_ARGS= --program-prefix=g \
        --disable-silent-rules \
        --with-rmt=/etc/rmt

.if !defined(WITHOUT_NLS)
USE_GETTEXT=    yes
PLIST_SUB+= NLS=""
CONFIGURE_ARGS+=--with-libintl-prefix="${LOCALBASE}"
.else
CONFIGURE_ARGS+=--disable-nls
PLIST_SUB+= NLS="@comment "
.endif

INFO=       cpio
MAN1=       gcpio.1

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

.include <bsd.port.pre.mk>

.if ${ARCH} == "sparc64"
BROKEN=     Does not compile on sparc64: invalid use of stat macro
.endif

.include <bsd.port.post.mk>