1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-19 00:13:33 +00:00
freebsd-ports/misc/dahdi-kmod26/Makefile
Muhammad Moinur Rahman bbab7f59e9 */*: Sunset 12.4-RELEASE/12-STABLE from ports tree
- Remove all references to defunct ARCH arm
- Remove all references to defunct ARCH sparc64
- Remove x11-drivers/xf86-video-sunffb which requires defunct sparc64
  ARCH
- Remove sysutils/afbinit requires defunct sparc64 ARCH
- Remove all references to bktr driver
- Remove all references to defunct FreeBSD_12
- Remove all references to OSVERSION/OSREL corresponding to 12
- Remove conditionals in Mk/Uses/cabal.mk
- Remove sparc reference from Mk/Uses/qt-dist.mk
- Remove BROKEN_sparc64/NOT_FOR_ARCH=sparc64
- Remove BROKEN_FreeBSD_12* from:
- Remove OpenSSL patches from:
- Remove conditional flags for OSVERSION >= 1300000 to fixed flags.
  Also move conditional flags for non sparc64/arm ARCH to fixed flags.

Reviewed by:	brooks, jbeich, rene, salvadore
Differential Revision: https://reviews.freebsd.org/D42068
2023-12-31 01:37:05 +01:00

79 lines
2.1 KiB
Makefile

PORTNAME= dahdi-kmod26
PORTVERSION= ${DAHDI_VERSION:S/-/./g}
PORTREVISION= 1
CATEGORIES= misc
MASTER_SITES= LOCAL/fjoe \
http://people.freebsd.org/~fjoe/dahdi/\
http://downloads.digium.com/pub/telephony/firmware/releases/:firmware
DISTNAME= dahdi-freebsd-${DAHDI_VERSION}
DISTFILES= ${DISTNAME}.tar.bz2\
oslec-linux-${OSLEC_VERSION}${EXTRACT_SUFX}\
zaphfc-${ZAPHFC_VERSION}${EXTRACT_SUFX}
MAINTAINER= dgilbert@eicat.ca
COMMENT= Digium/Asterisk Hardware Device Interface
WWW= https://svn.digium.com/svn/dahdi/freebsd/
RUN_DEPENDS= ${LOCALBASE}/sbin/dahdi_cfg:misc/dahdi
ONLY_FOR_ARCHS= amd64 i386 powerpc powerpc64 powerpc64le
DAHDI_VERSION= 2.6.1-r10747
DAHDI_TOOLS_VERSION= 2.4.0-rc1
OSLEC_VERSION= 2.6.35.4
ZAPHFC_VERSION= r5
FIRMWARES= OCT6114_064 OCT6114_128 OCT6114_256 TC400M HX8 ${_vpmadt032} VPMOCT032 WCT820
OCT6114_064_VERSION= 1.05.01
OCT6114_128_VERSION= 1.05.01
OCT6114_256_VERSION= 1.05.01
TC400M_VERSION= MR6.12
HX8_VERSION= 2.06
VPMADT032_NAME= dahdi-fwload-vpmadt032
VPMADT032_DIR= dahdi_vpmadt032_loader
VPMADT032_VERSION= 1.25.0
VPMOCT032_VERSION= 1.12.0
WCT820_NAME= dahdi-fw-te820
WCT820_VERSION= 1.76
WRKSRC= ${WRKDIR}/${DISTNAME}
#EXTRA_PATCHES= ${WRKDIR}/zaphfc-${ZAPHFC_VERSION}
#PATCH_STRIP= -p1
MAKEFILE= BSDmakefile
USE_RC_SUBR= dahdi
MAKE_ARGS= NO_FETCH=yes WITHOUT_HEADERS=yes WERROR= #ADDITIONAL_DRIVERS="wcb1xxp"
GROUPS= dahdi
CONFLICTS= zaptel dahdi-kmod
KMODDIR= ${PREFIX}/lib/dahdi
USES= kmod uidfix
.include <bsd.port.pre.mk>
.if ${ARCH} == "amd64" || ${ARCH} == "i386"
PLIST_SUB+= X86=""
_vpmadt032= VPMADT032
.else
PLIST_SUB+= X86="@comment "
.endif
.for _f in ${FIRMWARES}
${_f}_NAME?= dahdi-fw-${_f:tl:S/_/-/g}
${_f}_DIR?= ${${_f}_NAME}.bin
${_f}_DISTFILE= ${${_f}_NAME}-${${_f}_VERSION}.tar.gz
DISTFILES+= ${${_f}_DISTFILE}:firmware
.endfor
post-extract:
@${LN} -s ../../linux-${OSLEC_VERSION}/drivers/staging ${WRKSRC}/drivers
.for _f in ${FIRMWARES}
${CP} ${DISTDIR}/${${_f}_DISTFILE} ${WRKSRC}/bsd-kmod/${${_f}_DIR}
.endfor
fw-versions: extract
.for _v in ${FIRMWARES:=_VERSION}
@${ECHO_CMD} "${_v}=`${MAKE} -V ${_v} -f ${WRKSRC}/firmware.mk`"
.endfor
.include <bsd.port.post.mk>