2012-10-23 19:18:07 +02:00
|
|
|
# $NetBSD: Makefile,v 1.32 2012/10/23 17:19:10 asau Exp $
|
2001-07-29 03:18:33 +02:00
|
|
|
|
2004-12-23 19:11:18 +01:00
|
|
|
DISTNAME= speedtouch-1.3.1
|
2006-02-06 00:08:03 +01:00
|
|
|
PKGREVISION= 4
|
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
|
2006-07-27 20:48:02 +02:00
|
|
|
SITES.${FIRMWARE_SRCS}= http://www.speedtouch.com/download/drivers/USB/
|
2004-12-23 19:11:18 +01:00
|
|
|
DISTFILES+= ${FIRMWARE_SRCS}
|
2006-01-21 00:41:29 +01:00
|
|
|
EXTRACT_OPTS_ZIP= -Laqo -d ${WRKDIR}/firmware
|
2004-12-23 19:11:18 +01:00
|
|
|
|
2009-02-10 13:55:25 +01:00
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
2004-12-23 19:11:18 +01:00
|
|
|
HOMEPAGE= http://www.xsproject.org/speedtouch/
|
|
|
|
COMMENT= Alcatel SpeedTouch USB ADSL modem driver
|
2009-05-19 10:59:00 +02:00
|
|
|
LICENSE= speedtouch-firmware-license
|
2004-12-23 19:11:18 +01:00
|
|
|
|
|
|
|
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
|
|
|
|
2008-04-13 00:42:57 +02:00
|
|
|
PLIST_VARS+= pppoa3
|
|
|
|
|
2005-06-18 13:29:10 +02:00
|
|
|
.include "../../mk/pthread.buildlink3.mk"
|
|
|
|
.if defined(PTHREAD_TYPE) && ${PTHREAD_TYPE} == "native"
|
2008-04-13 00:42:57 +02:00
|
|
|
PLIST.pppoa3= yes
|
2005-06-18 13:29:10 +02:00
|
|
|
.else
|
|
|
|
CONFIGURE_ENV+= ac_cv_lib_pthread_pthread_create=no
|
|
|
|
.endif
|
|
|
|
|
2007-01-24 18:44:02 +01:00
|
|
|
CHECK_PORTABILITY_SKIP+= doc-linux/*
|
|
|
|
|
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
|
|
|
|
|
2009-02-10 13:55:25 +01:00
|
|
|
INSTALLATION_DIRS= libdata/speedtouch
|
2010-02-11 23:46:18 +01:00
|
|
|
INSTALL_MAKE_FLAGS+= prefix=${DESTDIR}${PREFIX} \
|
2010-03-15 15:25:07 +01:00
|
|
|
mandir=${DESTDIR}${PREFIX}/${PKGMANDIR} \
|
|
|
|
installuser=${ROOT_USER}
|
2009-02-10 13:55:25 +01:00
|
|
|
|
2004-12-19 17:48:36 +01:00
|
|
|
post-build:
|
|
|
|
${CP} ${SAMPLECONF} ${SAMPLECONF}.pre
|
|
|
|
${SED} 's:/usr/local:${PREFIX}:' ${SAMPLECONF}.pre > ${SAMPLECONF}
|
|
|
|
|
2001-07-29 03:18:33 +02:00
|
|
|
post-install:
|
2009-02-10 13:55:25 +01:00
|
|
|
${INSTALL_DATA} ${WRKDIR}/firmware/kqd6_3.012 ${DESTDIR}${PREFIX}/libdata/speedtouch
|
|
|
|
${INSTALL_DATA} ${WRKDIR}/firmware/zzzl_3.012 ${DESTDIR}${PREFIX}/libdata/speedtouch
|
2001-07-29 03:18:33 +02:00
|
|
|
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|