# $OpenBSD: Makefile,v 1.9 2016/04/12 15:13:43 naddy Exp $ COMMENT= GNU versions of the rcs utilities DISTNAME= rcs-5.9.4 PKGNAME= g${DISTNAME} REVISION= 2 CATEGORIES= devel HOMEPAGE= https://www.gnu.org/software/rcs/ # GPLv3 PERMIT_PACKAGE_CDROM= Yes WANTLIB= c MASTER_SITES= ${MASTER_SITE_GNU:=rcs/} EXTRACT_SUFX= .tar.xz RUN_DEPENDS= textproc/gdiff BUILD_DEPENDS= textproc/gdiff USE_GROFF= Yes USE_GMAKE= Yes CONFIGURE_STYLE=autoconf AUTOCONF_VERSION=2.69 CONFIGURE_ARGS= --program-prefix=g CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \ LDFLAGS="-L${LOCALBASE}/lib" \ DIFF="${LOCALBASE}/bin/gdiff" \ DIFF3="${LOCALBASE}/bin/gdiff3" MODGNU_CONFIG_GUESS_DIRS=${WRKSRC}/build-aux pre-install: .for f in ci co rcsclean rcsdiff rcsmerge rlog sed -i 's/d"rcs/d"grcs/' ${WRKSRC}/src/${f} .endfor # handle --program-prefix: The tests use the commands in ${WRKSRC}/src without # prefix but the wrapper scripts like gci call the command with the prefix. pre-test: .for f in ci co ident merge rcs rcsclean rcsdiff rcsmerge rlog ln -fs ${WRKSRC}/src/$f ${WRKSRC}/src/g$f .endfor .include