Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 28 Jan 2014 08:13:38 +0000 (UTC)
From:      Baptiste Daroussin <bapt@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r341510 - head/lang/libobjc2
Message-ID:  <201401280813.s0S8DcHf067201@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bapt
Date: Tue Jan 28 08:13:37 2014
New Revision: 341510
URL: http://svnweb.freebsd.org/changeset/ports/341510
QAT: https://qat.redports.org/buildarchive/r341510/

Log:
  Support stage
  Respect prefix

Modified:
  head/lang/libobjc2/Makefile

Modified: head/lang/libobjc2/Makefile
==============================================================================
--- head/lang/libobjc2/Makefile	Tue Jan 28 08:04:07 2014	(r341509)
+++ head/lang/libobjc2/Makefile	Tue Jan 28 08:13:37 2014	(r341510)
@@ -12,10 +12,10 @@ COMMENT=	Replacement Objective-C runtime
 
 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>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201401280813.s0S8DcHf067201>