ports/comms/smstools3/files/patch-src-Makefile
Martin Matuska 6203b5885e - Update to 3.1.5
- Fix build and install with custom PREFIX [1]

Reported by:	QAT [1]
2009-06-15 08:13:38 +00:00

29 lines
863 B
Text

--- src/Makefile.orig 2009-06-01 13:53:29.000000000 +0200
+++ src/Makefile 2009-06-15 08:59:05.000000000 +0200
@@ -1,7 +1,7 @@
# In case of windows, use os_cygwin=yes setting in the configuration file (smsd.conf).
# Select your setup size:
-CFLAGS = -D NUMBER_OF_MODEMS=64
+CFLAGS += -DNUMBER_OF_MODEMS=64
# Uncomment for Solaris
# CFLAGS += -D SOLARIS
@@ -9,7 +9,7 @@
# CC=gcc
# Comment this out, to enable statistics
-CFLAGS += -D NOSTATS
+#CFLAGS += -D NOSTATS
# Uncomment this to force smsd to run in terminal mode
#CFLAGS += -D TERMINAL
@@ -31,7 +31,7 @@
ifneq (,$(findstring NOSTATS,$(CFLAGS)))
$(CC) $(CFLAGS) -o $@ $^
else
- $(CC) `mm-config --cflags` $(CFLAGS) -o $@ $^ `mm-config --ldflags --libs`
+ $(CC) `$(LOCALBASE)/bin/mm-config --cflags` $(CFLAGS) -o $@ $^ `$(LOCALBASE)/bin/mm-config --ldflags --libs`
endif
clean: