aboutsummaryrefslogtreecommitdiffstats
path: root/news/newsx/Makefile
diff options
context:
space:
mode:
authordinoex <dinoex@FreeBSD.org>2002-02-23 22:23:48 +0800
committerdinoex <dinoex@FreeBSD.org>2002-02-23 22:23:48 +0800
commit82ba63ae9c9e2c8ee725409e9a7e956d8d63997d (patch)
tree8b85382125ea91e14021e00da7e7b215ebf8fecd /news/newsx/Makefile
parent0b67884e143822e4e9e25b081612d7680c460815 (diff)
downloadfreebsd-ports-graphics-82ba63ae9c9e2c8ee725409e9a7e956d8d63997d.tar.gz
freebsd-ports-graphics-82ba63ae9c9e2c8ee725409e9a7e956d8d63997d.tar.zst
freebsd-ports-graphics-82ba63ae9c9e2c8ee725409e9a7e956d8d63997d.zip
Upgrade to the last release. This release is basically for bug fixes.
It supports inn's storage manager => no more ugly patches! PR: 34503 Submitted by: thierry@pompo.net
Diffstat (limited to 'news/newsx/Makefile')
-rw-r--r--news/newsx/Makefile41
1 files changed, 18 insertions, 23 deletions
diff --git a/news/newsx/Makefile b/news/newsx/Makefile
index 27318da8c5b..722d33b6eba 100644
--- a/news/newsx/Makefile
+++ b/news/newsx/Makefile
@@ -6,33 +6,35 @@
#
PORTNAME= newsx
-PORTVERSION= 1.4
-PORTREVISION= 1
+PORTVERSION= 1.4.6
CATEGORIES= news
MASTER_SITES= ftp://ftp.kvaleberg.com/pub/
+DISTNAME= ${PORTNAME}-${PORTVERSION:S/.6/pl6/}
MAINTAINER= thierry@pompo.net
+.if defined(WITH_CNEWS)
+BUILD_DEPENDS= ${LOCALBASE}/news/lib/libcnews.a:${PORTSDIR}/news/cnews
+.else !defined(WITHOUT_INN_2-X)
BUILD_DEPENDS= ${LOCALBASE}/news/lib/libinn.a:${PORTSDIR}/news/inn
+.endif
+
+USE_AUTOMAKE_VER=14
+CONFIGURE_ENV= PATH="${PATH}:${LOCALBASE}/news/bin"
+.if !defined(WITH_CNEWS)
+.if !defined(WITHOUT_INN_2-X)
+CONFIGURE_ENV+= CPPFLAGS="-I${LOCALBASE}/news/include"
+CONFIGURE_ARGS= --with-newslib=${LOCALBASE}/news/lib
+.endif
+.endif
-hdr_dir= ${LOCALBASE}/news/include
+HDR_DIR= ${LOCALBASE}/news/include
DOCS= AUTHORS COPYING ChangeLog FAQ INSTALL NEWS README TODO
-post-extract:
- @${ECHO} "*********************************************************"
- @${ECHO} "If this step fails, then you probably don't have made inn"
- @${ECHO} "Go to ${PORTSDIR}/news/inn, and then make it (no need to"
- @${ECHO} "make install again if inn is already installed)."
- @${ECHO} "*********************************************************"
- ${CP} ${hdr_dir}/storage.h ${WRKSRC}/lib
- ${CP} ${hdr_dir}/config.h ${WRKSRC}/lib
- ${CP} ${hdr_dir}/libinn.h ${WRKSRC}/src
- ${CP} ${hdr_dir}/libinn.h ${WRKSRC}/dbz
- ${CP} ${hdr_dir}/clibrary.h ${WRKSRC}/dbz
+post-patch:
+ @${PERL} -pi -e "s:%%LOCALBASE%%:${LOCALBASE}:" ${WRKSRC}/configure.in
-# Remark: newsx does not really requires inn, but this port has specially
-# been built to run with inn 2.3x.
pre-configure:
@${ECHO} "*********************************************************"
@${ECHO} "If the configure step fails, then you probably don't have"
@@ -41,10 +43,6 @@ pre-configure:
@${ECHO} "again."
@${ECHO} "*********************************************************"
-post-configure:
- @${PERL} -pi -e "s:^LIBS = :LIBS = -L${LOCALBASE}/news/lib -linn:g" \
- ${WRKSRC}/test/Makefile
-
post-install:
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
@@ -54,9 +52,6 @@ post-install:
@${ECHO} "Documentation installed in ${DOCSDIR}."
.endif
-#GNU_CONFIGURE= yes
-USE_AUTOMAKE_VER=14
-
MAN1= newsq.1
MAN5= newsx.conf.5 in.hosts.5
MAN8= newsx.8