diff options
Diffstat (limited to 'emulators')
-rw-r--r-- | emulators/vmw/Makefile | 13 | ||||
-rw-r--r-- | emulators/vmw/files/patch-Makefile.FreeBSD | 20 |
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 |