Add USES=compiler:c++11-lang, this port adds -std=c++11 to CPPFLAGS.

Don't add --stdlib=libc++ to CXXFLAGS, Clang uses it by default and GCC can't use libc++.

Don't set CC, CXX, CPP, those are set by the ports tree.

Add a define for __ppc__.

While here, pet portlint.

PR:		236799
Submitted by:	Piotr Kubaj
Approved by:	portmgr (tier-2 blanket)
This commit is contained in:
Mark Linimon 2019-03-29 14:50:58 +00:00
parent 64941d8e94
commit faf50ea528
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=497148
2 changed files with 18 additions and 5 deletions

View File

@ -10,17 +10,17 @@ COMMENT= Popular secure and convenient password manager
LICENSE= ART20
NOT_FOR_ARCHS= aarch64 armv6 armv7
NOT_FOR_ARCHS_REASON= Cannot determine whether the target CPU is big or little endian - please fix PwsPlatform.h
LIB_DEPENDS= libuuid.so:misc/e2fsprogs-libuuid \
libxerces-c.so:textproc/xerces-c3 \
libqrencode.so:graphics/libqrencode
BUILD_DEPENDS= zip:archivers/zip
NOT_FOR_ARCHS= aarch64 armv6 armv7
NOT_FOR_ARCHS_REASON= Cannot determine whether the target CPU is big or little endian - please fix PwsPlatform.h
CONFLICTS= pwsafe-[0-9]*
USES= gmake
USES= compiler:c++11-lang gmake
USE_GITHUB= yes
USE_WX= 3.0+
USE_XORG= x11 xtst

View File

@ -1,4 +1,4 @@
--- Makefile.freebsd.orig 2017-05-01 15:10:07 UTC
--- Makefile.freebsd.orig 2017-10-07 17:53:15 UTC
+++ Makefile.freebsd
@@ -34,8 +34,6 @@ GIT := git
GZIP := gzip
@ -9,3 +9,16 @@
GPG := /usr/local/bin/gpg
GPG_SIGN := $(GPG) --detach-sign --default-key $(GPG_KEY)
SIGN_CMD := $(foreach file, $(wildcard $(RELEASEDIR)/*$(RELEASENAME)*), $(GPG_SIGN) $(file); )
@@ -46,11 +44,8 @@ SF_UPLOAD_DST := $(SF_UPLOAD_ROOT)/Linux-BETA/$(RELEAS
RELTAG = wx$(subst .,_,$(RELEASENAME))
export CPPFLAGS += -std=c++11
-export CXXFLAGS += --stdlib=libc++ -I/usr/local/include
+export CXXFLAGS += -I/usr/local/include
export CFLAGS += -I/usr/local/include
-export CC = clang
-export CXX = clang++
-export CPP = clang++
export PLATFORM = FreeBSD
all: I18N unicodedebug unicoderelease