1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-27 05:10:36 +00:00

Fix build on amd64

Notified by:	kris (via pointyhat)
This commit is contained in:
Emanuel Haupt 2007-05-31 19:55:30 +00:00
parent aab9416955
commit 7f83d26e85
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=192489
2 changed files with 27 additions and 5 deletions

View File

@ -22,7 +22,7 @@ BUILD_DEPENDS= audacious:${PORTSDIR}/multimedia/audacious \
USE_GMAKE= yes
USE_LDCONFIG= yes
MAKE_ENV+= CC="${CC}"
MAKE_ENV+= CC="${CC}" LOCALBASE="${LOCALBASE}"
ONLY_FOR_ARCHS= i386 amd64

View File

@ -1,6 +1,24 @@
--- ./Makefile.orig Sun May 27 12:12:15 2007
+++ ./Makefile Sun May 27 12:12:23 2007
@@ -24,10 +24,6 @@
--- ./Makefile.orig Wed Feb 28 13:01:40 2007
+++ ./Makefile Wed May 30 10:34:31 2007
@@ -7,7 +7,7 @@
CC ?= gcc
CFLAGS ?= -O2 -pipe
-CFLAGS += -Wall -fPIC -DPIC -I/usr/local/include
+CFLAGS += -Wall -fPIC -DPIC -I$(LOCALBASE)/include
AUDACIOUSCFLAGS = $(shell pkg-config 'audacious >= 1.3' --cflags || echo "old")
ifeq ($(AUDACIOUSCFLAGS),old)
@@ -16,6 +16,8 @@
CFLAGS += $(AUDACIOUSCFLAGS)
endif
+LDFLAGS+= -fPIC -DPIC
+
DUMBLIBS := -ldumb -L/usr/local/lib
AUDACIOUSLIBS := $(shell pkg-config audacious --libs)
@@ -24,13 +26,9 @@
OBJECTS := $(SOURCES:%.c=$(OBJDIR)/%.o)
all: $(PLUGIN_FILE)
@ -10,4 +28,8 @@
- @echo "make install-home - for installation to home directory $(INSTALL_DIR_HOME)"
$(PLUGIN_FILE): $(OBJECTS)
$(CC) -shared -o $@ $^ $(DUMBLIBS) $(AUDACIOUSLIBS)
- $(CC) -shared -o $@ $^ $(DUMBLIBS) $(AUDACIOUSLIBS)
+ $(CC) $(LDFLAGS) -shared -o $@ $^ $(DUMBLIBS) $(AUDACIOUSLIBS)
$(OBJDIR)/%.o: %.c
$(CC) -o $@ $(CFLAGS) -c $<