freebsd-ports/misc/wanpipe/Makefile
Edwin Groothuis e1f08f9a0e New Port: misc/wanpipe drivers for various sangoma cards
This package contains the latest Sangoma drivers that supports following
	Sangoma cards under FreeBSD OS:
	o AFT Series PCI/PCI Express cards
	o S51x PCI cards:
	The current version wanpipe-3.3.1 supports following protocols:
	o Asterisk/Zaptel interface
	o Cisco HDLC, Frame Relay and Point-to-Point
	o PPPoE and PPPoA (for S518 ADSL card)

	Release date: Tue Jul 15 14:27:03 UTC 2008

I have added a patch to configure_port.sh to accept a new parameter:
the WRKSRC and to not enable TDM_VOICE and WANPIPE by default.

Remove the pkg-deinstall script, that was just naughty.
Added "kldxref" to the pkg-plist (just in case).

Please note that:

- The Makefile contains KMODDIR, but it is not used in the pkg-plist
  and in the softwares Makefiles.

- Please add kldxref to the post-install target.

PR:		ports/125939
Submitted by:	Josh Paetzel <josh@tcbug.org>
2008-08-19 00:37:54 +00:00

67 lines
1.7 KiB
Makefile

#
# Ports collection makefile for: wanpipe
# Date created: Tue Jul 15 14:27:31 UTC 2008
# Whom: Alex Feldman <al.feldman@sangoma.com>
#
# $FreeBSD$
#
PORTNAME= wanpipe
PORTVERSION= 3.3.1
CATEGORIES= misc net
MASTER_SITES= ftp://ftp.sangoma.com/FreeBSD/wanpipe/ports/
DISTNAME= ${PORTNAME}-${PORTVERSION}
MAINTAINER= josh@tcbug.org
COMMENT= A FreeBSD Driver for Sangoma AFT/S51x Series Cards
ONLY_FOR_ARCHS= i386 amd64
NO_PACKAGE= Should be in sync with the kernel to work correctly
GNU_CONFIGURE= yes
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include \
LDFLAGS="-L${LOCALBASE}/lib"
CPPFLAGS= -I${LOCALBASE}/include
KMODDIR= /boot/modules
MAKE_ENV= KMODDIR="${KMODDIR}" \
MKDIR="${MKDIR}" \
OSVERSION=${OSVERSION} \
CXX="${CXX}"
PKGCONFIG= ${WRKSRC}/configure_port.sh
PKGPOSTINSTALL= ${WRKSRC}/postinstall_port.sh
PKGPOSTDEINSTALL=${WRKSRC}/post-deinstall
OPTIONS= TDM_VOICE "Enable TDM Voice support" off \
WAN_PROTOCOL "Enable Wanpipe Protocol support" off
.include <bsd.port.pre.mk>
.if defined(WITH_TDM_VOICE)
EXTRACT_DEPENDS=${PORTSDIR}/misc/zaptel/work:${PORTSDIR}/misc/zaptel
RUN_DEPENDS= pidof:${PORTSDIR}/sysutils/pidof
.endif
EXTRA_ARGS= ${PREFIX}
.if defined(WITH_TDM_VOICE)
EXTRA_ARGS+= WITH_TDM_VOICE
.endif
.if defined(WITH_WAN_PROTOCOL)
EXTRA_ARGS+= WITH_WAN_PROTOCOL
.endif
pre-everything::
@if [ ! -f /usr/src/sys/Makefile ]; then \
${ECHO_MSG} ">> The wanpipe port needs FreeBSD kernel source code to compile."; \
${ECHO_MSG} ">> Please install FreeBSD kernel source code in /usr/src/sys."; \
${FALSE}; \
fi
do-configure:
@${SH} ${PKGCONFIG} ${DISTNAME} do-configure ${WRKSRC} ${EXTRA_ARGS}
post-install:
@${CAT} ${PKGMESSAGE}
.include <bsd.port.post.mk>