summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjlam <jlam>2001-07-15 12:18:04 +0000
committerjlam <jlam>2001-07-15 12:18:04 +0000
commita05aab3c3a262f164ac331f3eab12d78ca0fa5dd (patch)
tree44ffa0e4ad41bc995ef646a5554a737ecd6ce57a
parentb36226c7b10daa0ee6cd0d8877253a9651b7b3c0 (diff)
downloadpkgsrc-a05aab3c3a262f164ac331f3eab12d78ca0fa5dd.tar.gz
Links libsocks4.* to libsocks.* since that's what the name of the SOCK4
library is on many other systems.
-rw-r--r--net/socks4/buildlink.mk11
1 files changed, 10 insertions, 1 deletions
diff --git a/net/socks4/buildlink.mk b/net/socks4/buildlink.mk
index 8a0c161dc4b..cd79be98be0 100644
--- a/net/socks4/buildlink.mk
+++ b/net/socks4/buildlink.mk
@@ -1,4 +1,4 @@
-# $NetBSD: buildlink.mk,v 1.4 2001/07/01 22:59:27 jlam Exp $
+# $NetBSD: buildlink.mk,v 1.5 2001/07/15 12:18:04 jlam Exp $
#
# This Makefile fragment is included by packages that use socks4.
#
@@ -24,9 +24,18 @@ BUILDLINK_PREFIX.socks4= ${LOCALBASE}
BUILDLINK_FILES.socks4= lib/libsocks4.*
BUILDLINK_TARGETS.socks4= socks4-buildlink
+BUILDLINK_TARGETS.socks4+= socks4-buildlink-libsock
BUILDLINK_TARGETS+= ${BUILDLINK_TARGETS.socks4}
pre-configure: ${BUILDLINK_TARGETS.socks4}
socks4-buildlink: _BUILDLINK_USE
+socks4-buildlink-libsock:
+ ${_PKG_SILENT}${_PKG_DEBUG} \
+ cd ${BUILDLINK_DIR}/lib; for lib in libsocks4.*; do \
+ dest=`${ECHO} $${lib} | ${SED} "s|libsocks4\.|libsocks.|g"`; \
+ ${RM} -f $${dest}; \
+ ${LN} -sf $${lib} $${dest}; \
+ done
+
.endif # SOCKS4_BUILDLINK_MK