Annotation of pkgsrc/sysutils/coreutils/Makefile, revision 1.78

1.78    ! jperkin     1: # $NetBSD: Makefile,v 1.77 2020/08/31 18:11:26 wiz Exp $
1.1       wiz         2: 
1.78    ! jperkin     3: PKGREVISION= 2
1.47      tnn         4: .include "../../sysutils/coreutils/Makefile.common"
1.28      tron        5: 
1.57      sbd         6: CONFIGURE_ARGS+=       --without-gmp
1.54      cheusov     7: 
1.49      asau        8: CONFLICTS=     fileutils-[0-9]* gnuls-[0-9]* linuxls-[0-9]* sh-utils-[0-9]* textutils-[0-9]*
1.1       wiz         9: 
1.18      recht      10: # devel/id-utils installs a 'gid' program, so conflict with it
                     11: # databases/geneweb a 'gwc' program, so conflict with it
                     12: # graphics/graphviz installs a 'gpr' program, so conflict with it
1.3       tron       13: CONFLICTS+=            id-utils-[0-9]* gnome-utils<1.4.1.2nb2
1.16      recht      14: CONFLICTS+=            geneweb-[0-9]*
1.31      wiz        15: CONFLICTS+=            graphviz<1.12
1.17      grant      16: 
1.47      tnn        17: INFO_FILES=            yes
                     18: 
                     19: # Exclude programs from PLIST which aren't built on a platform.
1.52      jmmv       20: PLIST_VARS+=           hostid stdbuf
1.47      tnn        21: .if ${OPSYS} != "Interix"
                     22: PLIST.hostid=          yes
                     23: .endif
1.53      joerg      24: 
1.62      jperkin    25: # This should really only be defined if building stdbuf, however we cannot
                     26: # set this variable after including compiler.mk, so we take the hit of
                     27: # setting it unconditionally for now.
                     28: USE_GCC_RUNTIME=       yes
                     29: 
1.53      joerg      30: .include "../../mk/compiler.mk"
                     31: 
1.67      jperkin    32: .if (${OBJECT_FMT} == "ELF" || ${OBJECT_FMT} == "Mach-O") && \
1.53      joerg      33:     (!empty(PKGSRC_COMPILER:Mgcc) || !empty(PKGSRC_COMPILER:Mclang))
1.52      jmmv       34: PLIST.stdbuf=          yes
                     35: .endif
1.1       wiz        36: 
1.68      jperkin    37: # Ensure libstdbuf.so has a valid library name otherwise REQUIRES will
                     38: # record the relative path of the object output file.
1.70      jperkin    39: SUBST_CLASSES.Darwin+= libname
1.68      jperkin    40: SUBST_STAGE.libname=   pre-configure
                     41: SUBST_FILES.libname=   Makefile.in
                     42: SUBST_SED.libname=     -e '/^src_libstdbuf_so_LDFLAGS/s,$$, -install_name ${PREFIX}/libexec/coreutils/glibstdbuf.so,'
                     43: 
1.72      wiz        44: PROGS= [ b2sum base32 base64 basename cat chcon chgrp chmod chown chroot cksum comm \
1.54      cheusov    45:        cp csplit cut date dd df dir dircolors dirname du hostid echo env \
                     46:        expand expr factor false fmt fold groups head id install join kill \
                     47:        link ln logname ls md5sum mkdir mkfifo mknod mktemp mv nice nl \
1.61      richard    48:        nohup nproc numfmt od paste pathchk pinky pr printenv printf ptx pwd \
                     49:        readlink realpath rm rmdir runcon seq sha1sum sha224sum sha256sum \
                     50:        sha384sum sha512sum shred shuf sleep sort split stat stdbuf stty sum \
                     51:        sync tac tail tee test timeout touch tr true truncate tsort tty uname \
1.54      cheusov    52:        unexpand uniq unlink uptime users vdir wc who whoami yes
                     53: 
1.55      cheusov    54: AUTO_MKDIRS=   yes
1.54      cheusov    55: 
                     56: post-install:
1.55      cheusov    57: .for f in ${PROGS}
1.54      cheusov    58:        set -e; \
1.55      cheusov    59:        if ${TEST} -f ${DESTDIR}${PREFIX}/bin/g${f:Q}; then \
1.59      jperkin    60:          ${LN} -sf ${PREFIX}/bin/g${f:Q} ${DESTDIR}${PREFIX}/${PKGGNUDIR}bin/${f:Q}; \
1.55      cheusov    61:        fi; \
                     62:        if ${TEST} -f ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/g${f:Q}.1; then \
1.59      jperkin    63:          ${LN} -sf ${PREFIX}/${PKGMANDIR}/man1/g${f:Q}.1 ${DESTDIR}${PREFIX}/${PKGGNUDIR}${PKGMANDIR}/man1/${f:Q}.1; \
1.55      cheusov    64:        fi
                     65: .endfor
1.54      cheusov    66: 
1.43      tnn        67: #CONFIGURE_ARGS+=      --enable-install-program=su
                     68: #.if ${OPSYS} == "NetBSD" ||  ${OPSYS} == "FreeBSD" || \
                     69: #  ${OPSYS} == "OpenBSD"
1.47      tnn        70: #MAKE_FLAGS+=          setuid_root_mode=a=rx
                     71: #MESSAGE_SRC=          ${.CURDIR}/MESSAGE.gsu
1.43      tnn        72: #MESSAGE_SUBST+=       OPSYS=${OPSYS:Q}
                     73: #.endif
1.13      recht      74: 
1.20      snj        75: .include "../../converters/libiconv/buildlink3.mk"
                     76: .include "../../devel/gettext-lib/buildlink3.mk"
1.1       wiz        77: .include "../../mk/bsd.pkg.mk"

CVSweb <webmaster@jp.NetBSD.org>