freebsd-ports/lang/libobjc2/Makefile
Mark Linimon 7bfae932f7 Prepare for powerpc-on-clang by deleting hard-coded tests for libstdc++.so
as a stand-in for "are we running on gcc".

For people already testing powerpc on clang, it is possible that they
already have both compilers in base.  Thus, the assumption that "gcc is
in base" (e.g.  libstdc++.so exists) always means "force use of GCC" is
already broken.  It will be for everyone on -CURRENT once the switch is
made.

While here, standardize on compiler:c++11-lang instead of -lib (they are
equivalent these days), pet portlint, and do some other cleanup.

Approved by:	portmgr (tier-2 blanket)
2019-07-12 02:25:07 +00:00

41 lines
945 B
Makefile

# Created by: Pete French <pete@twisted.org.uk>
# $FreeBSD$
PORTNAME= libobjc2
PORTVERSION= 2.0
PORTREVISION= 1
CATEGORIES= lang devel gnustep
MAINTAINER= theraven@FreeBSD.org
COMMENT= Replacement Objective-C runtime supporting modern Objective-C features
LICENSE= MIT
BROKEN_powerpc= Does not compile on powerpc: Unsupported relocation type 10
BROKEN_sparc64= Does not compile on sparc64: Cannot configure clang properly
USES= cmake compiler objc:compiler
USE_GITHUB= yes
GH_ACCOUNT= gnustep
GH_TAGNAME= 0db500a
SSP_UNSAFE= yes
SHLIB_MAJOR= 4
SHLIB_MINOR= 6
PLIST_SUB+= SHLIB_MAJOR=${SHLIB_MAJOR} SHLIB_MINOR=${SHLIB_MINOR}
CMAKE_ARGS+= -DLIB_INSTALL_PATH=lib
CMAKE_ARGS+= -DTESTS=OFF
.include <bsd.port.pre.mk>
.if ${CHOSEN_COMPILER_TYPE} == gcc
CXXFLAGS+= -stdlib=libstdc++
.endif
post-install:
${LN} -sf libobjc.so.${SHLIB_MAJOR}.${SHLIB_MINOR} ${STAGEDIR}${PREFIX}/lib/libobjc.so.${SHLIB_MAJOR}
.include <bsd.port.post.mk>