Annotation of pkgsrc/sysutils/coreutils/Makefile.common, revision 1.28
1.28 ! adam 1: # $NetBSD: Makefile.common,v 1.27 2023/04/18 14:41:31 ryoon Exp $
1.16 wiz 2: #
1.1 tnn 3: # used by sysutils/coreutils/Makefile
4: # used by misc/gnuls/Makefile
5:
1.28 ! adam 6: DISTNAME= coreutils-9.3
1.1 tnn 7: CATEGORIES= sysutils
8: MASTER_SITES= ${MASTER_SITE_GNU:=coreutils/}
1.7 richard 9: EXTRACT_SUFX= .tar.xz
1.1 tnn 10:
11: MAINTAINER= pkgsrc-users@NetBSD.org
1.23 rillig 12: HOMEPAGE= https://www.gnu.org/software/coreutils/
1.1 tnn 13: COMMENT= GNU basic file, shell and text manipulation utilities
1.3 jmmv 14: LICENSE= gnu-gpl-v3
1.1 tnn 15:
16: NOT_FOR_PLATFORM= NetBSD-2.0[D-H]-*
17:
18: PATCHDIR= ${.CURDIR}/../../sysutils/coreutils/patches
19: DISTINFO_FILE= ${.CURDIR}/../../sysutils/coreutils/distinfo
20:
1.28 ! adam 21: USE_PKGLOCALEDIR= yes
1.1 tnn 22: USE_TOOLS+= msgfmt msgmerge perl xgettext
1.28 ! adam 23: GNU_CONFIGURE= yes
1.1 tnn 24: TEST_TARGET= check
25:
26: .include "../../mk/bsd.prefs.mk"
27:
1.10 manu 28: # Otherwise configure aborts when ran by root
29: CONFIGURE_ENV+= FORCE_UNSAFE_CONFIGURE=yes
30:
1.15 jperkin 31: CONFIGURE_ENV.Interix+= ac_list_mounted_fs=found
1.1 tnn 32:
1.20 rillig 33: CONFIGURE_ENV.DragonFly+= gl_cv_search_pthread_join=-lpthread
1.5 marino 34:
1.14 jperkin 35: # Various tests rely on GCC's -O2 behaviour (e.g. -D__NO_INLINE__) and
36: # without it we run into undefined symbol issues.
1.16 wiz 37: .if ${OPSYS} == "Darwin" && ${PKGSRC_COMPILER:Mgcc}
1.14 jperkin 38: CFLAGS+= -O2
1.8 rodent 39: .endif
40:
1.17 jperkin 41: # clang on SunOS parses -errwarn as an -e entry point argument to the linker,
42: # which ignores it as it's a duplicate argument. Turn it off explicitly.
1.21 gdt 43: .if ${PKGSRC_COMPILER:Mclang}
1.17 jperkin 44: CONFIGURE_ENV.SunOS+= gl_cv_warn_c__errwarn=no
45: .endif
46:
1.13 jperkin 47: # Explicitly disable inotify support whilst it is Linux-specific.
1.15 jperkin 48: CONFIGURE_ENV.SunOS+= ac_cv_func_inotify_init=no
1.9 jperkin 49:
1.19 jperkin 50: # Identify Solaris vs illumos where appropriate
51: .if ${OPSYS} == "SunOS" && ${OS_VARIANT} != "Solaris"
52: CONFIGURE_ENV+= gl_cv_host_operating_system=illumos
53: .endif
54:
1.28 ! adam 55: .if ${MACHINE_PLATFORM:MDarwin-[9].*-*}
1.4 cheusov 56: CONFIGURE_ENV+= ac_cv_header_sys_acl_h=no jm_cv_func_svid_putenv=yes
1.1 tnn 57: .endif
58:
59: # XXX - this hack is bound to cause fallout on some platform at some point.
60: # How can we determine the API version of the builtin gettext?
61: .if ${OPSYS} != "Linux"
62: CONFIGURE_ENV+= gt_cv_func_gnugettext3_libintl=yes
63: .endif
64: CONFIGURE_ENV+= MKDIR_P=${MKDIR:Q}
65:
1.4 cheusov 66: CONFIGURE_ARGS+= --program-prefix=g
1.1 tnn 67:
68: #CONFIGURE_ARGS+= --enable-install-program=su
69: #.if ${OPSYS} == "NetBSD" || ${OPSYS} == "FreeBSD" || \
70: # ${OPSYS} == "OpenBSD"
1.20 rillig 71: #MAKE_FLAGS+= setuid_root_mode=a=rx
72: #MESSAGE_SRC= ${.CURDIR}/MESSAGE.gsu
1.1 tnn 73: #MESSAGE_SUBST+= OPSYS=${OPSYS:Q}
74: #.endif
CVSweb <webmaster@jp.NetBSD.org>