openbsd-ports/telephony/chan_unistim/Makefile
ian 0edace2c8d chan_unistim is an Asterisk channel driver for the Nortel proprietary
Unistim protocol, used by at least the following Nortel phones:
Nortel i2002, i2004 and i2050.

tested and comments sthen@, tested and OK krw.
2007-09-14 13:24:42 +00:00

46 lines
1.2 KiB
Makefile

# $OpenBSD: Makefile,v 1.1.1.1 2007/09/14 13:24:42 ian Exp $
COMMENT= Asterisk access for Nortel i2002/i2004/i2050 phones
DISTNAME= chan_unistim-1.0.0.5c # for Asterisk 1.4
EXTRACT_SUFX= .tar.bz2
CATEGORIES= telephony
HOMEPAGE= http://mlkj.net/UNISTIM/
MAINTAINER= Ian Darwin <ian@openbsd.org>
# GPL V2
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
MASTER_SITES= http://mlkj.net/UNISTIM/
BUILD_DEPENDS= :asterisk->=1.4:telephony/asterisk
RUN_DEPENDS= :asterisk->=1.4:telephony/asterisk
CFLAGS+=-pipe -Wall -Wmissing-prototypes -Wmissing-declarations \
-D_REENTRANT -D_GNU_SOURCE -fPIC -O6 \
-Wno-missing-prototypes -Wno-missing-declarations -DCRYPTO \
-I ${PREFIX}/include
.if ${MACHINE_ARCH:L} == "powerpc"
CFLAGS+=-fsigned-char
.endif
MAKE_FLAGS= -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_UIO_H=1 \
CC="${CC}" \
CFLAGS="${CFLAGS}" \
INSTALL_PREFIX="${PREFIX}" SYSCONFDIR='${SYSCONFDIR}'
NO_REGRESS= Yes
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/asterisk/chan_unistim
${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/examples/asterisk/chan_unistim
${INSTALL_DATA} ${WRKSRC}/unistim.conf ${PREFIX}/share/examples/asterisk/chan_unistim
.include <bsd.port.mk>