mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-18 08:02:48 +00:00
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
This commit is contained in:
parent
ff2359b506
commit
f7ce4d5108
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=423803
@ -1454,6 +1454,7 @@
|
||||
SUBDIR += linux_kdump
|
||||
SUBDIR += linux_libusb
|
||||
SUBDIR += lion
|
||||
SUBDIR += listserialc
|
||||
SUBDIR += liteide
|
||||
SUBDIR += lldb37
|
||||
SUBDIR += lldb38
|
||||
|
37
devel/listserialc/Makefile
Normal file
37
devel/listserialc/Makefile
Normal file
@ -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 <bsd.port.mk>
|
3
devel/listserialc/distinfo
Normal file
3
devel/listserialc/distinfo
Normal file
@ -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
|
3
devel/listserialc/pkg-descr
Normal file
3
devel/listserialc/pkg-descr
Normal file
@ -0,0 +1,3 @@
|
||||
Simple multi-platform program to list serial ports with vid/pid/iserial fields.
|
||||
|
||||
WWW: https://github.com/arduino/listSerialPortsC
|
Loading…
Reference in New Issue
Block a user