diff options
author | abs <abs@pkgsrc.org> | 2002-06-21 15:26:07 +0000 |
---|---|---|
committer | abs <abs@pkgsrc.org> | 2002-06-21 15:26:07 +0000 |
commit | 515e56567b8461fa44085d79e76ccc33fbef575d (patch) | |
tree | 5ce77631308e8253266ec22ecdaf5aa8c49d909b /pkgtools | |
parent | 33b2b26fa99f9507cbf7247ca7fc38c5bd429ba7 (diff) | |
download | pkgsrc-515e56567b8461fa44085d79e76ccc33fbef575d.tar.gz |
Make this work under Linux, and fix manpage install on SunOS
Diffstat (limited to 'pkgtools')
-rw-r--r-- | pkgtools/digest/Makefile | 9 | ||||
-rw-r--r-- | 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 |