pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/devel/java-jna PR/54097: Added Java Native Access 5.2....
details: https://anonhg.NetBSD.org/pkgsrc/rev/7f790c7b404a
branches: trunk
changeset: 394176:7f790c7b404a
user: nonaka <nonaka%pkgsrc.org@localhost>
date: Fri Apr 05 12:55:15 2019 +0000
description:
PR/54097: Added Java Native Access 5.2.0 as devel/java-jna.
JNA provides Java programs easy access to native shared libraries without
writing anything but Java code - no JNI or native code is required.
This functionality is comparable to Windows' Platform/Invoke and Python's
ctypes.
diffstat:
devel/java-jna/DESCR | 21 +
devel/java-jna/Makefile | 95 +
devel/java-jna/PLIST | 1231 +++++++++++++++
devel/java-jna/distinfo | 8 +
devel/java-jna/patches/patch-build.xml | 61 +
devel/java-jna/patches/patch-native-libffi-configure.ac | 31 +
6 files changed, 1447 insertions(+), 0 deletions(-)
diffs (truncated from 1471 to 300 lines):
diff -r 4beba9e79b45 -r 7f790c7b404a devel/java-jna/DESCR
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/java-jna/DESCR Fri Apr 05 12:55:15 2019 +0000
@@ -0,0 +1,21 @@
+JNA provides Java programs easy access to native shared libraries without
+writing anything but Java code - no JNI or native code is required.
+This functionality is comparable to Windows' Platform/Invoke and Python's ctypes.
+
+JNA allows you to call directly into native functions using natural Java
+method invocation. The Java call looks just like the call does in native code.
+Most calls require no special handling or configuration; no boilerplate or
+generated code is required.
+
+JNA uses a small JNI library stub to dynamically invoke native code.
+The developer uses a Java interface to describe functions and structures
+in the target native library. This makes it quite easy to take advantage of
+native platform features without incurring the high overhead of configuring
+and building JNI code for multiple platforms. Read this more in-depth
+description.
+
+While significant attention has been paid to performance, correctness and
+ease of use take priority.
+
+In addition, JNA includes a platform library with many native functions already
+mapped as well as a set of utility interfaces that simplify native access.
diff -r 4beba9e79b45 -r 7f790c7b404a devel/java-jna/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/java-jna/Makefile Fri Apr 05 12:55:15 2019 +0000
@@ -0,0 +1,95 @@
+# $NetBSD: Makefile,v 1.1 2019/04/05 12:55:15 nonaka Exp $
+
+DISTNAME= jna-5.2.0
+PKGNAME= java-${DISTNAME}
+CATEGORIES= devel java
+MASTER_SITES= ${MASTER_SITE_GITHUB:=java-native-access/}
+GITHUB_PROJECT= jna
+
+MAINTAINER= nonakap%gmail.com@localhost
+HOMEPAGE= https://github.com/java-native-access/jna
+COMMENT= JNA provides Java programs easy access to native shared libraries.
+LICENSE= gnu-lgpl-v2.1 OR apache-2.0
+
+EXTRACT_USING= bsdtar
+
+#
+# Supported platforms (built and tested) from native/Makefile
+#
+# Windows 2000/XP/2003/Vista (x86/amd64)
+# Windows CE/Mobile (arm)
+# Darwin/OS X (i386/x86_64/ppc)
+# Linux (i386/amd64/ppc/arm)
+# Solaris (i386/amd64/sparc/sparcv9)
+# AIX (ppc/ppc64)
+# FreeBSD/OpenBSD/NetBSD (i386/amd64)
+# Android (arm/armv7/aarch64/x86/x86-64/mipsel/mips64el)
+#
+ONLY_FOR_PLATFORM+= Cygwin-*-*
+ONLY_FOR_PLATFORM+= Darwin-*-*
+ONLY_FOR_PLATFORM+= Linux-*-i386 Linux-*-x86_64
+ONLY_FOR_PLATFORM+= Linux-*-powerpc*
+ONLY_FOR_PLATFORM+= Linux-*-arm* Linux-*-aarch64
+ONLY_FOR_PLATFORM+= SunOS-*-*
+ONLY_FOR_PLATFORM+= AIX-*-*
+ONLY_FOR_PLATFORM+= FreeBSD-*-i386 FreeBSD-*-x86_64
+ONLY_FOR_PLATFORM+= OpenBSD-*-i386 OpenBSD-*-x86_64
+ONLY_FOR_PLATFORM+= NetBSD-*-i386 NetBSD-*-x86_64
+
+USE_LANGUAGES= c
+USE_JAVA= yes
+USE_JAVA2= yes
+USE_TOOLS+= autoreconf automake autoconf gmake pkg-config pax
+USE_LIBTOOL= yes
+
+OPSYSVARS+= JNIPFX JNISFX
+JNIPFX.Cygwin= # empty
+JNIPFX.*= lib
+JNISFX.Cygwin= dll
+JNISFX.Darwin= jnilib
+JNISFX.AIX= a
+JNISFX.*= so
+PLIST_SUBST+= JNIPFX=${JNIPFX} JNISFX=${JNISFX}
+
+.include "../../mk/bsd.prefs.mk"
+.include "../../mk/java-vm.mk"
+.if ${OPSYS} == "NetBSD" && ${PKG_JVM} == "openjdk8"
+# openjdk8<1.8.202 uses oldest sigaction on NetBSD.
+DEPENDS+= openjdk8>=1.8.202:../../lang/openjdk8
+.endif
+BUILD_DEPENDS+= apache-ant-[0-9]*:../../devel/apache-ant
+
+INSTALLATION_DIRS+= \
+ lib/java/jna share/doc/${PKGBASE}
+
+ANT_ARGS+= -Ddynlink.native=true
+ANT_ARGS+= -Dbuild-native=true
+ANT_ARGS+= -Dcflags_extra.native=""
+ANT_ARGS+= -DCC=${CC}
+ANT_TARGET= jar contrib-jars javadoc
+
+do-build:
+ cd ${WRKSRC} && \
+ ${SETENV} ${MAKE_ENV} ${PREFIX}/bin/ant ${ANT_ARGS} ${ANT_TARGET}
+
+do-install:
+ ${INSTALL_LIB} ${WRKSRC}/build/native-*/${JNIPFX}jnidispatch.${JNISFX} \
+ ${DESTDIR}${PREFIX}/lib
+ ${INSTALL_DATA} ${WRKSRC}/build/jna-native.jar \
+ ${DESTDIR}${PREFIX}/lib/java/jna/jna-native.jar
+ ${INSTALL_DATA} ${WRKSRC}/build/jna.jar \
+ ${DESTDIR}${PREFIX}/lib/java/jna/jna.jar
+ ${INSTALL_DATA} ${WRKSRC}/contrib/platform/dist/jna-platform.jar \
+ ${DESTDIR}${PREFIX}/lib/java/jna/jna-platform.jar
+ for i in AL2.0 LGPL2.1 LICENSE LICENSE.AL LICENSE.LGPL \
+ CHANGES.md OTHERS README.md TODO; \
+ do \
+ ${INSTALL_DATA} ${WRKSRC}/$$i \
+ ${DESTDIR}${PREFIX}/share/doc/${PKGBASE}; \
+ done
+ cd ${WRKSRC} && \
+ ${PAX} -rw doc www ${DESTDIR}${PREFIX}/share/doc/${PKGBASE}
+
+.include "../../devel/libffi/buildlink3.mk"
+.include "../../x11/libXt/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r 4beba9e79b45 -r 7f790c7b404a devel/java-jna/PLIST
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/java-jna/PLIST Fri Apr 05 12:55:15 2019 +0000
@@ -0,0 +1,1231 @@
+@comment $NetBSD: PLIST,v 1.1 2019/04/05 12:55:15 nonaka Exp $
+lib/${JNIPFX}jnidispatch.${JNISFX}
+lib/java/jna/jna-native.jar
+lib/java/jna/jna-platform.jar
+lib/java/jna/jna.jar
+share/doc/java-jna/AL2.0
+share/doc/java-jna/CHANGES.md
+share/doc/java-jna/LGPL2.1
+share/doc/java-jna/LICENSE
+share/doc/java-jna/LICENSE.AL
+share/doc/java-jna/LICENSE.LGPL
+share/doc/java-jna/OTHERS
+share/doc/java-jna/README.md
+share/doc/java-jna/TODO
+share/doc/java-jna/doc/javadoc/allclasses-frame.html
+share/doc/java-jna/doc/javadoc/allclasses-noframe.html
+share/doc/java-jna/doc/javadoc/com/sun/jna/AltCallingConvention.html
+share/doc/java-jna/doc/javadoc/com/sun/jna/Callback.UncaughtExceptionHandler.html
+share/doc/java-jna/doc/javadoc/com/sun/jna/Callback.html
+share/doc/java-jna/doc/javadoc/com/sun/jna/CallbackParameterContext.html
+share/doc/java-jna/doc/javadoc/com/sun/jna/CallbackProxy.html
+share/doc/java-jna/doc/javadoc/com/sun/jna/CallbackReference.AttachOptions.html
+share/doc/java-jna/doc/javadoc/com/sun/jna/CallbackReference.html
+share/doc/java-jna/doc/javadoc/com/sun/jna/CallbackResultContext.html
+share/doc/java-jna/doc/javadoc/com/sun/jna/CallbackThreadInitializer.html
+share/doc/java-jna/doc/javadoc/com/sun/jna/DefaultTypeMapper.html
+share/doc/java-jna/doc/javadoc/com/sun/jna/ELFAnalyser.ArmAeabiAttributesTag.ParameterType.html
+share/doc/java-jna/doc/javadoc/com/sun/jna/ELFAnalyser.ArmAeabiAttributesTag.html
+share/doc/java-jna/doc/javadoc/com/sun/jna/ELFAnalyser.ELFSectionHeaderEntry.html
+share/doc/java-jna/doc/javadoc/com/sun/jna/ELFAnalyser.ELFSectionHeaders.html
+share/doc/java-jna/doc/javadoc/com/sun/jna/ELFAnalyser.html
+share/doc/java-jna/doc/javadoc/com/sun/jna/FromNativeContext.html
+share/doc/java-jna/doc/javadoc/com/sun/jna/FromNativeConverter.html
+share/doc/java-jna/doc/javadoc/com/sun/jna/Function.PostCallRead.html
+share/doc/java-jna/doc/javadoc/com/sun/jna/Function.html
+share/doc/java-jna/doc/javadoc/com/sun/jna/FunctionMapper.html
+share/doc/java-jna/doc/javadoc/com/sun/jna/FunctionParameterContext.html
+share/doc/java-jna/doc/javadoc/com/sun/jna/FunctionResultContext.html
+share/doc/java-jna/doc/javadoc/com/sun/jna/IntegerType.html
+share/doc/java-jna/doc/javadoc/com/sun/jna/InvocationMapper.html
+share/doc/java-jna/doc/javadoc/com/sun/jna/JNIEnv.html
+share/doc/java-jna/doc/javadoc/com/sun/jna/Klass.html
+share/doc/java-jna/doc/javadoc/com/sun/jna/LastErrorException.html
+share/doc/java-jna/doc/javadoc/com/sun/jna/Library.Handler.html
+share/doc/java-jna/doc/javadoc/com/sun/jna/Library.html
+share/doc/java-jna/doc/javadoc/com/sun/jna/Memory.html
+share/doc/java-jna/doc/javadoc/com/sun/jna/MethodParameterContext.html
+share/doc/java-jna/doc/javadoc/com/sun/jna/MethodResultContext.html
+share/doc/java-jna/doc/javadoc/com/sun/jna/Native.ffi_callback.html
+share/doc/java-jna/doc/javadoc/com/sun/jna/Native.html
+share/doc/java-jna/doc/javadoc/com/sun/jna/NativeLibrary.html
+share/doc/java-jna/doc/javadoc/com/sun/jna/NativeLong.html
+share/doc/java-jna/doc/javadoc/com/sun/jna/NativeMapped.html
+share/doc/java-jna/doc/javadoc/com/sun/jna/NativeMappedConverter.html
+share/doc/java-jna/doc/javadoc/com/sun/jna/NativeString.html
+share/doc/java-jna/doc/javadoc/com/sun/jna/Platform.html
+share/doc/java-jna/doc/javadoc/com/sun/jna/Pointer.html
+share/doc/java-jna/doc/javadoc/com/sun/jna/PointerType.html
+share/doc/java-jna/doc/javadoc/com/sun/jna/StringArray.html
+share/doc/java-jna/doc/javadoc/com/sun/jna/Structure.ByReference.html
+share/doc/java-jna/doc/javadoc/com/sun/jna/Structure.ByValue.html
+share/doc/java-jna/doc/javadoc/com/sun/jna/Structure.FFIType.html
+share/doc/java-jna/doc/javadoc/com/sun/jna/Structure.FFIType.size_t.html
+share/doc/java-jna/doc/javadoc/com/sun/jna/Structure.FieldOrder.html
+share/doc/java-jna/doc/javadoc/com/sun/jna/Structure.StructField.html
+share/doc/java-jna/doc/javadoc/com/sun/jna/Structure.StructureSet.html
+share/doc/java-jna/doc/javadoc/com/sun/jna/Structure.html
+share/doc/java-jna/doc/javadoc/com/sun/jna/StructureReadContext.html
+share/doc/java-jna/doc/javadoc/com/sun/jna/StructureWriteContext.html
+share/doc/java-jna/doc/javadoc/com/sun/jna/ToNativeContext.html
+share/doc/java-jna/doc/javadoc/com/sun/jna/ToNativeConverter.html
+share/doc/java-jna/doc/javadoc/com/sun/jna/TypeConverter.html
+share/doc/java-jna/doc/javadoc/com/sun/jna/TypeMapper.html
+share/doc/java-jna/doc/javadoc/com/sun/jna/Union.html
+share/doc/java-jna/doc/javadoc/com/sun/jna/VarArgsChecker.html
+share/doc/java-jna/doc/javadoc/com/sun/jna/Version.html
+share/doc/java-jna/doc/javadoc/com/sun/jna/WString.html
+share/doc/java-jna/doc/javadoc/com/sun/jna/WeakMemoryHolder.html
+share/doc/java-jna/doc/javadoc/com/sun/jna/package-frame.html
+share/doc/java-jna/doc/javadoc/com/sun/jna/package-summary.html
+share/doc/java-jna/doc/javadoc/com/sun/jna/package-tree.html
+share/doc/java-jna/doc/javadoc/com/sun/jna/platform/DesktopWindow.html
+share/doc/java-jna/doc/javadoc/com/sun/jna/platform/EnumConverter.html
+share/doc/java-jna/doc/javadoc/com/sun/jna/platform/EnumUtils.html
+share/doc/java-jna/doc/javadoc/com/sun/jna/platform/FileMonitor.FileEvent.html
+share/doc/java-jna/doc/javadoc/com/sun/jna/platform/FileMonitor.FileListener.html
+share/doc/java-jna/doc/javadoc/com/sun/jna/platform/FileMonitor.html
+share/doc/java-jna/doc/javadoc/com/sun/jna/platform/FileUtils.html
+share/doc/java-jna/doc/javadoc/com/sun/jna/platform/KeyboardUtils.html
+share/doc/java-jna/doc/javadoc/com/sun/jna/platform/RasterRangesUtils.RangesOutput.html
+share/doc/java-jna/doc/javadoc/com/sun/jna/platform/RasterRangesUtils.html
+share/doc/java-jna/doc/javadoc/com/sun/jna/platform/WindowUtils.NativeWindowUtils.TransparentContentPane.html
+share/doc/java-jna/doc/javadoc/com/sun/jna/platform/WindowUtils.NativeWindowUtils.html
+share/doc/java-jna/doc/javadoc/com/sun/jna/platform/WindowUtils.RepaintTrigger.Listener.html
+share/doc/java-jna/doc/javadoc/com/sun/jna/platform/WindowUtils.RepaintTrigger.html
+share/doc/java-jna/doc/javadoc/com/sun/jna/platform/WindowUtils.html
+share/doc/java-jna/doc/javadoc/com/sun/jna/platform/dnd/DragHandler.html
+share/doc/java-jna/doc/javadoc/com/sun/jna/platform/dnd/DropHandler.html
+share/doc/java-jna/doc/javadoc/com/sun/jna/platform/dnd/DropTargetPainter.html
+share/doc/java-jna/doc/javadoc/com/sun/jna/platform/dnd/GhostedDragImage.html
+share/doc/java-jna/doc/javadoc/com/sun/jna/platform/dnd/package-frame.html
+share/doc/java-jna/doc/javadoc/com/sun/jna/platform/dnd/package-summary.html
+share/doc/java-jna/doc/javadoc/com/sun/jna/platform/dnd/package-tree.html
+share/doc/java-jna/doc/javadoc/com/sun/jna/platform/linux/LibC.Statvfs.html
+share/doc/java-jna/doc/javadoc/com/sun/jna/platform/linux/LibC.Sysinfo.html
+share/doc/java-jna/doc/javadoc/com/sun/jna/platform/linux/LibC.html
+share/doc/java-jna/doc/javadoc/com/sun/jna/platform/linux/XAttr.html
+share/doc/java-jna/doc/javadoc/com/sun/jna/platform/linux/XAttr.size_t.html
+share/doc/java-jna/doc/javadoc/com/sun/jna/platform/linux/XAttr.ssize_t.html
+share/doc/java-jna/doc/javadoc/com/sun/jna/platform/linux/XAttrUtil.html
+share/doc/java-jna/doc/javadoc/com/sun/jna/platform/linux/package-frame.html
+share/doc/java-jna/doc/javadoc/com/sun/jna/platform/linux/package-summary.html
+share/doc/java-jna/doc/javadoc/com/sun/jna/platform/linux/package-tree.html
+share/doc/java-jna/doc/javadoc/com/sun/jna/platform/mac/Carbon.EventHandlerProcPtr.html
+share/doc/java-jna/doc/javadoc/com/sun/jna/platform/mac/Carbon.EventHotKeyID.ByValue.html
+share/doc/java-jna/doc/javadoc/com/sun/jna/platform/mac/Carbon.EventHotKeyID.html
+share/doc/java-jna/doc/javadoc/com/sun/jna/platform/mac/Carbon.EventTypeSpec.html
+share/doc/java-jna/doc/javadoc/com/sun/jna/platform/mac/Carbon.html
+share/doc/java-jna/doc/javadoc/com/sun/jna/platform/mac/MacFileUtils.FileManager.FSRef.html
+share/doc/java-jna/doc/javadoc/com/sun/jna/platform/mac/MacFileUtils.FileManager.html
+share/doc/java-jna/doc/javadoc/com/sun/jna/platform/mac/MacFileUtils.html
+share/doc/java-jna/doc/javadoc/com/sun/jna/platform/mac/SystemB.Group.html
+share/doc/java-jna/doc/javadoc/com/sun/jna/platform/mac/SystemB.HostCpuLoadInfo.html
+share/doc/java-jna/doc/javadoc/com/sun/jna/platform/mac/SystemB.HostLoadInfo.html
+share/doc/java-jna/doc/javadoc/com/sun/jna/platform/mac/SystemB.IFdata.html
+share/doc/java-jna/doc/javadoc/com/sun/jna/platform/mac/SystemB.IFdata64.html
+share/doc/java-jna/doc/javadoc/com/sun/jna/platform/mac/SystemB.IFmsgHdr.html
+share/doc/java-jna/doc/javadoc/com/sun/jna/platform/mac/SystemB.IFmsgHdr2.html
+share/doc/java-jna/doc/javadoc/com/sun/jna/platform/mac/SystemB.Passwd.html
+share/doc/java-jna/doc/javadoc/com/sun/jna/platform/mac/SystemB.ProcBsdInfo.html
+share/doc/java-jna/doc/javadoc/com/sun/jna/platform/mac/SystemB.ProcTaskAllInfo.html
+share/doc/java-jna/doc/javadoc/com/sun/jna/platform/mac/SystemB.ProcTaskInfo.html
+share/doc/java-jna/doc/javadoc/com/sun/jna/platform/mac/SystemB.RUsageInfoV2.html
+share/doc/java-jna/doc/javadoc/com/sun/jna/platform/mac/SystemB.Statfs.html
+share/doc/java-jna/doc/javadoc/com/sun/jna/platform/mac/SystemB.Timeval.html
+share/doc/java-jna/doc/javadoc/com/sun/jna/platform/mac/SystemB.Timezone.html
+share/doc/java-jna/doc/javadoc/com/sun/jna/platform/mac/SystemB.VMMeter.html
+share/doc/java-jna/doc/javadoc/com/sun/jna/platform/mac/SystemB.VMStatistics.html
+share/doc/java-jna/doc/javadoc/com/sun/jna/platform/mac/SystemB.VMStatistics64.html
+share/doc/java-jna/doc/javadoc/com/sun/jna/platform/mac/SystemB.VnodeInfoPath.html
+share/doc/java-jna/doc/javadoc/com/sun/jna/platform/mac/SystemB.VnodePathInfo.html
+share/doc/java-jna/doc/javadoc/com/sun/jna/platform/mac/SystemB.XswUsage.html
+share/doc/java-jna/doc/javadoc/com/sun/jna/platform/mac/SystemB.html
+share/doc/java-jna/doc/javadoc/com/sun/jna/platform/mac/XAttr.html
+share/doc/java-jna/doc/javadoc/com/sun/jna/platform/mac/XAttrUtil.html
+share/doc/java-jna/doc/javadoc/com/sun/jna/platform/mac/package-frame.html
+share/doc/java-jna/doc/javadoc/com/sun/jna/platform/mac/package-summary.html
+share/doc/java-jna/doc/javadoc/com/sun/jna/platform/mac/package-tree.html
+share/doc/java-jna/doc/javadoc/com/sun/jna/platform/package-frame.html
+share/doc/java-jna/doc/javadoc/com/sun/jna/platform/package-summary.html
+share/doc/java-jna/doc/javadoc/com/sun/jna/platform/package-tree.html
+share/doc/java-jna/doc/javadoc/com/sun/jna/platform/unix/LibC.html
+share/doc/java-jna/doc/javadoc/com/sun/jna/platform/unix/LibCAPI.html
+share/doc/java-jna/doc/javadoc/com/sun/jna/platform/unix/Reboot.html
+share/doc/java-jna/doc/javadoc/com/sun/jna/platform/unix/Resource.Rlimit.html
+share/doc/java-jna/doc/javadoc/com/sun/jna/platform/unix/Resource.html
+share/doc/java-jna/doc/javadoc/com/sun/jna/platform/unix/X11.Atom.html
+share/doc/java-jna/doc/javadoc/com/sun/jna/platform/unix/X11.AtomByReference.html
+share/doc/java-jna/doc/javadoc/com/sun/jna/platform/unix/X11.Colormap.html
+share/doc/java-jna/doc/javadoc/com/sun/jna/platform/unix/X11.Cursor.html
+share/doc/java-jna/doc/javadoc/com/sun/jna/platform/unix/X11.Display.html
+share/doc/java-jna/doc/javadoc/com/sun/jna/platform/unix/X11.Drawable.html
+share/doc/java-jna/doc/javadoc/com/sun/jna/platform/unix/X11.Font.html
+share/doc/java-jna/doc/javadoc/com/sun/jna/platform/unix/X11.GC.html
+share/doc/java-jna/doc/javadoc/com/sun/jna/platform/unix/X11.KeySym.html
+share/doc/java-jna/doc/javadoc/com/sun/jna/platform/unix/X11.Pixmap.html
+share/doc/java-jna/doc/javadoc/com/sun/jna/platform/unix/X11.Screen.html
+share/doc/java-jna/doc/javadoc/com/sun/jna/platform/unix/X11.Visual.html
+share/doc/java-jna/doc/javadoc/com/sun/jna/platform/unix/X11.VisualID.html
+share/doc/java-jna/doc/javadoc/com/sun/jna/platform/unix/X11.Window.html
+share/doc/java-jna/doc/javadoc/com/sun/jna/platform/unix/X11.WindowByReference.html
+share/doc/java-jna/doc/javadoc/com/sun/jna/platform/unix/X11.XAnyEvent.html
Home |
Main Index |
Thread Index |
Old Index