From 7c48314cfe2f8effc88c96216f1e70ed411543d9 Mon Sep 17 00:00:00 2001 From: abs Date: Fri, 21 Jun 2002 15:26:07 +0000 Subject: Make this work under Linux, and fix manpage install on SunOS --- pkgtools/digest/Makefile | 9 ++++++++- pkgtools/digest/files/Makefile | 8 ++++---- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/pkgtools/digest/Makefile b/pkgtools/digest/Makefile index f0526c29528..4756ddbda29 100644 --- a/pkgtools/digest/Makefile +++ b/pkgtools/digest/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.23 2002/03/04 11:57:10 seb Exp $ +# $NetBSD: Makefile,v 1.24 2002/06/21 15:26:07 abs Exp $ # # When adding new digest algorithms, please use rmd160 as the template, # and bump the VERSION definition. @@ -28,6 +28,13 @@ MAKE_ENV+= VERSION="${VERSION}" .if ${OPSYS} == "SunOS" MAKEFLAGS+= NETBSD_COMPATIBLE=YES MANINSTALL= +.elif ${OPSYS} == "Linux" +CPPFLAGS+=-D__COPYRIGHT\(x\)=\; -D__RCSID\(x\)=\; +.endif +.if ${OPSYS} == "SunOS" || ${OPSYS} == "Linux" +PLIST= ${WRKSRC}/.PLIST +post-install: + ${GREP} -v '^man/cat' ${PKGDIR}/PLIST > ${PLIST} .endif post-extract: diff --git a/pkgtools/digest/files/Makefile b/pkgtools/digest/files/Makefile index de489391f18..d75f7848195 100644 --- a/pkgtools/digest/files/Makefile +++ b/pkgtools/digest/files/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.8 2001/10/30 14:07:33 agc Exp $ +# $NetBSD: Makefile,v 1.9 2002/06/21 15:26:08 abs Exp $ # When adding new digest algorithms, please use rmd160 as the template, # and bump the version definition in the package Makefile @@ -16,7 +16,7 @@ SRCS+= sha1.c sha1hl.c SRCS+= sha2.c sha2hl.c .endif -.if !exists(/usr/include/md5.h) || ${OPSYS} == "SunOS" +.if !exists(/usr/include/md5.h) || ${OPSYS} == "SunOS" || ${OPSYS} == "Linux" SRCS+= md5c.c md5hl.c .endif @@ -28,8 +28,8 @@ CPPFLAGS+= -DHAVE_SYS_ENDIAN_H_ CPPFLAGS+= -DHAVE_MACHINE_ENDIAN_H_ .endif -.if (${OPSYS} == SunOS) -NOMAN= YES +.if ${OPSYS} == SunOS || ${OPSYS} == "Linux" +MKCATPAGES= no .elif ${OPSYS} != "Darwin" LDSTATIC?= -static .endif -- cgit v1.2.3