2007-06-04 21:40:09 +02:00
|
|
|
# New ports collection makefile for: py-usb
|
|
|
|
# Date created: 2007-05-13
|
|
|
|
# Whom: R.Mahmatkhanov <R.Mahmatkhanov@SKYLINK.ru>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= pyusb
|
2009-07-21 02:55:36 +02:00
|
|
|
PORTVERSION= 0.4.2
|
2007-06-04 21:40:09 +02:00
|
|
|
CATEGORIES= devel python
|
2009-03-10 02:16:37 +01:00
|
|
|
MASTER_SITES= SF \
|
2007-06-04 21:40:09 +02:00
|
|
|
${MASTER_SITE_BERLIOS}
|
|
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
|
|
|
2009-03-10 02:16:37 +01:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2007-06-04 21:40:09 +02:00
|
|
|
COMMENT= Python wrapper around libusb
|
|
|
|
|
|
|
|
USE_PYTHON= yes
|
|
|
|
USE_PYDISTUTILS= yes
|
|
|
|
PLIST_FILES= %%PYTHON_SITELIBDIR%%/usb.so
|
|
|
|
|
2009-03-09 18:15:43 +01:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if ${OSVERSION} < 800069
|
2009-03-10 02:16:37 +01:00
|
|
|
LIB_DEPENDS+= usb:${PORTSDIR}/devel/libusb
|
2009-06-06 08:09:33 +02:00
|
|
|
|
|
|
|
post-patch:
|
2009-06-06 18:03:43 +02:00
|
|
|
${REINPLACE_CMD} 's,/usr/local,${LOCALBASE},' ${WRKSRC}/setup.py
|
2009-06-06 08:09:33 +02:00
|
|
|
|
2009-03-09 18:15:43 +01:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|