sthen dfd5dae013 update to gdiff-3.8, mostly changes relating to FD handling
* 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.
2021-08-04 08:48:24 +00:00

36 lines
853 B
Makefile

# $OpenBSD: Makefile,v 1.24 2021/08/04 08:48:24 sthen Exp $
COMMENT= GNU versions of the diff utilities
VERSION= 3.8
EXTRACT_SUFX= .tar.xz
DISTNAME= diffutils-${VERSION}
PKGNAME= gdiff-${VERSION}
CATEGORIES= textproc
HOMEPAGE= https://www.gnu.org/software/diffutils/
# GPLv3+
PERMIT_PACKAGE= Yes
WANTLIB += c iconv intl sigsegv
MASTER_SITES= ${MASTER_SITE_GNU:=diffutils/}
LIB_DEPENDS= devel/gettext,-runtime \
devel/libsigsegv
CONFIGURE_STYLE= gnu
CONFIGURE_ARGS= --program-prefix=g
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
MODGNU_CONFIG_GUESS_DIRS= ${WRKSRC}/build-aux
# handle --program-prefix: the help-version test runs sdiff which calls
# out to gdiff, but it doesn't have that name until installed.
pre-test:
cd ${WRKBUILD}/src; ln -fs diff gdiff
TEST_FLAGS= HOME=/tmp
.include <bsd.port.mk>