1 # $NetBSD: Makefile.common,v 1.5 2012/07/20 17:59:14 marino Exp $
2 # used by sysutils/coreutils/Makefile
3 # used by misc/gnuls/Makefile
5 DISTNAME= coreutils-8.13
7 MASTER_SITES= ${MASTER_SITE_GNU:=coreutils/}
9 MAINTAINER= pkgsrc-users@NetBSD.org
10 HOMEPAGE= http://www.gnu.org/software/coreutils/
11 COMMENT= GNU basic file, shell and text manipulation utilities
14 NOT_FOR_PLATFORM= NetBSD-2.0[D-H]-*
16 PATCHDIR= ${.CURDIR}/../../sysutils/coreutils/patches
17 DISTINFO_FILE= ${.CURDIR}/../../sysutils/coreutils/distinfo
20 USE_TOOLS+= msgfmt msgmerge perl xgettext
25 .include "../../mk/bsd.prefs.mk"
27 .if ${OPSYS} == "Interix"
28 CONFIGURE_ENV+= ac_list_mounted_fs=found
31 .if ${OPSYS} == "DragonFly"
32 CONFIGURE_ENV+= gl_cv_search_pthread_join=-lpthread
35 .if !empty(MACHINE_PLATFORM:MDarwin-[9].*-*)
36 CONFIGURE_ENV+= ac_cv_header_sys_acl_h=no jm_cv_func_svid_putenv=yes
39 # XXX - this hack is bound to cause fallout on some platform at some point.
40 # How can we determine the API version of the builtin gettext?
41 .if ${OPSYS} != "Linux"
42 CONFIGURE_ENV+= gt_cv_func_gnugettext3_libintl=yes
44 CONFIGURE_ENV+= MKDIR_P=${MKDIR:Q}
46 CONFIGURE_ARGS+= --program-prefix=g
48 #CONFIGURE_ARGS+= --enable-install-program=su
49 #.if ${OPSYS} == "NetBSD" || ${OPSYS} == "FreeBSD" || \
50 # ${OPSYS} == "OpenBSD"
51 #MAKE_FLAGS+= setuid_root_mode=a=rx
52 #MESSAGE_SRC= ${.CURDIR}/MESSAGE.gsu
53 #MESSAGE_SUBST+= OPSYS=${OPSYS:Q}