Annotation of pkgsrc/sysutils/coreutils/Makefile.common, revision 1.32

1.32    ! wiz         1: # $NetBSD: Makefile.common,v 1.31 2024/06/17 08:52:33 adam Exp $
1.16      wiz         2: #
1.1       tnn         3: # used by sysutils/coreutils/Makefile
                      4: # used by misc/gnuls/Makefile
                      5: 
1.32    ! wiz         6: DISTNAME=      coreutils-9.6
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.29      jperkin    55: # Ignore required y2038 support
                     56: .if ${MACHINE_PLATFORM:MSunOS-*-i386}
                     57: CONFIGURE_ENV+=                ac_cv_sys_year2038_opts="none needed"
                     58: .endif
                     59: 
1.28      adam       60: .if ${MACHINE_PLATFORM:MDarwin-[9].*-*}
1.4       cheusov    61: CONFIGURE_ENV+=                ac_cv_header_sys_acl_h=no jm_cv_func_svid_putenv=yes
1.1       tnn        62: .endif
                     63: 
                     64: # XXX - this hack is bound to cause fallout on some platform at some point.
                     65: # How can we determine the API version of the builtin gettext?
                     66: .if ${OPSYS} != "Linux"
                     67: CONFIGURE_ENV+=                gt_cv_func_gnugettext3_libintl=yes
                     68: .endif
                     69: CONFIGURE_ENV+=                MKDIR_P=${MKDIR:Q}
                     70: 
1.4       cheusov    71: CONFIGURE_ARGS+=       --program-prefix=g
1.1       tnn        72: 
                     73: #CONFIGURE_ARGS+=      --enable-install-program=su
                     74: #.if ${OPSYS} == "NetBSD" ||  ${OPSYS} == "FreeBSD" || \
                     75: #  ${OPSYS} == "OpenBSD"
1.20      rillig     76: #MAKE_FLAGS+=          setuid_root_mode=a=rx
                     77: #MESSAGE_SRC=          ${.CURDIR}/MESSAGE.gsu
1.1       tnn        78: #MESSAGE_SUBST+=       OPSYS=${OPSYS:Q}
                     79: #.endif

CVSweb <webmaster@jp.NetBSD.org>