aboutsummaryrefslogtreecommitdiffstats
path: root/news/nget/Makefile
blob: 313ef13359e424a14d4bfd73de1726a602fa6dd1 (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
34
# Created by: George Sorsby <george@crackpipe.net>
# $FreeBSD$

PORTNAME=   nget
PORTVERSION=    0.27.1
PORTREVISION=   2
CATEGORIES= news
MASTER_SITES=   SF
DISTNAME=   nget-${PORTVERSION}+uulib

MAINTAINER= ports@FreeBSD.org
COMMENT=    Auto-resuming command line nntp file grabber

USES=       gmake
# Fails to build with GCC 4.9, cf. PR 196913.
USE_GCC=    4.8
GNU_CONFIGURE=  yes

OPTIONS_DEFINE= DOCS

post-extract:
    ${LN} -s nget-${PORTVERSION} ${WRKDIR}/${DISTNAME}

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/nget ${STAGEDIR}${PREFIX}/bin
    ${INSTALL_PROGRAM} ${WRKSRC}/ngetlite ${STAGEDIR}${PREFIX}/bin
    ${INSTALL_MAN} ${WRKSRC}/nget.1 ${STAGEDIR}${MANPREFIX}/man/man1
    ${INSTALL_MAN} ${WRKSRC}/ngetlite.1 ${STAGEDIR}${MANPREFIX}/man/man1
    ${MKDIR} ${STAGEDIR}${DOCSDIR}
.for i in README FAQ
    ${INSTALL_DATA} ${WRKSRC}/${i} ${STAGEDIR}${DOCSDIR}
.endfor

.include <bsd.port.mk>