aboutsummaryrefslogtreecommitdiff
path: root/www/sidplug
diff options
context:
space:
mode:
authorKirill Ponomarev <krion@FreeBSD.org>2004-03-17 16:02:44 +0000
committerKirill Ponomarev <krion@FreeBSD.org>2004-03-17 16:02:44 +0000
commite79c352640b1d65d1b6144d3f178ee49d99455b1 (patch)
tree8c6d37ccdd9b3c244793bb117cb91cd42df91fee /www/sidplug
parent3e09003d7d6eb8c7d712fd61dde9c6924b930209 (diff)
downloadports-e79c352640b1d65d1b6144d3f178ee49d99455b1.tar.gz
ports-e79c352640b1d65d1b6144d3f178ee49d99455b1.zip
- Don't define -fPIC to all achitectures but only for AMD64
PR: ports/64357 Submitted by: maintainer
Notes
Notes: svn path=/head/; revision=104303
Diffstat (limited to 'www/sidplug')
-rw-r--r--www/sidplug/Makefile8
-rw-r--r--www/sidplug/files/patch-Makefile2
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