openbsd-ports/telephony/asterisk/patches/patch-res_Makefile
jolan 53cc38430a - update to 1.2.12.1
- be careful not to pick up odbc/popt if they happened to be installed

from maintainer stuart henderson
2006-09-24 21:09:25 +00:00

21 lines
788 B
Plaintext

$OpenBSD: patch-res_Makefile,v 1.2 2006/09/24 21:09:26 jolan Exp $
--- res/Makefile.orig Tue Nov 29 18:24:39 2005
+++ res/Makefile Sun Sep 24 13:06:45 2006
@@ -13,13 +13,15 @@
MODS=res_indications.so res_monitor.so res_adsi.so res_agi.so res_features.so
-ifneq ($(wildcard $(CROSS_COMPILE_TARGET)/usr/include/odbcinst.h)$(wildcard $(CROSS_COMPILE_TARGET)/usr/local/include/odbcinst.h),)
+ifneq (${OSARCH},OpenBSD)
+ifneq ($(wildcard $(CROSS_COMPILE_TARGET)/usr/include/odbcinst.h)$(wildcard TURN_OFF$(CROSS_COMPILE_TARGET)/usr/local/include/odbcinst.h),)
ifneq (${OSARCH},FreeBSD)
MODS+=res_config_odbc.so
else
MODS+=$(shell if test ${BSDVERSION} -ge 500000 ; then echo "res_config_odbc.so"; fi)
endif
MODS+=res_odbc.so
+endif
endif
ifneq ($(NOCRYPTO),yes)