ports/net/spserver/files/patch-spserver_Makefile
Vanilla I. Shu afc99aa14a 1: Add support of STAGE.
2: do not overwrite CFLAGS.
2013-09-24 16:47:45 +00:00

24 lines
680 B
Text

--- spserver/Makefile.orig 2009-12-13 10:02:38.000000000 +0800
+++ spserver/Makefile 2013-09-08 21:02:47.000000000 +0800
@@ -1,9 +1,8 @@
#--------------------------------------------------------------------
-CC = gcc
AR = ar cru
-CFLAGS = -Wall -D_REENTRANT -D_GNU_SOURCE -g -fPIC
+CFLAGS += -Wall -D_REENTRANT -D_GNU_SOURCE -g -fPIC
SOFLAGS = -shared
LDFLAGS = -lstdc++ -lpthread
@@ -11,8 +10,8 @@ LINKER = $(CC)
LINT = lint -c
RM = /bin/rm -f
-LIBEVENT_INCL = -I$(HOME)/libevent/
-LIBEVENT_LIB = -L$(HOME)/libevent -levent -lrt
+LIBEVENT_INCL = -I%PREFIX%/include
+LIBEVENT_LIB = -L%PREFIX%/lib -levent
CFLAGS += $(LIBEVENT_INCL)
LDFLAGS += $(LIBEVENT_LIB)