1998-07-15 20:03:53 +02:00
|
|
|
# $NetBSD: Makefile,v 1.14 1998/07/15 18:03:53 tron Exp $
|
1998-01-24 22:59:43 +01:00
|
|
|
#
|
1997-12-18 00:40:56 +01:00
|
|
|
|
1998-04-23 01:42:19 +02:00
|
|
|
DISTNAME= knews-1.0b.0
|
|
|
|
PKGNAME= knews-1.0b0
|
1997-12-18 00:40:56 +01:00
|
|
|
CATEGORIES= news
|
1998-04-23 01:42:19 +02:00
|
|
|
MASTER_SITES= http://www.matematik.su.se/~kjj/
|
1997-12-18 00:40:56 +01:00
|
|
|
|
1998-01-29 17:48:09 +01:00
|
|
|
MAINTAINER= tron@netbsd.org
|
1997-12-18 00:40:56 +01:00
|
|
|
|
1998-07-04 07:11:12 +02:00
|
|
|
DEPENDS+= jpeg-6b:../../graphics/jpeg
|
1998-07-15 20:03:53 +02:00
|
|
|
DEPENDS+= png-1.0.2:../../graphics/png
|
1998-07-04 11:18:54 +02:00
|
|
|
DEPENDS+= xpm-3.4k:../../graphics/xpm
|
1997-12-18 00:40:56 +01:00
|
|
|
|
|
|
|
USE_IMAKE= yes
|
1998-01-24 22:59:43 +01:00
|
|
|
WRKSRC= ${WRKDIR}/knews
|
1997-12-18 00:40:56 +01:00
|
|
|
|
1998-06-03 15:19:35 +02:00
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
|
1998-04-23 01:45:46 +02:00
|
|
|
# Set DOMAIN_NAME to a string appended to the "From:" header or
|
|
|
|
# DOMAIN_FILE to a file from which the domain name will be read.
|
1997-12-18 00:52:29 +01:00
|
|
|
post-extract:
|
1998-04-23 01:42:19 +02:00
|
|
|
.if !defined(DOMAIN_FILE) && !defined(DOMAIN_NAME)
|
1997-12-18 00:40:56 +01:00
|
|
|
@${ECHO_MSG} "Type \"make DOMAIN_NAME=xyz\" to set the domain name."
|
1998-04-23 01:42:19 +02:00
|
|
|
.elif defined(DOMAIN_FILE)
|
|
|
|
@${ECHO_MSG} "Reading \"From:\" domain from file \"${DOMAIN_FILE}\"."
|
1997-12-18 00:40:56 +01:00
|
|
|
.else
|
1998-04-23 01:42:19 +02:00
|
|
|
@${ECHO_MSG} "Using \"${DOMAIN_NAME}\" as the \"From:\" domain name."
|
1997-12-18 00:40:56 +01:00
|
|
|
.endif
|
|
|
|
|
|
|
|
post-patch:
|
1998-04-23 01:42:19 +02:00
|
|
|
.if defined(DOMAIN_FILE)
|
|
|
|
${ECHO_MSG} >>${WRKSRC}/configure.h \
|
|
|
|
"#define DOMAIN_FILE \"${DOMAIN_FILE}\""
|
|
|
|
.elif defined(DOMAIN_NAME)
|
1997-12-18 00:40:56 +01:00
|
|
|
${ECHO_MSG} >>${WRKSRC}/configure.h \
|
|
|
|
"#define DOMAIN_NAME \"${DOMAIN_NAME}\""
|
|
|
|
.endif
|
|
|
|
|
1998-04-15 12:38:15 +02:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|