pkgsrc/net/aget/Makefile
jlam 00686c240d Set PTHREAD_AUTO_VARS to "yes" after pthread.buildlink3.mk was changed
not to automatically add pthread-related CFLAGS, LDFLAGS, and LIBS to
the configure and build processes.
2004-12-04 23:09:06 +00:00

41 lines
935 B
Makefile

# $NetBSD: Makefile,v 1.5 2004/12/04 23:09:06 jlam 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
PTHREAD_AUTO_VARS= yes
.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"