freebsd-ports/lang/libobjc2/Makefile
David Chisnall d4a4068a53 Bump libobjc2 port to latest git head.
Fixes an issue where programs with long double ivars when compiled with the old
ABI would crash on load.
2019-02-10 18:08:12 +00:00

37 lines
900 B
Makefile

# Created by: Pete French <pete@twisted.org.uk>
# $FreeBSD$
PORTNAME= libobjc2
PORTVERSION= 2.0
PORTREVISION= 1
CATEGORIES= lang devel gnustep
LICENSE= MIT
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 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
.if exists(/usr/lib/libstdc++.so)
CXXFLAGS+= -stdlib=libstdc++
.endif
post-install:
${LN} -sf libobjc.so.${SHLIB_MAJOR}.${SHLIB_MINOR} ${STAGEDIR}${PREFIX}/lib/libobjc.so.${SHLIB_MAJOR}
.include <bsd.port.mk>