Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 13 Apr 2014 23:17:58 GMT
From:      Uffe Jakobsen <uffe@uffe.org>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/188575: New port: devel/libmpsse
Message-ID:  <201404132317.s3DNHwnZ021426@cgiserv.freebsd.org>
Resent-Message-ID: <201404132320.s3DNK1Ud062446@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         188575
>Category:       ports
>Synopsis:       New port: devel/libmpsse
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sun Apr 13 23:20:00 UTC 2014
>Closed-Date:
>Last-Modified:
>Originator:     Uffe Jakobsen
>Release:        FreeBSD 10.0-RELEASE
>Organization:
>Environment:
FreeBSD asus-u32u 10.0-RELEASE-p1 FreeBSD 10.0-RELEASE-p1 #0: Tue Apr  8 06:45:06 UTC 2014     root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC  amd64

>Description:
New port: devel/libmpsse

Open source library for SPI/I2C control via FTDI chips

Libmpsse is a library for interfacing with SPI/I2C devices via FTDI's
FT-2232 family of USB chips. Based around the libftdi library.

WWW: http://code.google.com/p/libmpsse/


>How-To-Repeat:

>Fix:


Patch attached with submission follows:

# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	libmpsse
#	libmpsse/Makefile
#	libmpsse/distinfo
#	libmpsse/pkg-descr
#	libmpsse/files
#	libmpsse/files/patch-src_configure_ac
#	libmpsse/files/patch-src_makefile_in
#
echo c - libmpsse
mkdir -p libmpsse > /dev/null 2>&1
echo x - libmpsse/Makefile
sed 's/^X//' >libmpsse/Makefile << '034e94c0a98e9ee1367a030dcdf8cdc3'
X# Created by: Uffe Jakobsen <uffe@uffe.org>
X# $FreeBSD: $
X
XPORTNAME=	libmpsse
XPORTVERSION=	1.3
XPORTREVISION=	1
XCATEGORIES=	devel
XMASTER_SITES=	${MASTER_SITE_GOOGLE_CODE}
X
XMAINTAINER=	uffe@uffe.org
XCOMMENT=	Open source library for SPI/I2C control via FTDI chips
X
XLICENSE=	GPLv2
X
XBUILD_DEPENDS=	swig2.0:${PORTSDIR}/devel/swig20
XLIB_DEPENDS=	libftdi.so:${PORTSDIR}/devel/libftdi
X
XUSE_AUTOTOOLS=		autoconf
XGNU_CONFIGURE=		yes
XCFLAGS+=		-I${LOCALBASE}/include -fPIC
XLDFLAGS+=		-L${LOCALBASE}/lib -lftdi
XUSE_LDCONFIG=		yes
X#USES=			pathfix
XUSES=			gmake pkgconfig
X
XCONFIGURE_WRKSRC= ${WRKSRC}/src
XBUILD_WRKSRC= ${WRKSRC}/src
XINSTALL_WRKSRC= ${WRKSRC}/src
X
XCONFIGURE_ENV=  SWIG="swig2.0"
X
XMAKE_ARGS=	CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}"
X
XPORTDOCS=		README README.*
XPORTEXAMPLES=		*
X
XPLIST_FILES= ${LOCALBASE}/lib/libmpsse.so ${LOCALBASE}/lib/libmpsse.a ${LOCALBASE}/include/mpsse.h
X
Xpre-install:
X	${MKDIR} ${STAGEDIR}/${LOCALBASE}/lib/
X
Xpost-install:
X	${MKDIR} ${STAGEDIR}/${DOCSDIR}
X	(cd ${WRKSRC}/docs && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR} "! -name Makefile")
X	${MKDIR} ${STAGEDIR}/${EXAMPLESDIR}
X	(cd ${WRKSRC}/src/examples && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR} "! -name Makefile")
X
X.include <bsd.port.mk>
034e94c0a98e9ee1367a030dcdf8cdc3
echo x - libmpsse/distinfo
sed 's/^X//' >libmpsse/distinfo << 'a2d21da15f425c2dc6efe01ba8c6bb64'
XSHA256 (libmpsse-1.3.tar.gz) = 08f2a0025074720d40e29430089b1ab78d764756cc5d2bcb3148d98131b4074b
XSIZE (libmpsse-1.3.tar.gz) = 652047
a2d21da15f425c2dc6efe01ba8c6bb64
echo x - libmpsse/pkg-descr
sed 's/^X//' >libmpsse/pkg-descr << '5ec0596886290a2a4f699d152551f520'
XOpen source library for SPI/I2C control via FTDI chips
X
XLibmpsse is a library for interfacing with SPI/I2C devices via FTDI's
XFT-2232 family of USB chips. Based around the libftdi library.
X
XWWW: http://code.google.com/p/libmpsse/
5ec0596886290a2a4f699d152551f520
echo c - libmpsse/files
mkdir -p libmpsse/files > /dev/null 2>&1
echo x - libmpsse/files/patch-src_configure_ac
sed 's/^X//' >libmpsse/files/patch-src_configure_ac << '8a236739c40fd9ae031faf4d6c7e77c6'
X--- src/configure.ac.orig	2014-04-13 17:54:11.835943734 +0200
X+++ src/configure.ac	2014-04-13 18:06:11.083132540 +0200
X@@ -42,6 +42,31 @@
X 		exit 1
X 	fi
X 
X+	if ! test $PYEXE
X+  	then
X+    		PYEXE=$(which python2)
X+    		if ! test ${PYEXE}
X+    		then
X+      			PYEXE=$(which python)
X+    		fi
X+  	fi
X+  	echo $PYEXE
X+
X+  	if ! test $PYDEV
X+  	then
X+    		for INCL in $(python2-config --includes)
X+    		do
X+      			echo $INCL
X+      			INCL=$(echo "${INCL}" | sed 's:^-I::g')
X+      			echo $INCL
X+      			if test -f "${INCL}/Python.h"
X+      			then
X+        			PYDEV="${INCL}"
X+        			break;
X+      			fi;
X+    		done
X+  	fi
X+
X 	if ! test $PYDEV
X 	then
X 		PYDEV="/usr/include/python$(python -V 2>&1 | awk '{print $2}' | cut -d'.' -f1,2)"
X@@ -54,7 +79,7 @@
X 		dnl This is a hack to get a valid python library path
X 		echo "import sys" > pylib.py
X 		echo "for path in sys.path: print path" >> pylib.py
X-		PYLIB="$(python pylib.py | grep -e '-packages$' | head -1)"
X+		PYLIB="$(${PYEXE} pylib.py | grep -e '-packages$' | head -1)"
X 		rm -f pylib.py
X 	fi
X 
8a236739c40fd9ae031faf4d6c7e77c6
echo x - libmpsse/files/patch-src_makefile_in
sed 's/^X//' >libmpsse/files/patch-src_makefile_in << 'af4a6d01497573f56b0c3be8ede2517e'
X--- src/Makefile.in.orig	2013-04-19 04:12:59.000000000 +0200
X+++ src/Makefile.in	2014-04-14 00:28:28.000000000 +0200
X@@ -43,6 +43,7 @@
X 		-o _pylib$(TARGET).so $(LDFLAGS) $(INC)
X 
X pyswig-install:
X+	install -d -m755 $(DESTDIR)/$(PYLIB)
X 	install -D -m644 pylib$(TARGET).py  $(DESTDIR)/$(PYLIB)/pylib$(TARGET).py
X 	install -D -m644 _pylib$(TARGET).so $(DESTDIR)/$(PYLIB)/_pylib$(TARGET).so
X 	install -D -m644 $(TARGET).py       $(DESTDIR)/$(PYLIB)/$(TARGET).py
af4a6d01497573f56b0c3be8ede2517e
exit



>Release-Note:
>Audit-Trail:
>Unformatted:



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