2008-07-14 14:55:56 +02:00
|
|
|
# $NetBSD: Makefile,v 1.52 2008/07/14 12:56:11 joerg Exp $
|
1997-12-18 00:40:56 +01:00
|
|
|
|
1999-03-14 16:07:20 +01:00
|
|
|
DISTNAME= knews-1.0b.1
|
2001-11-29 02:12:24 +01:00
|
|
|
PKGNAME= knews-1.0
|
2006-04-17 15:45:57 +02:00
|
|
|
PKGREVISION= 12
|
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
|
|
|
|
2008-05-25 16:45:16 +02:00
|
|
|
MAINTAINER= pkgsrc-users@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
|
|
|
|
2008-07-14 14:55:56 +02:00
|
|
|
PKG_DESTDIR_SUPPORT= user-destdir
|
|
|
|
|
1999-03-14 16:07:20 +01:00
|
|
|
CONFLICTS= knews-1.0b0
|
|
|
|
|
2000-08-24 01:14:21 +02:00
|
|
|
USE_IMAKE= YES
|
1997-12-18 00:40:56 +01:00
|
|
|
|
2007-09-08 00:12:10 +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"
|
|
|
|
|
2007-09-08 00:12:10 +02:00
|
|
|
PKG_OPTIONS_VAR= PKG_OPTIONS.knews
|
|
|
|
PKG_SUPPORTED_OPTIONS= inet6
|
|
|
|
|
|
|
|
.include "../../mk/bsd.options.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
|
2007-09-08 00:12:10 +02:00
|
|
|
.if !empty(PKG_OPTIONS:Minet6)
|
2001-02-23 23:19:41 +01:00
|
|
|
${ECHO} >>${WRKSRC}/configure.h "#define USE_INET6 YES"
|
|
|
|
.endif
|
1997-12-18 00:40:56 +01:00
|
|
|
|
2004-04-11 19:41:03 +02:00
|
|
|
.include "../../graphics/jpeg/buildlink3.mk"
|
|
|
|
.include "../../graphics/png/buildlink3.mk"
|
|
|
|
.include "../../mail/faces/buildlink3.mk"
|
2007-02-15 15:44:49 +01:00
|
|
|
.include "../../x11/libXpm/buildlink3.mk"
|
|
|
|
.include "../../x11/libXmu/buildlink3.mk"
|
|
|
|
.include "../../x11/libXt/buildlink3.mk"
|
1998-04-15 12:38:15 +02:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|