aboutsummaryrefslogtreecommitdiffstats
path: root/lang/libobjc2
diff options
context:
space:
mode:
authorbapt <bapt@FreeBSD.org>2014-01-28 16:13:37 +0800
committerbapt <bapt@FreeBSD.org>2014-01-28 16:13:37 +0800
commit8d4be470e801719a08d89d0002ca6f961d0776bd (patch)
tree29eed22a1d7f235992bc0da32f347bb433ec0a72 /lang/libobjc2
parent87dd3e7aec80c4bc8557976b8d26e081338b7577 (diff)
downloadfreebsd-ports-gnome-8d4be470e801719a08d89d0002ca6f961d0776bd.tar.gz
freebsd-ports-gnome-8d4be470e801719a08d89d0002ca6f961d0776bd.tar.zst
freebsd-ports-gnome-8d4be470e801719a08d89d0002ca6f961d0776bd.zip
Support stage
Respect prefix
Diffstat (limited to 'lang/libobjc2')
-rw-r--r--lang/libobjc2/Makefile20
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>