# Created by: Pete French # $FreeBSD: head/lang/libobjc2/Makefile 404743 2015-12-29 14:30:46Z mat $ PORTNAME= libobjc2 PORTVERSION= 1.8.1 CATEGORIES= lang devel gnustep MAINTAINER= theraven@FreeBSD.org COMMENT= Replacement Objective-C runtime supporting modern Objective-C features SSP_UNSAFE= yes USES= cmake objc:compiler BROKEN_powerpc= Does not compile on powerpc: Unsupported relocation type 10 BROKEN_sparc64= Does not compile on sparc64: Cannot configure clang properly USE_GITHUB= yes GH_ACCOUNT= gnustep GH_TAGNAME= 5a21dd1 .include SHLIB_MAJOR= 4 SHLIB_MINOR= 6 PLIST_SUB+= SHLIB_MAJOR=${SHLIB_MAJOR} SHLIB_MINOR=${SHLIB_MINOR} .if ${OSVERSION} < 902000 CMAKE_ARGS+= -DFORCE_LIBOBJCXX=ON PLIST_SUB+= WITH_SEPARATECXX="" .else PLIST_SUB+= WITH_SEPARATECXX="@comment " .endif 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 .if ${OSVERSION} < 902000 post-install: ${LN} -sf libobjc.so.${SHLIB_MAJOR}.${SHLIB_MINOR} ${STAGEDIR}${PREFIX}/lib/libobjc.so.${SHLIB_MAJOR} ${LN} -sf libobjcxx.so.${SHLIB_MAJOR}.${SHLIB_MINOR} ${STAGEDIR}${PREFIX}/lib/libobjcxx.so.${SHLIB_MAJOR} .else post-install: ${LN} -sf libobjc.so.${SHLIB_MAJOR}.${SHLIB_MINOR} ${STAGEDIR}${PREFIX}/lib/libobjc.so.${SHLIB_MAJOR} .endif .include