2001-03-10 23:05:53 +01:00
|
|
|
# $NetBSD: Makefile,v 1.32 2001/03/10 22:05:53 tron Exp $
|
1997-12-18 00:40:56 +01:00
|
|
|
|
1999-03-14 16:07:20 +01:00
|
|
|
DISTNAME= knews-1.0b.1
|
2001-03-10 23:05:53 +01:00
|
|
|
PKGNAME= knews-1.0nb5
|
1999-01-25 21:09:09 +01:00
|
|
|
CATEGORIES= news x11
|
1998-04-23 01:42:19 +02:00
|
|
|
MASTER_SITES= http://www.matematik.su.se/~kjj/
|
1997-12-18 00:40:56 +01:00
|
|
|
|
2001-02-23 23:19:41 +01:00
|
|
|
MAINTAINER= tron@netbsd.org
|
1998-08-20 17:16:34 +02:00
|
|
|
HOMEPAGE= http://www.matematik.su.se/~kjj/
|
2001-02-17 18:52:59 +01:00
|
|
|
COMMENT= X11 newsreader with support for threading and MIME
|
1997-12-18 00:40:56 +01:00
|
|
|
|
1999-03-14 16:07:20 +01:00
|
|
|
DEPENDS+= faces-1.6.1:../../mail/faces
|
1998-07-04 07:11:12 +02:00
|
|
|
DEPENDS+= jpeg-6b:../../graphics/jpeg
|
2001-03-04 10:06:09 +01:00
|
|
|
DEPENDS+= png>1.0.9:../../graphics/png
|
1997-12-18 00:40:56 +01:00
|
|
|
|
1999-03-14 16:07:20 +01:00
|
|
|
CONFLICTS= knews-1.0b0
|
|
|
|
|
2000-08-24 01:14:21 +02:00
|
|
|
USE_IMAKE= YES
|
|
|
|
USE_XPM= YES
|
1997-12-18 00:40:56 +01:00
|
|
|
|
1999-10-19 10:55:48 +02:00
|
|
|
BUILD_DEFS+= KNEWS_DOMAIN_NAME KNEWS_DOMAIN_FILE
|
1999-08-18 10:28:09 +02:00
|
|
|
|
1998-06-03 15:19:35 +02:00
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
|
1999-10-19 10:55:48 +02:00
|
|
|
# Set KNEWS_DOMAIN_NAME to a string appended to the "From:" header or
|
|
|
|
# KNEWS_DOMAIN_FILE to a file from which the domain name will be read.
|
1997-12-18 00:52:29 +01:00
|
|
|
post-extract:
|
1999-10-19 10:55:48 +02:00
|
|
|
.if !defined(KNEWS_DOMAIN_FILE) && !defined(KNEWS_DOMAIN_NAME)
|
|
|
|
@${ECHO_MSG} "Type \"make KNEWS_DOMAIN_NAME=xyz\" to set the domain name."
|
|
|
|
.elif defined(KNEWS_DOMAIN_FILE)
|
|
|
|
@${ECHO_MSG} "Reading \"From:\" domain from file \"${KNEWS_DOMAIN_FILE}\"."
|
1997-12-18 00:40:56 +01:00
|
|
|
.else
|
1999-10-19 10:55:48 +02:00
|
|
|
@${ECHO_MSG} "Using \"${KNEWS_DOMAIN_NAME}\" as the \"From:\" domain name."
|
1997-12-18 00:40:56 +01:00
|
|
|
.endif
|
|
|
|
|
|
|
|
post-patch:
|
1999-10-19 10:55:48 +02:00
|
|
|
.if defined(KNEWS_DOMAIN_FILE)
|
2001-02-23 23:19:41 +01:00
|
|
|
${ECHO} >>${WRKSRC}/configure.h \
|
1999-10-19 10:55:48 +02:00
|
|
|
"#define DOMAIN_FILE \"${KNEWS_DOMAIN_FILE}\""
|
|
|
|
.elif defined(KNEWS_DOMAIN_NAME)
|
2001-02-23 23:19:41 +01:00
|
|
|
${ECHO} >>${WRKSRC}/configure.h \
|
1999-10-19 10:55:48 +02:00
|
|
|
"#define DOMAIN_NAME \"${KNEWS_DOMAIN_NAME}\""
|
1997-12-18 00:40:56 +01:00
|
|
|
.endif
|
2001-02-23 23:19:41 +01:00
|
|
|
.if defined(USE_INET6) && ${USE_INET6} == YES
|
|
|
|
${ECHO} >>${WRKSRC}/configure.h "#define USE_INET6 YES"
|
|
|
|
.endif
|
1997-12-18 00:40:56 +01:00
|
|
|
|
1998-04-15 12:38:15 +02:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|