[Midnightbsd-cvs] mports [18220] trunk/devel/libdispatch/Makefile: use clang 3.3 with libdispatch port

laffer1 at midnightbsd.org laffer1 at midnightbsd.org
Wed Mar 18 08:24:18 EDT 2015


Revision: 18220
          http://svnweb.midnightbsd.org/mports/?rev=18220
Author:   laffer1
Date:     2015-03-18 08:24:17 -0400 (Wed, 18 Mar 2015)
Log Message:
-----------
use clang 3.3 with libdispatch port

Modified Paths:
--------------
    trunk/devel/libdispatch/Makefile

Modified: trunk/devel/libdispatch/Makefile
===================================================================
--- trunk/devel/libdispatch/Makefile	2015-03-18 02:49:20 UTC (rev 18219)
+++ trunk/devel/libdispatch/Makefile	2015-03-18 12:24:17 UTC (rev 18220)
@@ -2,7 +2,7 @@
 
 PORTNAME=	libdispatch
 PORTVERSION=	210
-PORTREVISION=	2
+PORTREVISION=	3
 CATEGORIES=	devel
 MASTER_SITES=	ftp://ftp.SpringDaemons.com/soft/
 
@@ -19,64 +19,68 @@
 # This is needed because PIC support check in autoconf could fail for clang otherwise.
 CONFIGURE_ENV=	lt_cv_prog_compiler_pic_works=yes
 
+_MAN3=	dispatch.3 \
+	dispatch_after.3 \
+	dispatch_after_f.3 \
+	dispatch_api.3 \
+	dispatch_apply.3 \
+	dispatch_apply_f.3 \
+	dispatch_async.3 \
+	dispatch_async_f.3 \
+	dispatch_benchmark.3 \
+	dispatch_benchmark_f.3 \
+	dispatch_get_context.3 \
+	dispatch_get_current_queue.3 \
+	dispatch_get_global_queue.3 \
+	dispatch_get_main_queue.3 \
+	dispatch_group_async.3 \
+	dispatch_group_async_f.3 \
+	dispatch_group_create.3 \
+	dispatch_group_enter.3 \
+	dispatch_group_leave.3 \
+	dispatch_group_notify.3 \
+	dispatch_group_notify_f.3 \
+	dispatch_group_wait.3 \
+	dispatch_main.3 \
+	dispatch_object.3 \
+	dispatch_once.3 \
+	dispatch_once_f.3 \
+	dispatch_queue_create.3 \
+	dispatch_queue_get_label.3 \
+	dispatch_release.3 \
+	dispatch_resume.3 \
+	dispatch_retain.3 \
+	dispatch_semaphore_create.3 \
+	dispatch_semaphore_signal.3 \
+	dispatch_semaphore_wait.3 \
+	dispatch_set_context.3 \
+	dispatch_set_finalizer_f.3 \
+	dispatch_set_target_queue.3 \
+	dispatch_source_cancel.3 \
+	dispatch_source_create.3 \
+	dispatch_source_get_data.3 \
+	dispatch_source_get_handle.3 \
+	dispatch_source_get_mask.3 \
+	dispatch_source_merge_data.3 \
+	dispatch_source_set_cancel_handler.3 \
+	dispatch_source_set_cancel_handler_f.3 \
+	dispatch_source_set_event_handler.3 \
+	dispatch_source_set_event_handler_f.3 \
+	dispatch_source_set_timer.3 \
+	dispatch_source_testcancel.3 \
+	dispatch_suspend.3 \
+	dispatch_sync.3 \
+	dispatch_sync_f.3 \
+	dispatch_time.3 \
+	dispatch_walltime.3
+PLIST_FILES+=	${_MAN3:S|^|man/man3/|:S|$|.gz|}
+
+.include <bsd.port.pre.mk>
+
 OPTIONS_DEFINE=	CLANG
 OPTIONS_DEFAULT=	CLANG
 CLANG_DESC=	Build with LLVM/Clang (required for blocks support)
 
