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

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

CVSweb <webmaster@jp.NetBSD.org>