57d6225b2b
The driver have been tested with the following devices * Option GlobeSurfer iCON 7.2 (2.4.6Hd firmware) * Option GlobeSurfer iCON 225 Older cards should work just fine with ubsa(4) or any similar USB-over-serial driver. Note that this driver should be considered beta. WWW: http://www.shapeshifter.se/code/hso/ PR: ports/123680 Submitted by: Ganael Laplanche <ganael.laplanche at martymac.com>
82 lines
2.1 KiB
Makefile
82 lines
2.1 KiB
Makefile
# New ports collection makefile for: hso-kmod
|
|
# Date created: 12 May 2008
|
|
# Whom: Ganael Laplanche <ganael.laplanche@martymac.com>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= hso
|
|
PORTVERSION= 20080514
|
|
CATEGORIES= comms kld
|
|
MASTER_SITES= http://www.shapeshifter.se/pub/hso/
|
|
PKGNAMESUFFIX= -kmod
|
|
DISTFILES= ${PORTNAME}-${PORTVERSION}${EXTRACT_SUFX}
|
|
|
|
MAINTAINER= ganael.laplanche@martymac.com
|
|
COMMENT= Driver for Option HSDPA modem
|
|
|
|
NO_PACKAGE= should be recompiled for a particular FreeBSD kernel
|
|
|
|
OPTIONS= HSOCTL "Build hsoctl tool" on \
|
|
DEVD "Install devd files" on \
|
|
DEBUG "Build with debug symbols" on
|
|
|
|
SUB_FILES= pkg-message
|
|
KMODDIR?= /boot/modules
|
|
PLIST_SUB+= KMODDIR=${KMODDIR}
|
|
MAKE_ENV+= KMODDIR=${KMODDIR}
|
|
|
|
MAN4= hso.4
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if !defined(WITHOUT_HSOCTL)
|
|
DISTFILES+= hsoctl-${PORTVERSION}${EXTRACT_SUFX}
|
|
WRKSRC_HSOCTL= ${WRKDIR}/hsoctl-${PORTVERSION}
|
|
PLIST_SUB+= PL_HSOCTL=""
|
|
MAN1= hsoctl.1
|
|
.else
|
|
PLIST_SUB+= PL_HSOCTL="@comment "
|
|
.endif
|
|
.if !defined(WITHOUT_DEVD)
|
|
PLIST_SUB+= PL_DEVD=""
|
|
.else
|
|
PLIST_SUB+= PL_DEVD="@comment "
|
|
.endif
|
|
.if defined(WITHOUT_DEBUG)
|
|
EXTRA_PATCHES+= ${PATCHDIR}/HSO-DEBUG-patch-Makefile
|
|
.endif
|
|
|
|
.if !exists(/usr/src/sys/Makefile)
|
|
IGNORE= requires kernel source files
|
|
.elif ${OSVERSION} < 700055
|
|
IGNORE= requires FreeBSD 7.0 or superior
|
|
.endif
|
|
|
|
post-patch:
|
|
.if !defined(WITHOUT_HSOCTL) && defined(WITHOUT_DEBUG)
|
|
@${PATCH} -d ${WRKSRC_HSOCTL} < ${PATCHDIR}/HSOCTL-DEBUG-patch-Makefile
|
|
.endif
|
|
|
|
post-build:
|
|
.if !defined(WITHOUT_HSOCTL)
|
|
@cd ${WRKSRC_HSOCTL} && ${SETENV} NO_MANCOMPRESS= ${MAKE} all
|
|
.endif
|
|
|
|
post-install:
|
|
${INSTALL_MAN} ${MAN4:S|^|${WRKSRC}/|} ${PREFIX}/man/man4
|
|
.if !defined(WITHOUT_HSOCTL)
|
|
@cd ${WRKSRC_HSOCTL} && \
|
|
${SETENV} DESTDIR=${PREFIX}/ BINDIR=bin MANDIR=man/man NO_MANCOMPRESS= \
|
|
${MAKE} install
|
|
.endif
|
|
.if !defined(WITHOUT_DEVD)
|
|
${MKDIR} ${PREFIX}/etc/devd
|
|
${INSTALL_DATA} ${FILESDIR}/option-icon.conf.sample ${PREFIX}/etc/devd/
|
|
@if [ ! -f ${PREFIX}/etc/devd/option-icon.conf ]; then \
|
|
${CP} -p ${PREFIX}/etc/devd/option-icon.conf.sample ${PREFIX}/etc/devd/option-icon.conf; \
|
|
fi
|
|
.endif
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
.include <bsd.port.post.mk>
|