openbsd-ports/devel/pyusb/Makefile

34 lines
731 B
Makefile
Raw Normal View History

2010-11-08 05:28:22 -05:00
# $OpenBSD: Makefile,v 1.7 2010/11/08 10:28:22 espie Exp $
SHARED_ONLY= Yes
COMMENT= python interface to libusb
MODPY_EGG_VERSION= 0.4.1
DISTNAME= pyusb-${MODPY_EGG_VERSION}
2010-08-30 18:24:14 -04:00
REVISION = 1
CATEGORIES= devel
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=pyusb/}
HOMEPAGE= http://pyusb.berlios.de/
# BSD
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
NO_REGRESS= Yes
MODULES= lang/python
2010-11-08 05:28:22 -05:00
LIB_DEPENDS= ::devel/libusb
WANTLIB = usb
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>