Lines 2-9
Link Here
|
2 |
# $FreeBSD$ |
2 |
# $FreeBSD$ |
3 |
|
3 |
|
4 |
PORTNAME= jsoncpp |
4 |
PORTNAME= jsoncpp |
5 |
DISTVERSION= 1.7.2 |
5 |
DISTVERSION= 1.7.3 |
6 |
PORTREVISION= 1 |
|
|
7 |
CATEGORIES= devel |
6 |
CATEGORIES= devel |
8 |
|
7 |
|
9 |
MAINTAINER= yuri@rawbw.com |
8 |
MAINTAINER= yuri@rawbw.com |
Lines 15-21
Link Here
|
15 |
USE_GITHUB= yes |
14 |
USE_GITHUB= yes |
16 |
GH_ACCOUNT= open-source-parsers |
15 |
GH_ACCOUNT= open-source-parsers |
17 |
|
16 |
|
18 |
USES= dos2unix scons |
17 |
USES= compiler:features dos2unix scons |
19 |
USE_LDCONFIG= yes |
18 |
USE_LDCONFIG= yes |
20 |
|
19 |
|
21 |
MAKE_ARGS= platform=linux-gcc |
20 |
MAKE_ARGS= platform=linux-gcc |
Lines 22-30
Link Here
|
22 |
|
21 |
|
23 |
.include <bsd.port.pre.mk> |
22 |
.include <bsd.port.pre.mk> |
24 |
|
23 |
|
25 |
.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1000000 |
24 |
.if ${COMPILER_TYPE} == clang && ${COMPILER_VERSION} >= 33 || \ |
26 |
# NOTE Certain newest compiler features unlock some parts of jsoncpp API (ex. see JSON_HAS_RVALUE_REFERENCES). |
25 |
${COMPILER_TYPE} == gcc && ${COMPILER_VERSION} >= 48 |
27 |
# Use c++11 above to be most inclusive. |
26 |
# Certain new compiler features unlock parts of jsoncpp API (ex. see JSON_HAS_RVALUE_REFERENCES). |
|
|
27 |
# Use c++11 above to be the most inclusive. |
28 |
USES+= compiler:c++11-lang |
28 |
USES+= compiler:c++11-lang |
29 |
CXXFLAGS+= --std=c++11 |
29 |
CXXFLAGS+= --std=c++11 |
30 |
.endif |
30 |
.endif |