aboutsummaryrefslogtreecommitdiffstats
path: root/emulators
diff options
context:
space:
mode:
authormbr <mbr@FreeBSD.org>2008-10-08 02:20:47 +0800
committermbr <mbr@FreeBSD.org>2008-10-08 02:20:47 +0800
commite9ebe9b4c0c55b029b2b1253819c6b6b7eaf46af (patch)
treeb8ff4d528190c5f6086c20fbbdf0d8b7273ac329 /emulators
parent46a56b69c9e553599f8d239d3b5d83adcc9ebe5a (diff)
downloadfreebsd-ports-gnome-e9ebe9b4c0c55b029b2b1253819c6b6b7eaf46af.tar.gz
freebsd-ports-gnome-e9ebe9b4c0c55b029b2b1253819c6b6b7eaf46af.tar.zst
freebsd-ports-gnome-e9ebe9b4c0c55b029b2b1253819c6b6b7eaf46af.zip
Fix PLIST_SUB and other minor issues. This change should fix package builds.
Submitted by: timur
Diffstat (limited to 'emulators')
-rw-r--r--emulators/open-vm-tools/Makefile18
1 files changed, 11 insertions, 7 deletions
diff --git a/emulators/open-vm-tools/Makefile b/emulators/open-vm-tools/Makefile
index 9da216fd90b3..ddae1a87bbbb 100644
--- a/emulators/open-vm-tools/Makefile
+++ b/emulators/open-vm-tools/Makefile
@@ -7,8 +7,8 @@
PORTNAME= open-vm-tools
PORTVERSION= ${BUILD_VER}
-PORTREVISION= 4
-CATEGORIES= emulators
+PORTREVISION= 5
+CATEGORIES= emulators kld
MASTER_SITES= SF
DISTNAME= open-vm-tools-${RELEASE_DATE}-${BUILD_VER}
@@ -55,26 +55,30 @@ USE_RC_SUBR= vmware-guestd.sh vmware-kmod.sh
.include <bsd.port.pre.mk>
-.if ${OSVERSION} < 600000
-SUB_LIST+= NOTON5="@comment "
+.if ${OSVERSION} >= 600000
+NOTON5= ""
.else
-SUB_LIST+= NOTON5=""
+NOTON5= "@comment "
.endif
+PLIST_SUB+= NOTON5=${NOTON5}
+
+SUB_LIST+= NOTON5=${NOTON5}
+
post-patch:
.if defined(WITHOUT_X11)
cd ${WRKSRC} && ${PATCH} < ${FILESDIR}/optpatch-nox11
.endif
post-build:
- cd ${WRKSRC}/modules && make
+ (cd ${WRKSRC}/modules && ${MAKE})
post-install:
${MKDIR} ${PREFIX}/${LIB32DIR}/vmware-tools/modules/drivers
${MKDIR} ${PREFIX}/${LIB32DIR}/vmware-tools/modules/input
${INSTALL_DATA} ${WRKSRC}/modules/freebsd/vmmemctl.ko ${PREFIX}/${LIB32DIR}/vmware-tools/modules/drivers/vmmemctl.ko
${INSTALL_DATA} ${WRKSRC}/modules/freebsd/vmxnet.ko ${PREFIX}/${LIB32DIR}/vmware-tools/modules/drivers/vmxnet.ko
-.if ${OSREL} >= 6
+.if ${OSVERSION} >= 600000
${INSTALL_DATA} ${WRKSRC}/modules/freebsd/vmhgfs.ko ${PREFIX}/${LIB32DIR}/vmware-tools/modules/drivers/vmhgfs.ko
${INSTALL_DATA} ${WRKSRC}/modules/freebsd/vmblock.ko ${PREFIX}/${LIB32DIR}/vmware-tools/modules/drivers/vmblock.ko
.endif