summaryrefslogtreecommitdiff
path: root/sysutils/coreutils/Makefile.common
blob: 9df8d94b854b678c49932cf03aa79196929899c1 (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
# $NetBSD: Makefile.common,v 1.6 2012/10/23 19:50:56 asau Exp $
# used by sysutils/coreutils/Makefile
# used by misc/gnuls/Makefile

DISTNAME=	coreutils-8.13
CATEGORIES=	sysutils
MASTER_SITES=	${MASTER_SITE_GNU:=coreutils/}

MAINTAINER=	pkgsrc-users@NetBSD.org
HOMEPAGE=	http://www.gnu.org/software/coreutils/
COMMENT=	GNU basic file, shell and text manipulation utilities
LICENSE=	gnu-gpl-v3

NOT_FOR_PLATFORM=	NetBSD-2.0[D-H]-*

PATCHDIR=		${.CURDIR}/../../sysutils/coreutils/patches
DISTINFO_FILE=		${.CURDIR}/../../sysutils/coreutils/distinfo

GNU_CONFIGURE=		YES
USE_TOOLS+=		msgfmt msgmerge perl xgettext
USE_PKGLOCALEDIR=	YES

TEST_TARGET=		check

.include "../../mk/bsd.prefs.mk"

.if ${OPSYS} == "Interix"
CONFIGURE_ENV+=		ac_list_mounted_fs=found
.endif

.if ${OPSYS} == "DragonFly"
CONFIGURE_ENV+= 	gl_cv_search_pthread_join=-lpthread
.endif

.if !empty(MACHINE_PLATFORM:MDarwin-[9].*-*)
CONFIGURE_ENV+=		ac_cv_header_sys_acl_h=no jm_cv_func_svid_putenv=yes
.endif

# XXX - this hack is bound to cause fallout on some platform at some point.
# How can we determine the API version of the builtin gettext?
.if ${OPSYS} != "Linux"
CONFIGURE_ENV+=		gt_cv_func_gnugettext3_libintl=yes
.endif
CONFIGURE_ENV+=		MKDIR_P=${MKDIR:Q}

CONFIGURE_ARGS+=	--program-prefix=g

#CONFIGURE_ARGS+=	--enable-install-program=su
#.if ${OPSYS} == "NetBSD" ||  ${OPSYS} == "FreeBSD" || \
#  ${OPSYS} == "OpenBSD"
#MAKE_FLAGS+=	setuid_root_mode=a=rx
#MESSAGE_SRC=	${.CURDIR}/MESSAGE.gsu
#MESSAGE_SUBST+=	OPSYS=${OPSYS:Q}
#.endif