2008-06-12 04:14:13 +02:00
|
|
|
# $NetBSD: Makefile,v 1.11 2008/06/12 02:14:38 joerg Exp $
|
2004-02-18 03:00:34 +01:00
|
|
|
#
|
|
|
|
|
|
|
|
DISTNAME= aget-0.4
|
2006-01-10 20:31:52 +01:00
|
|
|
PKGREVISION= 1
|
2004-02-18 03:00:34 +01:00
|
|
|
CATEGORIES= net
|
|
|
|
MASTER_SITES= http://www.enderunix.org/aget/
|
|
|
|
|
|
|
|
MAINTAINER= eeg@e3labs.ath.cx
|
|
|
|
HOMEPAGE= http://www.enderunix.org/aget/
|
|
|
|
COMMENT= Multithreaded HTTP download accelerator
|
|
|
|
|
|
|
|
PKG_INSTALLATION_TYPES= overwrite pkgviews
|
2008-06-12 04:14:13 +02:00
|
|
|
PKG_DESTDIR_SUPPORT= user-destdir
|
2004-02-18 03:00:34 +01:00
|
|
|
|
|
|
|
NO_CONFIGURE= yes
|
|
|
|
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
|
|
|
|
SUBST_CLASSES+= options
|
2006-04-22 11:22:05 +02:00
|
|
|
SUBST_MESSAGE.options= Fixing build options.
|
2004-02-18 03:00:34 +01:00
|
|
|
SUBST_STAGE.options= post-patch
|
|
|
|
SUBST_FILES.options= Makefile Makefile.Solaris
|
|
|
|
SUBST_SED.options= -e 's,CFLAGS =,\#CFLAGS =,' \
|
|
|
|
-e 's,LDFLAGS =,\#LDFLAGS =,' \
|
2004-02-18 05:27:49 +01:00
|
|
|
-e 's,CC =,\#CC =,'
|
2004-02-18 03:00:34 +01:00
|
|
|
|
2004-12-05 00:09:06 +01:00
|
|
|
PTHREAD_OPTS+= require
|
2005-06-18 20:55:36 +02:00
|
|
|
LDFLAGS+= ${PTHREAD_LIBS}
|
2004-12-05 00:09:06 +01:00
|
|
|
PTHREAD_AUTO_VARS= yes
|
2004-02-18 03:00:34 +01:00
|
|
|
|
|
|
|
.if ${OPSYS} == "SunOS"
|
|
|
|
CFLAGS+= -DSOLARIS
|
|
|
|
LDFLAGS+= -lsocket -lnsl -lresolv
|
|
|
|
.endif
|
|
|
|
|
|
|
|
INSTALLATION_DIRS= bin
|
|
|
|
|
|
|
|
do-install:
|
2008-06-12 04:14:13 +02:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/aget ${DESTDIR}${PREFIX}/bin/aget
|
2004-02-18 03:00:34 +01:00
|
|
|
|
|
|
|
.include "../../mk/pthread.buildlink3.mk"
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|