openbsd-ports/telephony/asterisk/patches/patch-apps_Makefile
2004-09-26 00:38:23 +00:00

27 lines
847 B
Plaintext

$OpenBSD: patch-apps_Makefile,v 1.1.1.1 2004/09/26 00:38:24 jolan Exp $
--- apps/Makefile.orig Sun Aug 29 20:43:41 2004
+++ apps/Makefile Thu Sep 23 16:46:19 2004
@@ -39,18 +39,22 @@ endif
#APPS+=app_sql_odbc.so
#APPS+=app_rpt.so
+ifneq (${OSARCH},OpenBSD)
APPS+=$(shell if [ -f /usr/include/linux/zaptel.h ]; then echo "app_zapras.so app_meetme.so app_flash.so app_zapbarge.so app_zapscan.so" ; fi)
APPS+=$(shell if [ -f /usr/local/include/zaptel.h ]; then echo "app_zapras.so app_meetme.so app_flash.so app_zapbarge.so app_zapscan.so" ; fi)
APPS+=$(shell if [ -f /usr/include/osp/osp.h ]; then echo "app_osplookup.so" ; fi)
+endif
CFLAGS+=-fPIC
+ifneq (${OSARCH},OpenBSD)
ifeq ($(USE_POSTGRES_VM_INTERFACE),1)
CFLAGS+=-DUSEPOSTGRESVM
endif
ifeq ($(USE_MYSQL_VM_INTERFACE),1)
CFLAGS+=-DUSEMYSQLVM
+endif
endif
all: $(APPS)