aboutsummaryrefslogtreecommitdiffstats
path: root/news/nn/Makefile
blob: ea6e0f3223a3f9889f21a8c6aac019c5350fa2e4 (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
# Created by: adam
# $FreeBSD$

PORTNAME=   nn
PORTVERSION=    6.7.3
PORTREVISION=   1
CATEGORIES= news
MASTER_SITES=   http://www.sourcefiles.org/Internet/News/Usenet_Clients/  \
        http://www.wa.apana.org.au/~dean/sources/

MAINTAINER= johans@FreeBSD.org
COMMENT=    Newsreader

BROKEN_aarch64= Fails to link: missing sbrk

USES=       tar:Z
MAKE_ARGS=  CC="${CC}" CFLAGS="${CFLAGS} -Iconf" LDFLAGS="${LDFLAGS} -s"

pre-patch:
    @${CP} ${WRKSRC}/config.h-dist ${WRKSRC}/config.h.unparsed

pre-build:
    @${SED} 's#SUB_PREFIX#${PREFIX}#; s#SUB_MANPREFIX#${MANPREFIX}#' \
        ${WRKSRC}/config.h.unparsed > ${WRKSRC}/config.h

post-build:
    @${REINPLACE_CMD} 's#${PREFIX}#$${DESTDIR}&#' ${WRKSRC}/inst

.include <bsd.port.mk>