2005-12-29 07:21:30 +01:00
|
|
|
# $NetBSD: Makefile,v 1.20 2005/12/29 06:22:04 jlam Exp $
|
2001-07-29 03:18:33 +02:00
|
|
|
|
2004-12-23 19:11:18 +01:00
|
|
|
DISTNAME= speedtouch-1.3.1
|
2005-02-04 20:32:45 +01:00
|
|
|
PKGREVISION= 3
|
2004-12-23 19:11:18 +01:00
|
|
|
CATEGORIES= net
|
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=speedtouch/}
|
|
|
|
DISTFILES= ${DISTNAME}.tar.bz2
|
2001-07-29 03:18:33 +02:00
|
|
|
|
2004-12-23 19:11:18 +01:00
|
|
|
#
|
|
|
|
# Firmware license and link from:
|
|
|
|
# http://www.speedtouch.com/driver_upgrade_lx_3.0.1.2.htm
|
|
|
|
#
|
|
|
|
FIRMWARE_SRCS= SpeedTouch330_firmware_3012.zip
|
|
|
|
SITES_${FIRMWARE_SRCS}= http://www.speedtouch.com/download/drivers/USB/
|
|
|
|
DISTFILES+= ${FIRMWARE_SRCS}
|
|
|
|
EXTRACT_CMD_OPTS.zip= -Laqo -d ${WRKDIR}/firmware
|
|
|
|
|
|
|
|
LICENSE= speedtouch-firmware-license
|
|
|
|
|
|
|
|
MAINTAINER= abs@NetBSD.org
|
|
|
|
HOMEPAGE= http://www.xsproject.org/speedtouch/
|
|
|
|
COMMENT= Alcatel SpeedTouch USB ADSL modem driver
|
|
|
|
|
|
|
|
DEPENDS+= userppp>=001107:../../net/userppp
|
2001-07-29 03:18:33 +02:00
|
|
|
|
2004-12-23 19:11:18 +01:00
|
|
|
GNU_CONFIGURE= yes
|
2005-12-06 00:55:01 +01:00
|
|
|
CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR:Q}
|
2001-07-29 03:18:33 +02:00
|
|
|
|
2005-12-05 21:49:47 +01:00
|
|
|
PLIST_SUBST+= PKG_SYSCONFDIR=${PKG_SYSCONFDIR:Q}
|
2004-12-23 19:11:18 +01:00
|
|
|
RCD_SCRIPTS= adsl
|
2001-07-29 03:18:33 +02:00
|
|
|
|
2005-06-18 13:29:10 +02:00
|
|
|
.include "../../mk/pthread.buildlink3.mk"
|
|
|
|
.if defined(PTHREAD_TYPE) && ${PTHREAD_TYPE} == "native"
|
|
|
|
PLIST_SUBST+= PPPOA3=""
|
|
|
|
.else
|
|
|
|
PLIST_SUBST+= PPPOA3="@comment "
|
|
|
|
CONFIGURE_ENV+= ac_cv_lib_pthread_pthread_create=no
|
|
|
|
.endif
|
|
|
|
|
2004-12-23 19:11:18 +01:00
|
|
|
pre-extract:
|
|
|
|
${MKDIR} ${WRKDIR}/firmware
|
2002-07-18 02:10:07 +02:00
|
|
|
|
2004-12-19 17:48:36 +01:00
|
|
|
SAMPLECONF= ${WRKSRC}/doc-bsd/ppp.conf.sample
|
|
|
|
|
|
|
|
post-build:
|
|
|
|
${CP} ${SAMPLECONF} ${SAMPLECONF}.pre
|
|
|
|
${SED} 's:/usr/local:${PREFIX}:' ${SAMPLECONF}.pre > ${SAMPLECONF}
|
|
|
|
|
2001-07-29 03:18:33 +02:00
|
|
|
post-install:
|
2004-12-23 19:11:18 +01:00
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/libdata/speedtouch
|
|
|
|
${INSTALL_DATA} ${WRKDIR}/firmware/kqd6_3.012 ${PREFIX}/libdata/speedtouch
|
|
|
|
${INSTALL_DATA} ${WRKDIR}/firmware/zzzl_3.012 ${PREFIX}/libdata/speedtouch
|
2001-07-29 03:18:33 +02:00
|
|
|
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|