From f7ce4d5108a5fcec2fb433109263ff6cd6f00f94 Mon Sep 17 00:00:00 2001 From: Boris Samorodov Date: Tue, 11 Oct 2016 22:03:26 +0000 Subject: [PATCH] Simple multi-platform program to list serial ports with vid/pid/iserial fields. WWW: https://github.com/arduino/listSerialPortsC PR: 213391 Submitted by: bsdports@kyle-evans.net --- devel/Makefile | 1 + devel/listserialc/Makefile | 37 +++++++++++++++++++++++++++++++++++++ devel/listserialc/distinfo | 3 +++ devel/listserialc/pkg-descr | 3 +++ 4 files changed, 44 insertions(+) create mode 100644 devel/listserialc/Makefile create mode 100644 devel/listserialc/distinfo create mode 100644 devel/listserialc/pkg-descr diff --git a/devel/Makefile b/devel/Makefile index c56e8d109067..61937a453036 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -1454,6 +1454,7 @@ SUBDIR += linux_kdump SUBDIR += linux_libusb SUBDIR += lion + SUBDIR += listserialc SUBDIR += liteide SUBDIR += lldb37 SUBDIR += lldb38 diff --git a/devel/listserialc/Makefile b/devel/listserialc/Makefile new file mode 100644 index 000000000000..2d9ebecdb480 --- /dev/null +++ b/devel/listserialc/Makefile @@ -0,0 +1,37 @@ +# $FreeBSD$ + +PORTNAME= listserialc +PORTVERSION= 1.1.0 +CATEGORIES= devel java + +MAINTAINER= bsdports@kyle-evans.net +COMMENT= Simple multiplatform program to list serial ports with vid/pid/iserial + +LICENSE= LGPL3+ + +LIB_DEPENDS= libserialport.so:devel/libserialport + +USE_GITHUB= yes +GH_ACCOUNT= arduino +GH_PROJECT= listSerialPortsC + +USE_JAVA= yes +USE_LDCONFIG= yes +MAKE_ARGS+= JAVA_HOME=${JAVA_HOME} + +CFLAGS+= -I${LOCALBASE}/include -I${JAVA_HOME}/include -I${JAVA_HOME}/include/freebsd +LDFLAGS+= -L${LOCALBASE}/lib -lusb -lserialport + +PLIST_FILES= bin/listSerialC lib/jni/liblistSerialsj.so + +do-build: + @(cd ${WRKSRC} && \ + ${CC} ${CFLAGS} main.c ${LDFLAGS} -o listSerialC && \ + ${CC} ${CFLAGS} jnilib.c ${LDFLAGS} -shared -fPIC -o liblistSerialsj.so) + +do-install: + @${MKDIR} ${STAGEDIR}${PREFIX}/lib/jni + ${INSTALL_PROGRAM} ${WRKSRC}/listSerialC ${STAGEDIR}${PREFIX}/bin + ${INSTALL_LIB} ${WRKSRC}/liblistSerialsj.so ${STAGEDIR}${PREFIX}/lib/jni + +.include diff --git a/devel/listserialc/distinfo b/devel/listserialc/distinfo new file mode 100644 index 000000000000..63c71668632d --- /dev/null +++ b/devel/listserialc/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1476212947 +SHA256 (arduino-listSerialPortsC-1.1.0_GH0.tar.gz) = 1a0ce4d9d2390f036f5ad83d7b82b24cf5c3ebc6359ac208f33aa95722e4ec5e +SIZE (arduino-listSerialPortsC-1.1.0_GH0.tar.gz) = 2628 diff --git a/devel/listserialc/pkg-descr b/devel/listserialc/pkg-descr new file mode 100644 index 000000000000..f21b0240ddcd --- /dev/null +++ b/devel/listserialc/pkg-descr @@ -0,0 +1,3 @@ +Simple multi-platform program to list serial ports with vid/pid/iserial fields. + +WWW: https://github.com/arduino/listSerialPortsC