From owner-svn-ports-all@freebsd.org Sun Jun 26 11:51:11 2016 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 9EBEDAC5D93; Sun, 26 Jun 2016 11:51:11 +0000 (UTC) (envelope-from pi@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 6E2BA2B53; Sun, 26 Jun 2016 11:51:11 +0000 (UTC) (envelope-from pi@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id u5QBpAjm046910; Sun, 26 Jun 2016 11:51:10 GMT (envelope-from pi@FreeBSD.org) Received: (from pi@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id u5QBp90Z046901; Sun, 26 Jun 2016 11:51:09 GMT (envelope-from pi@FreeBSD.org) Message-Id: <201606261151.u5QBp90Z046901@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: pi set sender to pi@FreeBSD.org using -f From: Kurt Jaeger Date: Sun, 26 Jun 2016 11:51:09 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r417519 - in head/java: . aparapi aparapi/files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 26 Jun 2016 11:51:11 -0000 Author: pi Date: Sun Jun 26 11:51:09 2016 New Revision: 417519 URL: https://svnweb.freebsd.org/changeset/ports/417519 Log: New port: java/aparapi aparapi is an open source API for expressing data parallel workflows in Java. Originally an AMD product, Aparapi was released to open source on September 14, 2011. Aparapi is an API for expressing data parallel workloads in Java and a runtime component capable of converting the Java# bytecode of compatible workloads into OpenCL# so that it can be executed on a variety of GPU devices. WWW: https://github.com/aparapi/aparapi PR: 204024 Submitted by: dieterich@ogolem.org Added: head/java/aparapi/ head/java/aparapi/Makefile (contents, props changed) head/java/aparapi/distinfo (contents, props changed) head/java/aparapi/files/ head/java/aparapi/files/patch-build.xml (contents, props changed) head/java/aparapi/files/patch-com.amd.aparapi.jni_build.xml (contents, props changed) head/java/aparapi/files/patch-com.amd.aparapi.jni_src_cpp_Common.h (contents, props changed) head/java/aparapi/files/patch-com.amd.aparapi_src_java_com_amd_aparapi_internal_opencl_OpenCLLoader.java (contents, props changed) head/java/aparapi/pkg-descr (contents, props changed) head/java/aparapi/pkg-plist (contents, props changed) Modified: head/java/Makefile Modified: head/java/Makefile ============================================================================== --- head/java/Makefile Sun Jun 26 11:12:16 2016 (r417518) +++ head/java/Makefile Sun Jun 26 11:51:09 2016 (r417519) @@ -3,6 +3,7 @@ COMMENT = Java language support + SUBDIR += aparapi SUBDIR += avis SUBDIR += berkeley-db SUBDIR += bluej Added: head/java/aparapi/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/java/aparapi/Makefile Sun Jun 26 11:51:09 2016 (r417519) @@ -0,0 +1,34 @@ +# Created by: Johannes Dieterich +# $FreeBSD$ + +PORTNAME= aparapi +PORTVERSION= 1.0.0 +DISTVERSIONSUFFIX= -SNAPSHOT +CATEGORIES= java lang + +MAINTAINER= dieterich@ogolem.org +COMMENT= Open source API for expressing data parallel workflows in Java + +LICENSE= BSD3CLAUSE +LICENSE_FILE= ${WRKSRC}/LICENSE.TXT + +BUILD_DEPENDS= opencl>=0:devel/opencl +LIB_DEPENDS= libOpenCL.so:devel/ocl-icd +RUN_DEPENDS= opencl>=0:devel/opencl + +ONLY_FOR_ARCHS= amd64 i386 + +USE_GITHUB= yes + +USE_JAVA= yes +JAVA_VERSION= 1.7+ +USE_ANT= yes +ALL_TARGET= dist + +USES= dos2unix + +do-install: + (cd ${WRKSRC}/dist_freebsd && ${INSTALL_DATA} aparapi.jar ${STAGEDIR}${JAVAJARDIR}) + (cd ${WRKSRC}/dist_freebsd && ${INSTALL_LIB} libaparapi.so ${STAGEDIR}${PREFIX}/lib) + +.include Added: head/java/aparapi/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/java/aparapi/distinfo Sun Jun 26 11:51:09 2016 (r417519) @@ -0,0 +1,3 @@ +TIMESTAMP = 1466929753 +SHA256 (aparapi-aparapi-1.0.0-SNAPSHOT_GH0.tar.gz) = 4b3a4662476746406f2138e372730a64e566b87a464a767dd878e9794f30101a +SIZE (aparapi-aparapi-1.0.0-SNAPSHOT_GH0.tar.gz) = 5431817 Added: head/java/aparapi/files/patch-build.xml ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/java/aparapi/files/patch-build.xml Sun Jun 26 11:51:09 2016 (r417519) @@ -0,0 +1,13 @@ +--- build.xml.orig 2015-09-21 01:20:25 UTC ++++ build.xml +@@ -5,8 +5,9 @@ + + + +- ++ + ++ + + + Added: head/java/aparapi/files/patch-com.amd.aparapi.jni_build.xml ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/java/aparapi/files/patch-com.amd.aparapi.jni_build.xml Sun Jun 26 11:51:09 2016 (r417519) @@ -0,0 +1,156 @@ +--- com.amd.aparapi.jni/build.xml.orig 2015-09-21 01:20:25 UTC ++++ com.amd.aparapi.jni/build.xml +@@ -71,6 +71,23 @@ First consider editing the properties in + + + ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ + + + +@@ -300,9 +317,16 @@ First consider editing the properties in + + + ++ ++ ++ + + + ++ ++ ++ ++ + + + +@@ -352,6 +376,9 @@ First consider editing the properties in + + + ++ ++ ++ + + + +@@ -485,6 +512,45 @@ First consider editing the properties in + + + ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ + + + +@@ -575,7 +641,7 @@ First consider editing the properties in + + + +- ++ + + + +@@ -627,6 +693,24 @@ First consider editing the properties in + + + ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ + + + +@@ -674,6 +758,20 @@ First consider editing the properties in + + + +- +- ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ + Added: head/java/aparapi/files/patch-com.amd.aparapi.jni_src_cpp_Common.h ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/java/aparapi/files/patch-com.amd.aparapi.jni_src_cpp_Common.h Sun Jun 26 11:51:09 2016 (r417519) @@ -0,0 +1,11 @@ +--- com.amd.aparapi.jni/src/cpp/Common.h.orig 2015-09-21 01:20:25 UTC ++++ com.amd.aparapi.jni/src/cpp/Common.h +@@ -44,7 +44,7 @@ + #include + #include + +-#ifndef __APPLE__ ++#if not defined __APPLE__ && not defined __FreeBSD__ + #include + #endif + Added: head/java/aparapi/files/patch-com.amd.aparapi_src_java_com_amd_aparapi_internal_opencl_OpenCLLoader.java ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/java/aparapi/files/patch-com.amd.aparapi_src_java_com_amd_aparapi_internal_opencl_OpenCLLoader.java Sun Jun 26 11:51:09 2016 (r417519) @@ -0,0 +1,15 @@ +--- com.amd.aparapi/src/java/com/amd/aparapi/internal/opencl/OpenCLLoader.java.orig 2015-09-21 01:20:26 UTC ++++ com.amd.aparapi/src/java/com/amd/aparapi/internal/opencl/OpenCLLoader.java +@@ -26,10 +26,8 @@ public class OpenCLLoader extends OpenCL + logger.fine("arch = " + arch); + String aparapiLibraryName = null; + +- if (arch.equals("amd64") || arch.equals("x86_64")) { +- aparapiLibraryName = "aparapi_x86_64"; +- } else if (arch.equals("x86") || arch.equals("i386")) { +- aparapiLibraryName = "aparapi_x86"; ++ if (arch.equals("amd64") || arch.equals("x86_64") || arch.equals("x86") || arch.equals("i386")) { ++ aparapiLibraryName = "aparapi"; + } else { + logger.warning("Expected property os.arch to contain amd64, x86_64, x86 or i386 but instead found " + arch + + " as a result we don't know which aparapi to attempt to load."); Added: head/java/aparapi/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/java/aparapi/pkg-descr Sun Jun 26 11:51:09 2016 (r417519) @@ -0,0 +1,8 @@ +aparapi is an open source API for expressing data parallel workflows in Java. + +Originally an AMD product, Aparapi was released to open source on September +14, 2011. Aparapi is an API for expressing data parallel workloads in Java +and a runtime component capable of converting the Java# bytecode of compatible +workloads into OpenCL# so that it can be executed on a variety of GPU devices. + +WWW: https://github.com/aparapi/aparapi Added: head/java/aparapi/pkg-plist ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/java/aparapi/pkg-plist Sun Jun 26 11:51:09 2016 (r417519) @@ -0,0 +1,2 @@ +lib/libaparapi.so +%%JAVAJARDIR%%/aparapi.jar