2011-11-13 08:54:04 -05:00
|
|
|
# $OpenBSD: Makefile,v 1.11 2011/11/13 13:54:04 ajacoutot Exp $
|
|
|
|
|
2006-11-12 13:11:25 -05:00
|
|
|
SHARED_ONLY= Yes
|
|
|
|
|
2008-08-23 16:45:10 -04:00
|
|
|
COMMENT= python interface to libusb
|
|
|
|
MODPY_EGG_VERSION= 0.4.1
|
|
|
|
DISTNAME= pyusb-${MODPY_EGG_VERSION}
|
2011-11-13 08:54:04 -05:00
|
|
|
REVISION = 4
|
2008-08-23 16:45:10 -04:00
|
|
|
CATEGORIES= devel
|
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=pyusb/}
|
2006-11-12 13:11:25 -05:00
|
|
|
|
|
|
|
HOMEPAGE= http://pyusb.berlios.de/
|
|
|
|
|
2008-08-23 16:45:10 -04:00
|
|
|
# BSD
|
2006-11-12 13:11:25 -05:00
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
|
|
|
|
NO_REGRESS= Yes
|
|
|
|
|
|
|
|
MODULES= lang/python
|
|
|
|
|
2011-11-13 08:54:04 -05:00
|
|
|
LIB_DEPENDS= devel/libusb-compat \
|
|
|
|
${MODPY_LIB_DEPENDS}
|
|
|
|
WANTLIB = usb ${MODPY_WANTLIB}
|
2006-11-12 13:11:25 -05:00
|
|
|
|
|
|
|
pre-configure:
|
|
|
|
@perl -pi -e 's|_LOCALBASE_|${LOCALBASE}|g' ${WRKSRC}/setup.py
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/pyusb
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/samples/*.py ${PREFIX}/share/examples/pyusb
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|