-MAN3=	dispatch.3 dispatch_after.3 dispatch_api.3 dispatch_apply.3 \
-	dispatch_async.3 dispatch_benchmark.3 dispatch_group_create.3 \
-	dispatch_object.3 dispatch_once.3 dispatch_queue_create.3 \
-	dispatch_semaphore_create.3 dispatch_source_create.3 dispatch_time.3
-
-MLINKS=	dispatch_after.3 dispatch_after_f.3 \
-	dispatch_apply.3 dispatch_apply_f.3 \
-	dispatch_async.3 dispatch_sync.3 \
-	dispatch_async.3 dispatch_async_f.3 \
-	dispatch_async.3 dispatch_sync_f.3 \
-	dispatch_benchmark.3 dispatch_benchmark_f.3 \
-	dispatch_group_create.3 dispatch_group_enter.3 \
-	dispatch_group_create.3 dispatch_group_leave.3 \
-	dispatch_group_create.3 dispatch_group_wait.3 \
-	dispatch_group_create.3 dispatch_group_notify.3 \
-	dispatch_group_create.3 dispatch_group_notify_f.3 \
-	dispatch_group_create.3 dispatch_group_async.3 \
-	dispatch_group_create.3 dispatch_group_async_f.3 \
-	dispatch_object.3 dispatch_retain.3 \
-	dispatch_object.3 dispatch_release.3 \
-	dispatch_object.3 dispatch_suspend.3 \
-	dispatch_object.3 dispatch_resume.3 \
-	dispatch_object.3 dispatch_get_context.3 \
-	dispatch_object.3 dispatch_set_context.3 \
-	dispatch_object.3 dispatch_set_finalizer_f.3 \
-	dispatch_once.3 dispatch_once_f.3 \
-	dispatch_queue_create.3 dispatch_queue_get_label.3 \
-	dispatch_queue_create.3 dispatch_get_current_queue.3 \
-	dispatch_queue_create.3 dispatch_get_global_queue.3 \
-	dispatch_queue_create.3 dispatch_get_main_queue.3 \
-	dispatch_queue_create.3 dispatch_main.3 \
-	dispatch_queue_create.3 dispatch_set_target_queue.3 \
-	dispatch_semaphore_create.3 dispatch_semaphore_signal.3 \
-	dispatch_semaphore_create.3 dispatch_semaphore_wait.3 \
-	dispatch_source_create.3 dispatch_source_set_event_handler.3 \
-	dispatch_source_create.3 dispatch_source_set_event_handler_f.3 \
-	dispatch_source_create.3 dispatch_source_set_cancel_handler.3 \
-	dispatch_source_create.3 dispatch_source_set_cancel_handler_f.3 \
-	dispatch_source_create.3 dispatch_source_cancel.3 \
-	dispatch_source_create.3 dispatch_source_testcancel.3 \
-	dispatch_source_create.3 dispatch_source_get_handle.3 \
-	dispatch_source_create.3 dispatch_source_get_mask.3 \
-	dispatch_source_create.3 dispatch_source_get_data.3 \
-	dispatch_source_create.3 dispatch_source_merge_data.3 \
-	dispatch_source_create.3 dispatch_source_set_timer.3 \
-	dispatch_time.3 dispatch_walltime.3
-
-#
-# Get rid of .la and static library files
-#
-post-configure:
-	@${REINPLACE_CMD} -E -e \
-	'/Install the pseudo-library/,/staticlibs=/s,^,#,' ${WRKSRC}/libtool
-
 .include <bsd.port.pre.mk>
 
 .if ${OSVERSION} <= 3010
@@ -91,12 +95,12 @@
 
 .if ${PORT_OPTIONS:MCLANG}
 . if ${OSVERSION} < 4015
-BUILD_DEPENDS+=	clang:${PORTSDIR}/lang/clang \
+BUILD_DEPENDS+=	clang33:${PORTSDIR}/lang/clang33 \
 		${LOCALBASE}/lib/libBlocksRuntime.so:${PORTSDIR}/devel/compiler-rt
-RUN_DEPENDS+=	clang:${PORTSDIR}/lang/clang \
+RUN_DEPENDS+=	clang33:${PORTSDIR}/lang/clang33 \
 		${LOCALBASE}/lib/libBlocksRuntime.so:${PORTSDIR}/devel/compiler-rt
 CONFIGURE_ARGS+=	--with-blocks-runtime=${LOCALBASE}/lib
-CONFIGURE_ENV+=	CC="${LOCALBASE}/bin/clang" CPPFLAGS="-I${LOCALBASE}/include"
+CONFIGURE_ENV+=	CC="${LOCALBASE}/bin/clang33" CPPFLAGS="-I${LOCALBASE}/include"
 . else
 CONFIGURE_ARGS+=	--with-blocks-runtime=/usr/lib
 CONFIGURE_ENV+=	CC="/usr/bin/clang"
@@ -103,4 +107,11 @@
 . endif
 .endif
 
+#
+# Get rid of .la and static library files
+#
+post-configure:
+	@${REINPLACE_CMD} -E -e \
+	'/Install the pseudo-library/,/staticlibs=/s,^,#,' ${WRKSRC}/libtool
+
 .include <bsd.port.post.mk>



More information about the Midnightbsd-cvs mailing list