source: build-files/ports-overlay/emulators/open-vm-tools/Makefile @ 1e102bd

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

Add a bunch of modified ports for 10.0, so we can fix the building

  • Property mode set to 100644
File size: 2.8 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-8.6.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=            8.6.0
19BUILD_VER=              425873
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
40.if defined(WITH_UNITY)
41CONFIGURE_ENV+=         CUSTOM_URIPARSER_CPPFLAGS="-I${LOCALBASE}/include/uriparser"
42LIB_DEPENDS+=           uriparser.1:${PORTSDIR}/net/uriparser
43.else
44CONFIGURE_ARGS+=        --disable-unity
45.endif
46LIB_DEPENDS+=           gtkmm-2.4:${PORTSDIR}/x11-toolkits/gtkmm24
47CONFIGURE_ARGS+=        --with-x
48LDFLAGS+=               -L${LOCALBASE}/lib
49USE_XORG=               x11 ice sm xext xineramaproto xinerama xrandr xrender \
50                        xtst
51USE_GNOME=              gtk20 glib20
52PLIST_SUB+=             X11=""
53CONFLICTS=              open-vm-tools-nox11-[0-9]*
54.endif
55
56.if !defined(WITHOUT_FUSE)
57USES+=          fuse
58PLIST_SUB+=     FUSE=""
59.else
60PLIST_SUB+=     FUSE="@comment "
61.endif
62
63CONFLICTS+=             vmware-guestd[0-9]* vmware-tools[0-9]*
64SUB_FILES=              pkg-message
65
66.if defined(WITHOUT_DNET)
67CONFIGURE_ARGS+=        --without-dnet
68.else
69LIB_DEPENDS+=           dnet:${PORTSDIR}/net/libdnet
70.endif
71
72.if defined(WITHOUT_ICU)
73CONFIGURE_ARGS+=        --without-icu
74.else
75LIB_DEPENDS+=           icuuc:${PORTSDIR}/devel/icu
76.endif
77
78USE_RC_SUBR=            vmware-guestd vmware-kmod
79
80NO_STAGE=       yes
81.include <bsd.port.pre.mk>
82
83.if ${ARCH} == "sparc64"
84IGNORE=         not yet ported to sparc64
85.endif
86
87post-build:
88        (cd ${WRKSRC}/modules && ${MAKE})
89
90post-install:
91        ${MKDIR} ${PREFIX}/lib/vmware-tools/modules/drivers
92        ${MKDIR} ${PREFIX}/lib/vmware-tools/modules/input
93        ${INSTALL_DATA} ${WRKSRC}/modules/freebsd/vmmemctl.ko ${PREFIX}/lib/vmware-tools/modules/drivers/vmmemctl.ko
94        ${INSTALL_DATA} ${WRKSRC}/modules/freebsd/vmxnet.ko ${PREFIX}/lib/vmware-tools/modules/drivers/vmxnet.ko
95        ${INSTALL_DATA} ${WRKSRC}/modules/freebsd/vmhgfs.ko ${PREFIX}/lib/vmware-tools/modules/drivers/vmhgfs.ko
96        ${INSTALL_DATA} ${WRKSRC}/modules/freebsd/vmblock.ko ${PREFIX}/lib/vmware-tools/modules/drivers/vmblock.ko
97        @-kldxref ${PREFIX}/lib/vmware-tools/modules/drivers 2>/dev/null
98        @${CAT} ${PKGMESSAGE}
99
100.include <bsd.port.post.mk>
Note: See TracBrowser for help on using the repository browser.