# Created by: KIKUCHI Koichiro # $FreeBSD$ PORTNAME= wmi PORTVERSION= 1.3.16 PORTREVISION= 1 CATEGORIES= net-mgmt MASTER_SITES= http://dev.zenoss.org/trac/export/26435/trunk/inst/externallibs/ \ http://www.openvas.org/download/wmi/ \ http://mirrors.rit.edu/zi/ PKGNAMESUFFIX= -client MAINTAINER= koichiro@rworks.jp COMMENT= DCOM/WMI client implementation OPTIONS_DEFINE= PYTHON PYTHON_DESC= Build Python bindings USE_AUTOTOOLS= autoconf:env autoheader:env USES= iconv gmake tar:bzip2 MAKEFILE= GNUmakefile MAKE_ARGS+= ZENHOME="${PREFIX}" ALL_TARGET= build PROGS= bin/wmic bin/winexe .include .if ${PORT_OPTIONS:MPYTHON} USES+= python MAKE_ARGS+= PYTHON="${PYTHON_CMD}" PY_LIBDIR="${PYTHONPREFIX_SITELIBDIR}" PLIST_SUB+= PYTHON="" .else PLIST_SUB+= PYTHON="@comment " .endif .if ${PORT_OPTIONS:MPYTHON} post-install: .for x in ${PROGS:S,^,${PREFIX}/,} ${PYTHONPREFIX_SITELIBDIR}/libasync_wmi_lib.so.0.0.2 @${STRIP_CMD} ${STAGEDIR}${x} .endfor .else do-install: .for x in ${PROGS} @${INSTALL_PROGRAM} ${WRKSRC}/Samba/source/${x} ${STAGEDIR}${PREFIX}/${x} .endfor .endif .include