diff options
Diffstat (limited to 'comms/vpb-driver/Makefile')
-rw-r--r-- | comms/vpb-driver/Makefile | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/comms/vpb-driver/Makefile b/comms/vpb-driver/Makefile new file mode 100644 index 000000000000..b1622eb06dd8 --- /dev/null +++ b/comms/vpb-driver/Makefile @@ -0,0 +1,42 @@ +# New ports collection makefile for: vpb-driver +# Date created: 11 Feb 2005 +# Whom: Chris Forkin <chris@forkin.com> +# +# $FreeBSD$ +# + +PORTNAME= vpb-driver +PORTVERSION= 2.4.9 +CATEGORIES= comms +MASTER_SITES= http://www.voicetronix.com/Downloads/ + +MAINTAINER= chris@forkin.com +COMMENT= Device-driver for the Voicetronix OpenLine4 PCI telephony cards + +USE_GMAKE= yes +USE_REINPLACE= yes +USE_RC_SUBR= vpb.sh +SUB_FILES+= pkg-message +PKGMESSAGE= ${WRKDIR}/pkg-message +MAKE_ENV+= KMODDIR=${PREFIX}/lib + +SED_SCRIPT= -e 's,%%PREFIX%%,${PREFIX},g' \ + -e 's,%%DOCSDIR%%,${DOCSDIR},g' \ + -e 's,%%DATADIR%%,${DATADIR},g' \ + -e 's,%%EXAMPLESDIR%%,${EXAMPLESDIR},g' \ + -e 's,%%RC_SUBR%%,${RC_SUBR},g' \ + +.include <bsd.port.pre.mk> + +.if ${OSVERSION} < 502000 || ${OSVERSION} >= 600000 +IGNORE= is not for FreeBSD versions < 502000, or >= 600000 +.endif + +do-configure: + @${REINPLACE_CMD} -E ${SED_SCRIPT} ${WRKSRC}/src/vpbreg.cpp + +post-install: + @${RM} -f ${PREFIX}/etc/rc.d/vpb.sh.sample.bak 2>/dev/null + @${CAT} ${PKGMESSAGE} + +.include <bsd.port.post.mk> |