Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 11 Feb 2013 09:12:36 +0000 (UTC)
From:      Pietro Cerutti <gahr@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r312046 - in head/devel/libpeak: . files
Message-ID:  <201302110912.r1B9Cak3030281@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: gahr
Date: Mon Feb 11 09:12:35 2013
New Revision: 312046
URL: http://svnweb.freebsd.org/changeset/ports/312046

Log:
  - Unbreak on amd64 and sparc64
  - Take maintainership
  - Add regression-test target
  - Trim Makefile header

Added:
  head/devel/libpeak/files/
  head/devel/libpeak/files/patch-configure   (contents, props changed)
  head/devel/libpeak/files/patch-peak_engine_mode_kqueue.c   (contents, props changed)
  head/devel/libpeak/files/patch-peak_signal.c   (contents, props changed)
Modified:
  head/devel/libpeak/Makefile   (contents, props changed)

Modified: head/devel/libpeak/Makefile
==============================================================================
--- head/devel/libpeak/Makefile	Mon Feb 11 06:59:06 2013	(r312045)
+++ head/devel/libpeak/Makefile	Mon Feb 11 09:12:35 2013	(r312046)
@@ -1,27 +1,25 @@
-# ex:ts=8
-# Ports collection makefile for:	libpeak
-# Date created:			Mar 18, 2005
-# Whom:				ijliao
-#
+# Created by: ijliao
 # $FreeBSD$
-#
 
 PORTNAME=	libpeak
 PORTVERSION=	0.1.2
-PORTREVISION=	0
 CATEGORIES=	devel
 MASTER_SITES=	SF/peak/${PORTNAME}/${PORTVERSION}
 
-MAINTAINER=	ports@FreeBSD.org
+MAINTAINER=	gahr@FreeBSD.org
 COMMENT=	Parallel Events and Asynchronous tasKing Library
 
-ONLY_FOR_ARCHS=	i386
+ONLY_FOR_ARCHS=	i386 amd64 sparc64
 
 USE_GMAKE=	yes
 GNU_CONFIGURE=	yes
-MAKE_ARGS=	CFLAGS="${CFLAGS}" PTHREAD_CFLAGS="${PTHREAD_CFLAGS}" \
-		LIBS="${PTHREAD_LIBS}"
 USE_LDCONFIG=	yes
-USE_AUTOTOOLS=	libtool
+
+regression-test: build
+	( \
+	    cd ${WRKSRC}/tests; \
+	    alltests=`ls *.c | sed -e 's|\.c||g'`; \
+	    ${MAKE} $$alltests && ./test-suite.pl $$alltests \
+	)
 
 .include <bsd.port.mk>

Added: head/devel/libpeak/files/patch-configure
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/libpeak/files/patch-configure	Mon Feb 11 09:12:35 2013	(r312046)
@@ -0,0 +1,29 @@
+--- configure.orig	2007-05-24 15:25:29.000000000 +0200
++++ configure	2013-02-11 09:41:56.000000000 +0100
+@@ -2514,7 +2514,7 @@
+ 
+ cflags='-O2 -g -Wall'
+ default_includes=' -I. -I$(srcdir) -I$(top_builddir)'
+-includes='-I- -I$(top_builddir)'
++includes='-I$(top_builddir)'
+ 
+ case "$host" in
+     *-*-aix*)
+@@ -2661,7 +2661,7 @@
+         arch=powerpc
+         ;;
+ 
+-    i*86-* | x86-* | x86_64-*)
++    i*86-* | x86-* | x86_64-* | amd64-*)
+         arch=x86
+         ;;
+ 
+@@ -22321,7 +22321,7 @@
+  ac_cv_header_stdint_x="no-file"
+  ac_cv_header_stdint_o="no-file"
+  ac_cv_header_stdint_u="no-file"
+- for i in stdint.h $inttype_headers ; do
++ for i in inttypes.h stdint.h $inttype_headers ; do
+    unset ac_cv_type_uintptr_t
+    unset ac_cv_type_uint64_t
+    { echo "$as_me:$LINENO: checking for uintptr_t" >&5

Added: head/devel/libpeak/files/patch-peak_engine_mode_kqueue.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/libpeak/files/patch-peak_engine_mode_kqueue.c	Mon Feb 11 09:12:35 2013	(r312046)
@@ -0,0 +1,12 @@
+--- peak/engine_mod_kqueue.c.orig	2013-02-11 09:50:18.000000000 +0100
++++ peak/engine_mod_kqueue.c	2013-02-11 09:51:01.000000000 +0100
+@@ -47,6 +47,9 @@
+ #include <time.h>
+ #include <unistd.h>
+ #include <sys/event.h>
++#ifdef HAVE_SYS_SIGNAL_H
++#include <sys/signal.h>
++#endif
+ #ifdef HAVE_SIGNAL_H
+ #include <signal.h>
+ #endif

Added: head/devel/libpeak/files/patch-peak_signal.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/libpeak/files/patch-peak_signal.c	Mon Feb 11 09:12:35 2013	(r312046)
@@ -0,0 +1,12 @@
+--- peak/signal.c.orig	2013-02-11 09:43:19.000000000 +0100
++++ peak/signal.c	2013-02-11 09:49:07.000000000 +0100
+@@ -45,6 +45,9 @@
+ #include <stdlib.h>
+ #include <stdio.h>
+ #include <string.h>
++#ifdef HAVE_SYS_SIGNAL_H
++#include <sys/signal.h>
++#endif
+ #ifdef HAVE_SIGNAL_H
+ #include <signal.h>
+ #endif



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