freebsd-ports/net/asterisk16-addons/files/patch-Makefile
TAKATSU Tomonari 9984d8ffe3 - Upgrade to 1.6.2.2, partially based on [2]
- Make portlint happier

PR:	ports/144066 [1]
Submitted by:	Tom Judge <tjudge_AT_mintel_DOT_com> [1]
Patched by:	Florian Smeets (maintainer) [2]
2010-09-29 14:39:32 +00:00

37 lines
1.4 KiB
Text

--- Makefile.orig 2009-12-19 14:51:24.000000000 +0100
+++ Makefile 2010-09-21 16:03:27.000000000 +0200
@@ -26,7 +26,9 @@
ASTTOPDIR:=$(subst $(space),\$(space),$(CURDIR))
# Overwite config files on "make samples"
-OVERWRITE:=y
+OVERWRITE:=n
+
+ASTCFLAGS+=-I${LOCALBASE}/include
# If the file .asteriskaddons.makeopts is present in your home directory, you can
# include all of your favorite menuselect options so that every time you download
@@ -218,19 +220,19 @@
samples:
mkdir -p $(DESTDIR)$(ASTETCDIR)
for x in configs/*.sample; do \
- if [ -f $(DESTDIR)$(ASTETCDIR)/`basename $$x .sample` ]; then \
+ if [ -f $(DESTDIR)$(ASTETCDIR)/`basename $$x` ]; then \
if [ "$(OVERWRITE)" = "y" ]; then \
- if cmp -s $(DESTDIR)$(ASTETCDIR)/`basename $$x .sample` $$x ; then \
+ if cmp -s $(DESTDIR)$(ASTETCDIR)/`basename $$x` $$x ; then \
echo "Config file $$x is unchanged"; \
continue; \
fi ; \
- mv -f $(DESTDIR)$(ASTETCDIR)/`basename $$x .sample` $(DESTDIR)$(ASTETCDIR)/`basename $$x .sample`.old ; \
+ mv -f $(DESTDIR)$(ASTETCDIR)/`basename $$x` $(DESTDIR)$(ASTETCDIR)/`basename $$x`.old ; \
else \
echo "Skipping config file $$x"; \
continue; \
fi ;\
fi ; \
- $(INSTALL) -m 644 $$x $(DESTDIR)$(ASTETCDIR)/`basename $$x .sample` ;\
+ $(INSTALL) -m 644 $$x $(DESTDIR)$(ASTETCDIR)/`basename $$x` ;\
done
doc/addons-en_US.xml: $(foreach dir,$(MOD_SUBDIRS),$(wildcard $(dir)/*.c) $(wildcard $(dir)/*.cc))