source: build-files/ports-overlay/emulators/open-vm-tools/Makefile @ 59d5019

9.2-releasereleng/10.0releng/10.0.1
Last change on this file since 59d5019 was 59d5019, checked in by Kris Moore <kris@…>, 6 months ago

Update some more ports to build on 10.0

  • Property mode set to 100644
File size: 2.6 KB
Line 
1# Created by: mbr@FreeBSD.org
2# $FreeBSD: emulators/open-vm-tools/Makefile 327721 2013-09-20 16:43:52Z bapt $
3
4PORTNAME=               open-vm-tools
5PORTVERSION=            ${BUILD_VER}
6PORTREVISION=           3
7PORTEPOCH=              1
8CATEGORIES=             emulators kld
9MASTER_SITES=           SF/${PORTNAME}/${PORTNAME}/stable-9.2.x
10DISTNAME=               open-vm-tools-${RELEASE_VER}-${BUILD_VER}
11
12MAINTAINER=             swills@FreeBSD.org
13COMMENT?=               Open VMware tools for FreeBSD VMware guests
14
15LICENSE=                LGPL21
16LICENSE_FILE=           ${WRKSRC}/COPYING
17
18RELEASE_VER=            9.2.3
19BUILD_VER=              1031360
20
21WRKSRC=                 ${WRKDIR}/open-vm-tools-${RELEASE_VER}-${BUILD_VER}
22GNU_CONFIGURE=          yes
23USES=                   pkgconfig
24USE_LDCONFIG=           yes
25USE_GCC=                yes
26CPPFLAGS+=              -Wno-deprecated-declarations
27
28SSP_UNSAFE=             kernel module does not support ssp
29
30CONFIGURE_ARGS+=        --without-procps --sysconfdir=${LOCALBASE}/etc
31.if defined(WITHOUT_X11)
32LIB_DEPENDS+=           glib-2.0:${PORTSDIR}/devel/glib20
33CONFIGURE_ARGS+=        --without-x --without-gtk2 --without-gtkmm
34PLIST_SUB+=             X11="@comment "
35CONFLICTS=              open-vm-tools-[0-9]*
36.else
37.if !defined(WITHOUT_LIBNOTIFY)
38LIB_DEPENDS+=           notify.4:${PORTSDIR}/devel/libnotify
39.endif
40LIB_DEPENDS+=           gtkmm-2.4:${PORTSDIR}/x11-toolkits/gtkmm24
41CONFIGURE_ARGS+=        --with-x
42LDFLAGS+=               -L${LOCALBASE}/lib
43USE_XORG=               x11 ice sm xext xineramaproto xinerama xrandr xrender \
44                        xtst
45USE_GNOME=              gtk20 glib20
46PLIST_SUB+=             X11=""
47CONFLICTS=              open-vm-tools-nox11-[0-9]*
48.endif
49
50.if !defined(WITHOUT_FUSE)
51USES+=          fuse
52PLIST_SUB+=     FUSE=""
53.else
54PLIST_SUB+=     FUSE="@comment "
55.endif
56
57CONFLICTS+=             vmware-guestd[0-9]* vmware-tools[0-9]*
58SUB_FILES=              pkg-message
59
60.if defined(WITHOUT_DNET)
61CONFIGURE_ARGS+=        --without-dnet
62.else
63LIB_DEPENDS+=           dnet:${PORTSDIR}/net/libdnet
64.endif
65
66.if defined(WITHOUT_ICU)
67CONFIGURE_ARGS+=        --without-icu
68.else
69LIB_DEPENDS+=           icuuc:${PORTSDIR}/devel/icu
70.endif
71
72USE_RC_SUBR=            vmware-guestd vmware-kmod
73
74NO_STAGE=       yes
75.include <bsd.port.pre.mk>
76
77.if ${ARCH} == "sparc64"
78IGNORE=         not yet ported to sparc64
79.endif
80
81post-build:
82        (cd ${WRKSRC}/modules && ${MAKE})
83
84post-install:
85        ${MKDIR} ${PREFIX}/lib/vmware-tools/modules/drivers
86        ${MKDIR} ${PREFIX}/lib/vmware-tools/modules/input
87        ${INSTALL_DATA} ${WRKSRC}/modules/freebsd/vmmemctl.ko ${PREFIX}/lib/vmware-tools/modules/drivers/vmmemctl.ko
88        ${INSTALL_DATA} ${WRKSRC}/modules/freebsd/vmxnet.ko ${PREFIX}/lib/vmware-tools/modules/drivers/vmxnet.ko
89        ${INSTALL_DATA} ${WRKSRC}/modules/freebsd/vmhgfs.ko ${PREFIX}/lib/vmware-tools/modules/drivers/vmhgfs.ko
90        ${INSTALL_DATA} ${WRKSRC}/modules/freebsd/vmblock.ko ${PREFIX}/lib/vmware-tools/modules/drivers/vmblock.ko
91        @-kldxref ${PREFIX}/lib/vmware-tools/modules/drivers 2>/dev/null
92        @${CAT} ${PKGMESSAGE}
93
94.include <bsd.port.post.mk>
Note: See TracBrowser for help on using the repository browser.