pkgsrc/sysutils/coreutils/Makefile.common
manu ac8113f48f Allow GNU coreuitls to be built as root
GNU coreutils's configure script will abort if ran as root. Although
pkgsrc can do that step under an unprivilegied user, there are still
situations, such as pkg_comp bulk builds, where the common usage is
to run as root. We therefore override configure's root check by setting
FORCE_UNSAFE_CONFIGURE in the environement.
2015-04-17 12:46:00 +00:00

67 lines
1.8 KiB
Text
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# $NetBSD: Makefile.common,v 1.10 2015/04/17 12:46:00 manu Exp $
# used by sysutils/coreutils/Makefile
# used by misc/gnuls/Makefile
DISTNAME= coreutils-8.22
CATEGORIES= sysutils
MASTER_SITES= ${MASTER_SITE_GNU:=coreutils/}
EXTRACT_SUFX= .tar.xz
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"
# Otherwise configure aborts when ran by root
CONFIGURE_ENV+= FORCE_UNSAFE_CONFIGURE=yes
.if ${OPSYS} == "Interix"
CONFIGURE_ENV+= ac_list_mounted_fs=found
.endif
.if ${OPSYS} == "DragonFly"
CONFIGURE_ENV+= gl_cv_search_pthread_join=-lpthread
.endif
.if ${OPSYS} == "Linux"
CONFIGURE_ENV+= FORCE_UNSAFE_CONFIGURE=1
.endif
# Explicitly disable inotify support whilst it is Linux-specific.
.if ${OPSYS} == "SunOS"
CONFIGURE_ENV+= ac_cv_func_inotify_init=no
.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