summaryrefslogtreecommitdiff
path: root/net/aget/Makefile
blob: b2cd2e3d27299c1eb32d5bc3e707077137d2f191 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# $NetBSD: Makefile,v 1.2 2004/02/18 04:27:49 minskim Exp $
#

DISTNAME=	aget-0.4
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

USE_BUILDLINK3=	yes
NO_CONFIGURE=	yes

.include "../../mk/bsd.prefs.mk"

SUBST_CLASSES+=		options
SUBST_MESSAGE.options=	"Fixing build options."
SUBST_STAGE.options=	post-patch
SUBST_FILES.options=	Makefile Makefile.Solaris
SUBST_SED.options=	-e 's,CFLAGS =,\#CFLAGS =,' \
			-e 's,LDFLAGS =,\#LDFLAGS =,' \
			-e 's,CC =,\#CC =,'

PTHREAD_OPTS+=          require
CFLAGS+=	${PTHREAD_CFLAGS}
LDFLAGS+=	${PTHREAD_LDFLAGS}

.if ${OPSYS} == "SunOS"
CFLAGS+=	-DSOLARIS
LDFLAGS+=	-lsocket -lnsl -lresolv
.endif

INSTALLATION_DIRS=	bin

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/aget ${PREFIX}/bin/aget

.include "../../mk/pthread.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"