aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoradamw <adamw@FreeBSD.org>2014-07-30 09:12:54 +0800
committeradamw <adamw@FreeBSD.org>2014-07-30 09:12:54 +0800
commit66e3383d54755611b1ffc8e4a81977e31c9c5ed6 (patch)
tree3c590b4d4f7e08f16071ec42ff943f52dcd573c9
parent1bbf56d58062ce05ea08b11414a1d7b1d4c6d416 (diff)
downloadfreebsd-ports-gnome-66e3383d54755611b1ffc8e4a81977e31c9c5ed6.tar.gz
freebsd-ports-gnome-66e3383d54755611b1ffc8e4a81977e31c9c5ed6.tar.zst
freebsd-ports-gnome-66e3383d54755611b1ffc8e4a81977e31c9c5ed6.zip
Fix build without gcc.
-rw-r--r--emulators/vmw/Makefile13
-rw-r--r--emulators/vmw/files/patch-Makefile.FreeBSD20
2 files changed, 25 insertions, 8 deletions
diff --git a/emulators/vmw/Makefile b/emulators/vmw/Makefile
index e9dd9106d6a0..c848b6c5e17d 100644
--- a/emulators/vmw/Makefile
+++ b/emulators/vmw/Makefile
@@ -17,25 +17,22 @@ SBINS= vmw vmshrink vmftp
OPTIONS_DEFINE= DOCS
-.include <bsd.port.options.mk>
-
-.if ${PORT_OPTIONS:MDOCS}
PORTDOCS= README-eucj.TXT README-sjis.TXT README.TXT
.for i in ${SBINS}
PORTDOCS+= ${i}-eucj.txt ${i}-sjis.txt ${i}.txt
.endfor
-.endif
.for i in ${SBINS}
PLIST_FILES+= sbin/${i}
.endfor
+post-patch:
+# @${REINPLACE_CMD} -e 's/=/?=/' ${WRKSRC}/Makefile.FreeBSD
+
do-install:
.for i in ${SBINS}
${INSTALL_PROGRAM} ${WRKSRC}/${i} ${STAGEDIR}${PREFIX}/sbin/
.endfor
-.if ${PORT_OPTIONS:MDOCS}
- ${MKDIR} ${STAGEDIR}${DOCSDIR}
- @cd ${WRKSRC}/.. && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}/
-.endif
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
+ (cd ${WRKSRC}/.. && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}/)
.include <bsd.port.mk>
diff --git a/emulators/vmw/files/patch-Makefile.FreeBSD b/emulators/vmw/files/patch-Makefile.FreeBSD
new file mode 100644
index 000000000000..50e610cbfa6a
--- /dev/null
+++ b/emulators/vmw/files/patch-Makefile.FreeBSD
@@ -0,0 +1,20 @@
+--- Makefile.FreeBSD.orig 2014-07-29 21:08:54.000000000 -0400
++++ Makefile.FreeBSD 2014-07-29 21:11:09.000000000 -0400
+@@ -2,13 +2,13 @@
+ #
+ # Copyright (c) 2006 Ken Kato
+
+-AS = as
++AS ?= as
+ ASFLAGS =
+
+-CC = gcc
+-CFLAGS = -O2
++CC ?= gcc
++CFLAGS ?= -O2
+
+-LD = gcc
++LD = ${CC}
+ LDFLAGS =
+
+ # replace the following line if you prefer inline version