diff options
-rw-r--r-- | lang/libobjc2/Makefile | 20 |
1 files changed, 7 insertions, 13 deletions
diff --git a/lang/libobjc2/Makefile b/lang/libobjc2/Makefile index edc9fc170270..dd0eccd4c398 100644 --- a/lang/libobjc2/Makefile +++ b/lang/libobjc2/Makefile @@ -12,10 +12,10 @@ COMMENT= Replacement Objective-C runtime supporting modern Objective-C features SSP_UNSAFE= yes -NO_STAGE= yes -.include <bsd.port.options.mk> - USES= cmake +BROKEN_powerpc= Does not compile on powerpc: Unsupported relocation type 10 + +.include <bsd.port.options.mk> _CLANG!= if [ -f /usr/bin/clang ] ; then /usr/bin/clang --version | head -1 | \ ${SED} -e 's/.*clang version \([0-9]\)\.\([0-9]\).*/\1\2/' ; else ${ECHO} 0 ; fi @@ -42,8 +42,6 @@ PLIST_SUB+= WITH_SEPARATECXX="" PLIST_SUB+= WITH_SEPARATECXX="@comment " .endif -.include <bsd.port.pre.mk> - CMAKE_ARGS+= -DLIB_INSTALL_PATH=lib -DCMAKE_ASM_COMPILER=${CLANG} CMAKE_ARGS+= -DCMAKE_C_COMPILER=${CLANG} -DCMAKE_CXX_COMPILER=${CLANGXX} CMAKE_ARGS+= -DTESTS=OFF @@ -51,18 +49,14 @@ CMAKE_ARGS+= -DTESTS=OFF # name... CMAKE_ARGS+= -DLLVM_OPTS=OFF -.if ${ARCH} == "powerpc" -BROKEN= Does not compile on powerpc: Unsupported relocation type 10 -.endif - .if ${OSVERSION} < 902000 post-install: - ${LN} -sf ${LOCALBASE}/lib/libobjc.so.${SHLIB_MAJOR}.${SHLIB_MINOR} ${LOCALBASE}/lib/libobjc.so.${SHLIB_MAJOR} - ${LN} -sf ${LOCALBASE}/lib/libobjcxx.so.${SHLIB_MAJOR}.${SHLIB_MINOR} ${LOCALBASE}/lib/libobjcxx.so.${SHLIB_MAJOR} + ${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 ${LOCALBASE}/lib/libobjc.so.${SHLIB_MAJOR}.${SHLIB_MINOR} ${LOCALBASE}/lib/libobjc.so.${SHLIB_MAJOR} + ${LN} -sf libobjc.so.${SHLIB_MAJOR}.${SHLIB_MINOR} ${STAGEDIR}${PREFIX}/lib/libobjc.so.${SHLIB_MAJOR} .endif -.include <bsd.port.post.mk> +.include <bsd.port.mk> |