diff options
author | kim <kim> | 1999-09-20 21:43:32 +0000 |
---|---|---|
committer | kim <kim> | 1999-09-20 21:43:32 +0000 |
commit | ea7c5ca369b2ad049a30a41ccaece997ba1fde94 (patch) | |
tree | 8bb6a6886a9997c76e0df72e038e19d94f232d74 /news/nn/Makefile | |
parent | 69d2310026512624e5ef54de0428e6d595f0f652 (diff) | |
download | pkgsrc-ea7c5ca369b2ad049a30a41ccaece997ba1fde94.tar.gz |
Make this work on Solaris.
NOTE: It is nice to have "make extract" just unpack and not overwrite
any files, so it can be used to investigate pkg problems. This is why
I chose to not use "post-extract" to patch files. I use "post-patch"
instead.
I'll need to test this on NetBSD now...
Diffstat (limited to 'news/nn/Makefile')
-rw-r--r-- | news/nn/Makefile | 33 |
1 files changed, 26 insertions, 7 deletions
diff --git a/news/nn/Makefile b/news/nn/Makefile index ed03d785361..d9a8e8563c2 100644 --- a/news/nn/Makefile +++ b/news/nn/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.11 1999/09/14 14:07:43 tron Exp $ +# $NetBSD: Makefile,v 1.12 1999/09/20 21:43:32 kim Exp $ # FreeBSD Id: Makefile,v 1.14 1997/07/30 18:17:48 adam Exp # @@ -18,11 +18,30 @@ DEPENDS= inn-2.2:../inn DEPENDS= nntpclnt-1.6.1:../nntpclnt .endif -post-extract: - @${MV} ${WRKSRC}/config.h-dist ${WRKSRC}/config.h - @${SED} -e 's#@@PREFIX@@#${PREFIX}#; \ - s#@@BINOWN@@#${BINOWN}#; \ - s#@@BINGRP@@#${BINGRP}#' \ - <${FILESDIR}/s-netbsd.h >${WRKSRC}/conf/s-netbsd.h +.if ${OPSYS} == "SunOS" +SFILE= s-sunos5.h +.elif ${OPSYS} == "Linux" +SFILE= s-linux.h +.else +SFILE= s-netbsd.h +.endif + +.if ${LOWER_ARCH} == "i386" +MFILE= m-i80386.h +.else +MFILE= m-${LOWER_ARCH}.h +.endif + +MAKE_ENV+= CC="${CC}" + +post-patch: + @${SED} -e ' \ + s#@PREFIX@#${PREFIX}#; \ + s#@BINOWN@#${BINOWN}#; \ + s#@BINGRP@#${BINGRP}#; \ + s#@MFILE@#${MFILE}#; \ + s#@SFILE@#${SFILE}#' \ + <${WRKSRC}/config.h-dist >${WRKSRC}/config.h + @${CP} ${FILESDIR}/s-netbsd.h ${WRKSRC}/conf/s-netbsd.h .include "../../mk/bsd.pkg.mk" |