summaryrefslogtreecommitdiff
path: root/net/socks4/Makefile
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2001-06-28 20:20:48 +0000
committerjlam <jlam@pkgsrc.org>2001-06-28 20:20:48 +0000
commit336bb7399432d110e14904b73c8e5af2f3fb18b5 (patch)
treec0f630fbed4dd1cac608f790e2116976b3893c07 /net/socks4/Makefile
parent1d2921d76d20ed33c05679d08543ed42ad047fe6 (diff)
downloadpkgsrc-336bb7399432d110e14904b73c8e5af2f3fb18b5.tar.gz
Honor CFLAGS passed in from environment during build, some minor cosmetic
changes to the Makefile, and mark as USE_BUILDLINK_ONLY.
Diffstat (limited to 'net/socks4/Makefile')
-rw-r--r--net/socks4/Makefile19
1 files changed, 9 insertions, 10 deletions
diff --git a/net/socks4/Makefile b/net/socks4/Makefile
index ab64ea1e7bb..be876a1ad42 100644
--- a/net/socks4/Makefile
+++ b/net/socks4/Makefile
@@ -1,8 +1,9 @@
-# $NetBSD: Makefile,v 1.10 2001/03/31 13:39:32 zuntum Exp $
+# $NetBSD: Makefile,v 1.11 2001/06/28 20:20:48 jlam Exp $
#
DISTNAME= export.socks.cstc.4.2.2
PKGNAME= socks4-2.2
+WRKSRC= ${WRKDIR}/socks.cstc.4.2
CATEGORIES= net security
MASTER_SITES= ftp://ftp.nec.com/pub/socks/socks4/
@@ -12,20 +13,18 @@ COMMENT= Old library, server and client for using proxy firewall software
CONFLICTS= socks5-*
-RESTRICTED= "no commercial use"
+RESTRICTED= "no commercial use"
NO_SRC_ON_CDROM= ${RESTRICTED}
NO_BIN_ON_CDROM= ${RESTRICTED}
-WRKSRC= ${WRKDIR}/socks.cstc.4.2
-
-NO_CONFIGURE= yes
-
-.include "../../mk/bsd.prefs.mk"
+USE_BUILDLINK_ONLY= # defined
+MAKE_ENV+= OPTIMIZE="${CFLAGS}"
post-patch:
- @${SED} -e 's|@PREFIX@|${PREFIX}|g' ${WRKSRC}/include/socks.h \
- > ${WRKSRC}/include/socks.h.new && \
- ${MV} ${WRKSRC}/include/socks.h.new ${WRKSRC}/include/socks.h
+ @cd ${WRKSRC}; \
+ ${SED} -e "s|@PREFIX@|${PREFIX}|g" \
+ include/socks.h > ${WRKSRC}/include/socks.h.new; \
+ ${MV} include/socks.h.new include/socks.h
@${ECHO} "sockd 0.0.0.0 0.0.0.0" >> ${WRKSRC}/socks.conf
.include "../../mk/bsd.pkg.mk"