2008-03-28 13:30:31 +00:00
|
|
|
# New ports collection makefile for: open-vm-tools for FreeBSD
|
|
|
|
# Date created: 28 Mar 2008
|
|
|
|
# Whom: mbr@FreeBSD.org
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
2008-04-01 23:55:32 +00:00
|
|
|
PORTNAME= open-vm-tools
|
2008-03-28 13:30:31 +00:00
|
|
|
PORTVERSION= ${BUILD_VER}
|
2010-09-14 03:20:16 +00:00
|
|
|
PORTREVISION= 1
|
2008-10-07 18:20:47 +00:00
|
|
|
CATEGORIES= emulators kld
|
2009-08-22 00:20:34 +00:00
|
|
|
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${RELEASE_DATE}
|
2008-09-29 11:59:12 +00:00
|
|
|
DISTNAME= open-vm-tools-${RELEASE_DATE}-${BUILD_VER}
|
2008-03-28 13:30:31 +00:00
|
|
|
|
|
|
|
MAINTAINER= mbr@freebsd.org
|
|
|
|
COMMENT?= Open VMware tools for FreeBSD VMware guests
|
|
|
|
|
2010-06-06 14:55:58 +00:00
|
|
|
RELEASE_DATE= 2010.04.25
|
|
|
|
BUILD_VER= 253928
|
2008-03-28 13:30:31 +00:00
|
|
|
|
2010-01-10 10:31:45 +00:00
|
|
|
WRKSRC= ${WRKDIR}/open-vm-tools-${RELEASE_DATE}-${BUILD_VER}
|
2008-03-28 13:30:31 +00:00
|
|
|
GNU_CONFIGURE= yes
|
2008-09-29 11:59:12 +00:00
|
|
|
USE_LDCONFIG= yes
|
2008-03-28 13:30:31 +00:00
|
|
|
|
2009-03-03 23:26:15 +00:00
|
|
|
CONFIGURE_ARGS+= --without-procps --sysconfdir=${LOCALBASE}/etc
|
2008-03-28 13:30:31 +00:00
|
|
|
.if defined(WITHOUT_X11)
|
2009-03-03 23:26:15 +00:00
|
|
|
LIB_DEPENDS+= glib-2.0:${PORTSDIR}/devel/glib20
|
|
|
|
CONFIGURE_ARGS+= --without-x --without-gtk2 --without-gtkmm
|
2008-09-29 11:59:12 +00:00
|
|
|
PLIST_SUB+= X11="@comment "
|
2008-09-29 19:17:16 +00:00
|
|
|
CONFLICTS= open-vm-tools-[0-9]*
|
2008-03-28 13:30:31 +00:00
|
|
|
.else
|
2009-03-03 23:26:15 +00:00
|
|
|
.if !defined(WITHOUT_LIBNOTIFY)
|
|
|
|
LIB_DEPENDS+= notify.1:${PORTSDIR}/devel/libnotify
|
|
|
|
.endif
|
2009-03-25 18:18:11 +00:00
|
|
|
.if defined(WITH_UNITY)
|
|
|
|
CONFIGURE_ENV+= CUSTOM_URIPARSER_CPPFLAGS="-I${LOCALBASE}/include/uriparser"
|
|
|
|
LIB_DEPENDS+= uriparser.1:${PORTSDIR}/net/uriparser
|
|
|
|
.else
|
2009-03-03 23:26:15 +00:00
|
|
|
CONFIGURE_ARGS+= --disable-unity
|
|
|
|
.endif
|
2009-06-17 17:00:21 +00:00
|
|
|
LIB_DEPENDS+= gtkmm-2.4:${PORTSDIR}/x11-toolkits/gtkmm24
|
|
|
|
CONFIGURE_ARGS+= --with-x
|
2009-03-25 18:18:11 +00:00
|
|
|
CONFIGURE_ENV+= LDFLAGS="-L${LOCALBASE}/lib" \
|
- Remove unneeded dependency from gtk12/gtk20 [1]
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG
- Remove X11BASE support in favor of LOCALBASE or PREFIX
- Use USE_LDCONFIG instead of INSTALLS_SHLIB
- Remove unneeded USE_GCC 3.4+
Thanks to all Helpers:
Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr,
ehaupt, nox, itetcu, flz, pav
PR: 116263
Tested on: pointyhat
Approved by: portmgr (pav)
2008-04-19 17:56:05 +00:00
|
|
|
CPPFLAGS="-I${LOCALBASE}/include"
|
2009-04-06 22:56:31 +00:00
|
|
|
USE_XORG= x11 ice sm xext xineramaproto xinerama xrandr xrender \
|
|
|
|
xtst
|
2009-03-03 23:26:15 +00:00
|
|
|
USE_GNOME= gtk20 glib20
|
2008-03-28 13:30:31 +00:00
|
|
|
PLIST_SUB+= X11=""
|
2008-09-29 19:17:16 +00:00
|
|
|
CONFLICTS= open-vm-tools-nox11-[0-9]*
|
2008-03-28 13:30:31 +00:00
|
|
|
.endif
|
|
|
|
|
2009-04-06 22:56:31 +00:00
|
|
|
.if !defined(WITHOUT_FUSE)
|
|
|
|
LIB_DEPENDS+= fuse.2:${PORTSDIR}/sysutils/fusefs-libs
|
|
|
|
RUN_DEPENDS+= mount_fusefs:${PORTSDIR}/sysutils/fusefs-kmod
|
|
|
|
PLIST_SUB+= FUSE=""
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= FUSE="@comment "
|
|
|
|
.endif
|
|
|
|
|
2008-09-29 19:17:16 +00:00
|
|
|
CONFLICTS+= vmware-guestd[0-9]* vmware-tools[0-9]*
|
|
|
|
SUB_FILES= pkg-message
|
2008-03-28 13:30:31 +00:00
|
|
|
|
|
|
|
.if defined(WITHOUT_DNET)
|
|
|
|
CONFIGURE_ARGS+= --without-dnet
|
|
|
|
.else
|
2008-05-16 07:55:44 +00:00
|
|
|
LIB_DEPENDS+= dnet:${PORTSDIR}/net/libdnet
|
2008-03-28 13:30:31 +00:00
|
|
|
.endif
|
|
|
|
|
2008-05-15 17:24:29 +00:00
|
|
|
.if defined(WITHOUT_ICU)
|
|
|
|
CONFIGURE_ARGS+= --without-icu
|
|
|
|
.else
|
2008-05-16 07:55:44 +00:00
|
|
|
LIB_DEPENDS+= icuuc:${PORTSDIR}/devel/icu
|
2008-05-15 17:24:29 +00:00
|
|
|
.endif
|
|
|
|
|
|
|
|
USE_RC_SUBR= vmware-guestd.sh vmware-kmod.sh
|
2008-03-28 13:30:31 +00:00
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2009-07-27 21:53:25 +00:00
|
|
|
.if ${OSVERSION} < 700000
|
|
|
|
BROKEN= does not compile on 6.X
|
2010-04-18 18:58:20 +00:00
|
|
|
.elif ${OSVERSION} >= 900007
|
|
|
|
BROKEN= does not compile
|
2009-07-27 21:53:25 +00:00
|
|
|
.endif
|
|
|
|
|
2009-02-03 05:46:00 +00:00
|
|
|
.if ${ARCH} == "sparc64"
|
|
|
|
IGNORE= not yet ported to sparc64
|
|
|
|
.endif
|
|
|
|
|
2008-03-28 13:30:31 +00:00
|
|
|
post-build:
|
2008-10-07 18:20:47 +00:00
|
|
|
(cd ${WRKSRC}/modules && ${MAKE})
|
2008-03-28 13:30:31 +00:00
|
|
|
|
|
|
|
post-install:
|
2009-03-25 18:18:11 +00:00
|
|
|
${MKDIR} ${PREFIX}/lib/vmware-tools/modules/drivers
|
|
|
|
${MKDIR} ${PREFIX}/lib/vmware-tools/modules/input
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/modules/freebsd/vmmemctl.ko ${PREFIX}/lib/vmware-tools/modules/drivers/vmmemctl.ko
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/modules/freebsd/vmxnet.ko ${PREFIX}/lib/vmware-tools/modules/drivers/vmxnet.ko
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/modules/freebsd/vmhgfs.ko ${PREFIX}/lib/vmware-tools/modules/drivers/vmhgfs.ko
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/modules/freebsd/vmblock.ko ${PREFIX}/lib/vmware-tools/modules/drivers/vmblock.ko
|
|
|
|
@-kldxref ${PREFIX}/lib/vmware-tools/modules/drivers 2>/dev/null
|
2008-09-29 19:17:16 +00:00
|
|
|
@${CAT} ${PKGMESSAGE}
|
2008-03-28 13:30:31 +00:00
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|