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

1.22    ! mef         1: # $NetBSD: Makefile.common,v 1.21 2019/11/24 01:05:00 gdt Exp $
1.16      wiz         2: #
1.1       tnn         3: # used by sysutils/coreutils/Makefile
                      4: # used by misc/gnuls/Makefile
                      5: 
1.22    ! mef         6: DISTNAME=      coreutils-8.31
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
                     12: HOMEPAGE=      http://www.gnu.org/software/coreutils/
                     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: 
                     21: GNU_CONFIGURE=         YES
                     22: USE_TOOLS+=            msgfmt msgmerge perl xgettext
                     23: USE_PKGLOCALEDIR=      YES
                     24: 
1.11      mef        25: # --- man/chroot.1 ---
                     26: #   GEN      man/chroot.1
                     27: # help2man: can't get `--help' info from chroot.td/chroot
                     28: # Try `--no-discard-stderr' if option outputs to stderr
                     29: # *** [man/chroot.1] Error code 127
                     30: MAKE_JOBS_SAFE=                NO
                     31: 
1.1       tnn        32: TEST_TARGET=           check
                     33: 
                     34: .include "../../mk/bsd.prefs.mk"
                     35: 
1.10      manu       36: # Otherwise configure aborts when ran by root
                     37: CONFIGURE_ENV+=                FORCE_UNSAFE_CONFIGURE=yes
                     38: 
1.15      jperkin    39: CONFIGURE_ENV.Interix+=        ac_list_mounted_fs=found
1.1       tnn        40: 
1.20      rillig     41: CONFIGURE_ENV.DragonFly+=      gl_cv_search_pthread_join=-lpthread
1.5       marino     42: 
1.14      jperkin    43: # Various tests rely on GCC's -O2 behaviour (e.g. -D__NO_INLINE__) and
                     44: # without it we run into undefined symbol issues.
1.16      wiz        45: .if ${OPSYS} == "Darwin" && ${PKGSRC_COMPILER:Mgcc}
1.14      jperkin    46: CFLAGS+=               -O2
1.8       rodent     47: .endif
                     48: 
1.17      jperkin    49: # clang on SunOS parses -errwarn as an -e entry point argument to the linker,
                     50: # which ignores it as it's a duplicate argument.  Turn it off explicitly.
1.21      gdt        51: .if ${PKGSRC_COMPILER:Mclang}
1.17      jperkin    52: CONFIGURE_ENV.SunOS+=  gl_cv_warn_c__errwarn=no
                     53: .endif
                     54: 
1.13      jperkin    55: # Explicitly disable inotify support whilst it is Linux-specific.
1.15      jperkin    56: CONFIGURE_ENV.SunOS+=  ac_cv_func_inotify_init=no
1.9       jperkin    57: 
1.19      jperkin    58: # Identify Solaris vs illumos where appropriate
                     59: .if ${OPSYS} == "SunOS" && ${OS_VARIANT} != "Solaris"
                     60: CONFIGURE_ENV+=                gl_cv_host_operating_system=illumos
                     61: .endif
                     62: 
1.1       tnn        63: .if !empty(MACHINE_PLATFORM:MDarwin-[9].*-*)
1.4       cheusov    64: CONFIGURE_ENV+=                ac_cv_header_sys_acl_h=no jm_cv_func_svid_putenv=yes
1.1       tnn        65: .endif
                     66: 
                     67: # XXX - this hack is bound to cause fallout on some platform at some point.
                     68: # How can we determine the API version of the builtin gettext?
                     69: .if ${OPSYS} != "Linux"
                     70: CONFIGURE_ENV+=                gt_cv_func_gnugettext3_libintl=yes
                     71: .endif
                     72: CONFIGURE_ENV+=                MKDIR_P=${MKDIR:Q}
                     73: 
1.4       cheusov    74: CONFIGURE_ARGS+=       --program-prefix=g
1.1       tnn        75: 
                     76: #CONFIGURE_ARGS+=      --enable-install-program=su
                     77: #.if ${OPSYS} == "NetBSD" ||  ${OPSYS} == "FreeBSD" || \
                     78: #  ${OPSYS} == "OpenBSD"
1.20      rillig     79: #MAKE_FLAGS+=          setuid_root_mode=a=rx
                     80: #MESSAGE_SRC=          ${.CURDIR}/MESSAGE.gsu
1.1       tnn        81: #MESSAGE_SUBST+=       OPSYS=${OPSYS:Q}
                     82: #.endif

CVSweb <webmaster@jp.NetBSD.org>