blob: 61d996d0ef87bc5956a5a4d061bf6cf4b368d9fb (
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
# Created by: George Sorsby <george@crackpipe.net>
# $FreeBSD$
PORTNAME= nget
PORTVERSION= 0.27.1
DISTVERSIONSUFFIX= +uulib
PORTREVISION= 6
CATEGORIES= news
MASTER_SITES= SF
MAINTAINER= ports@FreeBSD.org
COMMENT= Auto-resuming command line nntp file grabber
LICENSE= GPLv2+
LICENSE_FILE= ${WRKSRC}/COPYING
USES= compiler:c++11-lang gmake
GNU_CONFIGURE= yes
# Skip check if the C++ compiler supports exceptions. We know both
# Clang and GCC do. The configure test fails on FreeBSD 10.3 because
# it passes -fhandle-exceptions to the compiler and Clang 3.4.1 does
# not know to ignore it yet.
CONFIGURE_ARGS= my_cv_exceptions=1
OPTIONS_DEFINE= DOCS
WRKSRC= ${WRKDIR}/nget-${PORTVERSION}
.include <bsd.port.pre.mk>
.if ${ARCH:Mmips*} || ${ARCH:Mpowerpc*} || ${ARCH} == sparc64
CXXFLAGS+= -std=c++11
.else
CXXFLAGS+= -std=c++98
.endif
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
do-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
.for i in README FAQ
${INSTALL_DATA} ${WRKSRC}/${i} ${STAGEDIR}${DOCSDIR}
.endfor
.include <bsd.port.post.mk>
|