0261c02566
dependency cycles.
40 lines
1.1 KiB
Makefile
40 lines
1.1 KiB
Makefile
# $NetBSD: Makefile,v 1.39 2014/01/03 14:55:47 joerg Exp $
|
|
|
|
DISTNAME= patch-2.7.1
|
|
CATEGORIES= devel
|
|
MASTER_SITES= ${MASTER_SITE_GNU:=patch/}
|
|
EXTRACT_SUFX= .tar.xz
|
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
|
HOMEPAGE= http://www.gnu.org/software/patch/patch.html
|
|
COMMENT= Patch files using diff output
|
|
LICENSE= gnu-gpl-v3
|
|
|
|
PKG_INSTALLATION_TYPES= overwrite pkgviews
|
|
|
|
GNU_CONFIGURE= yes
|
|
USE_TOOLS+= awk
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
CONFIGURE_ARGS+= --program-prefix=g
|
|
|
|
INSTALLATION_DIRS= ${PKGGNUDIR}bin ${PKGGNUDIR}${PKGMANDIR}/man1
|
|
|
|
do-patch:
|
|
${MV} ${WRKSRC}/src/pch.c ${WRKSRC}/src/pch.c.orig
|
|
${AWK} '/#include <pch.h>/{print $$0 "\n#include <sys/param.h>";next;}\
|
|
/^#if HAVE_SETMODE_DOS/ \
|
|
{gsub(/^#if HAVE_SETMODE_DOS/,"#if defined(HAVE_SETMODE_DOS) \\&\\& !(defined(BSD) \\&\\& BSD >= 199306) \\&\\& !defined(__INTERIX)");print $$0; next; } \
|
|
{print $$0;}' \
|
|
< ${WRKSRC}/src/pch.c.orig \
|
|
> ${WRKSRC}/src/pch.c
|
|
|
|
SYMLINKS = bin/gpatch ${PKGGNUDIR}bin/patch \
|
|
man/man1/gpatch.1 ${PKGGNUDIR}${PKGMANDIR}/man1/patch.1
|
|
post-install:
|
|
.for o n in ${SYMLINKS}
|
|
${LN} -sf ${PREFIX}/${o} ${DESTDIR}${PREFIX}/${n}
|
|
.endfor
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|