diff options
author | Kirill Ponomarev <krion@FreeBSD.org> | 2004-03-17 16:02:44 +0000 |
---|---|---|
committer | Kirill Ponomarev <krion@FreeBSD.org> | 2004-03-17 16:02:44 +0000 |
commit | e79c352640b1d65d1b6144d3f178ee49d99455b1 (patch) | |
tree | 8c6d37ccdd9b3c244793bb117cb91cd42df91fee | |
parent | Give the port a chance to work on amd64 by getting proper gettext functions (diff) |
- Don't define -fPIC to all achitectures but only for AMD64
PR: ports/64357
Submitted by: maintainer
Notes
Notes:
svn path=/head/; revision=104303
-rw-r--r-- | www/sidplug/Makefile | 8 | ||||
-rw-r--r-- | www/sidplug/files/patch-Makefile | 2 |
2 files changed, 8 insertions, 2 deletions
diff --git a/www/sidplug/Makefile b/www/sidplug/Makefile index 49f470dfd64d..dfbdc97aa32d 100644 --- a/www/sidplug/Makefile +++ b/www/sidplug/Makefile @@ -18,6 +18,12 @@ RUN_DEPENDS= xsidplay:${PORTSDIR}/audio/xsidplay USE_X_PREFIX= yes +.include <bsd.port.pre.mk> + +.if ${ARCH} == "amd64" +CFLAGS+= -fPIC +.endif + do-install: @${MKDIR} ${PREFIX}/lib/browser_plugins @${INSTALL_PROGRAM} ${WRKSRC}/npsidplug.so ${PREFIX}/lib/browser_plugins @@ -29,4 +35,4 @@ do-install: @${INSTALL_DATA} ${WRKSRC}/sidplug.png ${EXAMPLESDIR} .endif -.include <bsd.port.mk> +.include <bsd.port.post.mk> diff --git a/www/sidplug/files/patch-Makefile b/www/sidplug/files/patch-Makefile index d5d7229bba9d..791abe72a5c9 100644 --- a/www/sidplug/files/patch-Makefile +++ b/www/sidplug/files/patch-Makefile @@ -11,7 +11,7 @@ -OPTIMIZER = -O -CFLAGS = $(OPTIMIZER) $(PLUGIN_DEFINES) +CC ?= gcc -+CFLAGS += $(PLUGIN_DEFINES) -fPIC ++CFLAGS += $(PLUGIN_DEFINES) SRC= sidplug.c npunix.c OBJ= sidplug.o npunix.o |