ports/net/asterisk11/files/patch-main__Makefile
Guido Falsi 8e7866129e - Add SYSINFO option to asterisk ports and force them to respect
it, otherwise they fail to build when devel/libsysinfo port is
  already present on system.

While here:

- Silence some Makefile commands
- Remove mostly obsolete comment from option description

Reported by:	Bob Eager <bob@eager.cx>
MFH:		2015Q2
2015-04-18 23:10:07 +00:00

36 lines
1.1 KiB
Text

--- main/Makefile.orig 2015-03-12 12:26:57 UTC
+++ main/Makefile
@@ -76,6 +76,7 @@ ifeq ($(OSARCH),FreeBSD)
BSDVERSION=$(shell make -V OSVERSION -f /usr/share/mk/bsd.port.subdir.mk)
AST_LIBS+=$(shell if test $(BSDVERSION) -lt 502102 ; then echo "-lc_r"; else echo "-pthread"; fi)
AST_LIBS+=-lcrypto
+ AST_LIBS+=%%LIBSYSINFO%%
endif
ifneq ($(findstring $(OSARCH), mingw32 cygwin ),)
@@ -218,9 +219,9 @@ ifeq ($(GNU_LD),1)
endif
$(ECHO_PREFIX) echo " [LD] $^ -> $@"
$(CMD_PREFIX) $(CC) $(STATIC_BUILD) -o $@ $(CC_LDFLAGS_SO) $^ $(CC_LIBS)
-ifneq ($(LDCONFIG),)
- $(LDCONFIG) $(LDCONFIG_FLAGS) .
-endif
+#ifneq ($(LDCONFIG),)
+# $(LDCONFIG) $(LDCONFIG_FLAGS) .
+#endif
$(ASTSSL_LIB): $(ASTSSL_LIB).$(ASTSSL_SO_VERSION)
$(LN) -sf $< $@
@@ -269,9 +270,9 @@ ifeq ($(findstring darwin,$(OSARCH)),) #
else # Darwin
$(INSTALL) -m 755 $(ASTSSL_LIB) "$(DESTDIR)$(ASTLIBDIR)/"
endif
-ifneq ($(LDCONFIG),)
- $(LDCONFIG) $(LDCONFIG_FLAGS) "$(DESTDIR)$(ASTLIBDIR)/"
-endif
+#ifneq ($(LDCONFIG),)
+# $(LDCONFIG) $(LDCONFIG_FLAGS) "$(DESTDIR)$(ASTLIBDIR)/"
+#endif
endif
$(LN) -sf asterisk "$(DESTDIR)$(ASTSBINDIR)/rasterisk"