aboutsummaryrefslogtreecommitdiffstats
path: root/news/newscache/Makefile
blob: e36b8390daac3cfa26ee1f5ce86db98cfaec0c97 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# Created by: Tilman Linneweh <arved@FreeBSD.org>
# $FreeBSD$

PORTNAME=   newscache
PORTVERSION=    1.2.r.6
PORTREVISION=   4
CATEGORIES= news
MASTER_SITES=   http://src.linuxhacker.at/NewsCache/
DISTNAME=   NewsCache-${PORTVERSION:S/.r./rc/}

MAINTAINER= ports@FreeBSD.org
COMMENT=    NewsCache is a free cache server for USENET News

LIB_DEPENDS=    libsocket++.so:${PORTSDIR}/net/libsocket++

USE_AUTOTOOLS=  automake autoheader autoconf
AUTOMAKE_ARGS=  --add-missing
CPPFLAGS+=  ${CFLAGS} -I${LOCALBASE}/include
LDFLAGS+=   -L${LOCALBASE}/lib
CONFIGURE_ARGS+=--sysconfdir=${PREFIX}/etc
USE_RC_SUBR=    ${PORTNAME}

INFO=   NewsCache

post-patch:
    ${REINPLACE_CMD} -e "s,-pedantic,," \
        -e "s,^main,int main," \
        ${WRKSRC}/configure.in

pre-configure:
    (cd ${WRKSRC}; ${SETENV} ${SCRIPTS_ENV} ${SH} ./autogen)

.include <bsd.port.mk>