Annotation of pkgsrc/sysutils/coreutils/Makefile.common, revision 1.37
1.37 ! ryoon 1: # $NetBSD: Makefile.common,v 1.36 2025/11/11 09:31:59 wiz Exp $
1.16 wiz 2: #
1.1 tnn 3: # used by sysutils/coreutils/Makefile
4: # used by misc/gnuls/Makefile
5:
1.36 wiz 6: DISTNAME= coreutils-9.9
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.20 rillig 31: CONFIGURE_ENV.DragonFly+= gl_cv_search_pthread_join=-lpthread
1.5 marino 32:
1.14 jperkin 33: # Various tests rely on GCC's -O2 behaviour (e.g. -D__NO_INLINE__) and
34: # without it we run into undefined symbol issues.
1.16 wiz 35: .if ${OPSYS} == "Darwin" && ${PKGSRC_COMPILER:Mgcc}
1.14 jperkin 36: CFLAGS+= -O2
1.8 rodent 37: .endif
38:
1.17 jperkin 39: # clang on SunOS parses -errwarn as an -e entry point argument to the linker,
40: # which ignores it as it's a duplicate argument. Turn it off explicitly.
1.21 gdt 41: .if ${PKGSRC_COMPILER:Mclang}
1.17 jperkin 42: CONFIGURE_ENV.SunOS+= gl_cv_warn_c__errwarn=no
43: .endif
44:
1.13 jperkin 45: # Explicitly disable inotify support whilst it is Linux-specific.
1.15 jperkin 46: CONFIGURE_ENV.SunOS+= ac_cv_func_inotify_init=no
1.9 jperkin 47:
1.19 jperkin 48: # Identify Solaris vs illumos where appropriate
49: .if ${OPSYS} == "SunOS" && ${OS_VARIANT} != "Solaris"
50: CONFIGURE_ENV+= gl_cv_host_operating_system=illumos
51: .endif
52:
1.29 jperkin 53: # Ignore required y2038 support
1.34 schmonz 54: .if ${MACHINE_PLATFORM:MSunOS-*-i386} || ${MACHINE_PLATFORM:MDarwin-[8].*-*}
1.29 jperkin 55: CONFIGURE_ENV+= ac_cv_sys_year2038_opts="none needed"
56: .endif
57:
1.28 adam 58: .if ${MACHINE_PLATFORM:MDarwin-[9].*-*}
1.4 cheusov 59: CONFIGURE_ENV+= ac_cv_header_sys_acl_h=no jm_cv_func_svid_putenv=yes
1.1 tnn 60: .endif
61:
62: # XXX - this hack is bound to cause fallout on some platform at some point.
63: # How can we determine the API version of the builtin gettext?
64: .if ${OPSYS} != "Linux"
65: CONFIGURE_ENV+= gt_cv_func_gnugettext3_libintl=yes
1.37 ! ryoon 66: .else # Linux
! 67: # To build chcon etc.
! 68: CONFIGURE_ARGS+= --with-selinux
! 69: PLIST.linux= yes
1.1 tnn 70: .endif
71: CONFIGURE_ENV+= MKDIR_P=${MKDIR:Q}
72:
1.4 cheusov 73: CONFIGURE_ARGS+= --program-prefix=g
1.1 tnn 74:
75: #CONFIGURE_ARGS+= --enable-install-program=su
76: #.if ${OPSYS} == "NetBSD" || ${OPSYS} == "FreeBSD" || \
77: # ${OPSYS} == "OpenBSD"
1.20 rillig 78: #MAKE_FLAGS+= setuid_root_mode=a=rx
79: #MESSAGE_SRC= ${.CURDIR}/MESSAGE.gsu
1.1 tnn 80: #MESSAGE_SUBST+= OPSYS=${OPSYS:Q}
81: #.endif
CVSweb <webmaster@jp.NetBSD.org>