pkgsrc/devel/diffutils/Makefile
nia 4392c56a47 diffutils: update to 3.8
* Noteworthy changes in release 3.8 (2021-08-01) [stable]

** Incompatible changes

  diff no longer treats a closed stdin as representing an absent file
  in usage like 'diff --new-file - foo <&-'.  This feature was rarely
  if ever used and was not portable to POSIX platforms that reopen
  stdin on exec, such as SELinux if the process underwent an AT_SECURE
  transition, or HP-UX even if not setuid.

** Bug fixes

  diff and related programs no longer get confused if stdin, stdout,
  or stderr are closed.  Previously, they sometimes opened files into
  file descriptors 0, 1, or 2 and then mistakenly did I/O with them
  that was intended for stdin, stdout, or stderr.

  cmp, diff and sdiff no longer treat negative command-line
  option-arguments as if they were large positive numbers.
2022-04-12 14:24:16 +00:00

32 lines
1 KiB
Makefile

# $NetBSD: Makefile,v 1.41 2022/04/12 14:24:16 nia Exp $
DISTNAME= diffutils-3.8
CATEGORIES= devel
MASTER_SITES= ${MASTER_SITE_GNU:=diffutils/}
EXTRACT_SUFX= .tar.xz
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= https://www.gnu.org/software/diffutils/diffutils.html
COMMENT= GNU diff utilities - find the differences between files
LICENSE= gnu-gpl-v3
AUTO_MKDIRS= yes
INFO_FILES= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS+= --program-prefix=g
CONFIGURE_ENV+= gt_cv_func_gnugettext1_libintl=yes
CONFIGURE_ENV.SunOS+= ac_cv_sys_xsi_stack_overflow_heuristic=no
SUBST_CLASSES+= diff
SUBST_STAGE.diff= pre-configure
SUBST_FILES.diff= src/Makefile.in
SUBST_SED.diff= -e 's;%DEFAULT_DIFF_PROGRAM%;${PREFIX}/bin/gdiff;'
post-install:
.for f in cmp diff diff3 sdiff
${LN} -sf ${PREFIX}/bin/g${f} ${DESTDIR}${PREFIX}/${PKGGNUDIR}bin/${f}
${LN} -sf ${PREFIX}/${PKGMANDIR}/man1/g${f}.1 ${DESTDIR}${PREFIX}/${PKGGNUDIR}${PKGMANDIR}/man1/${f}.1
.endfor
.include "../../devel/gettext-lib/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"