ports/lang/libobjc2/Makefile
Mark Linimon 9fa05cbab2 Adjust USES to fix building on gcc-based archs (in particular, powerpc64).
On the clang architectures, these changes have no effect: the baser
compiler already includes the needed features.

While here, remove now-redundant CXXFLAGS statements and pet portlint
(no other content change).

Tested on both powerpc64 and amd64.

Approved by:	portmgr (tier-2 blanket)
2018-06-02 19:40:59 +00:00

36 lines
943 B
Makefile

# Created by: Pete French <pete@twisted.org.uk>
# $FreeBSD$
PORTNAME= libobjc2
PORTVERSION= 1.8.1
DISTVERSIONPREFIX= v
CATEGORIES= lang devel gnustep
MAINTAINER= theraven@FreeBSD.org
COMMENT= Replacement Objective-C runtime supporting modern Objective-C features
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:c++11-lang objc:compiler
USE_GITHUB= yes
GH_ACCOUNT= gnustep
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
# This shouldn't be needed, but our llvm port installs llvm-config with a silly
# name...
CMAKE_ARGS+= -DLLVM_OPTS=OFF
post-install:
${LN} -sf libobjc.so.${SHLIB_MAJOR}.${SHLIB_MINOR} ${STAGEDIR}${PREFIX}/lib/libobjc.so.${SHLIB_MAJOR}
.include <bsd.port.mk>