aboutsummaryrefslogtreecommitdiff
path: root/net-mgmt/net-snmp
diff options
context:
space:
mode:
authorJun Kuriyama <kuriyama@FreeBSD.org>2002-03-22 03:52:37 +0000
committerJun Kuriyama <kuriyama@FreeBSD.org>2002-03-22 03:52:37 +0000
commit44bc66fb12f7de671687da55346dee2497fa7de2 (patch)
treefcc86ab450447498798adc42dbe08141ea81f1d2 /net-mgmt/net-snmp
parent5a6ca81db5fc1e1a12fb88bf9c959c762b78c153 (diff)
downloadports-44bc66fb12f7de671687da55346dee2497fa7de2.tar.gz
ports-44bc66fb12f7de671687da55346dee2497fa7de2.zip
Make this port $PREFIX clean.
PR: ports/34551 Submitted by: Kazutoshi Kubota <tu7k-kbt@asahi-net.or.jp>
Notes
Notes: svn path=/head/; revision=56441
Diffstat (limited to 'net-mgmt/net-snmp')
-rw-r--r--net-mgmt/net-snmp/Makefile3
-rw-r--r--net-mgmt/net-snmp/files/patch-aclocal.m48
2 files changed, 7 insertions, 4 deletions
diff --git a/net-mgmt/net-snmp/Makefile b/net-mgmt/net-snmp/Makefile
index df4a9647c6a2..4a3c19ebc2af 100644
--- a/net-mgmt/net-snmp/Makefile
+++ b/net-mgmt/net-snmp/Makefile
@@ -71,6 +71,9 @@ CONFIGURE_ARGS+=--with-mib-modules="ucd-snmp/diskio" --with-libs="-ldevstat"
SHLIB_VERSION= 4
PLIST_SUB+= shlib=${SHLIB_VERSION}
+post-patch:
+ @${PERL} -pi -e "s|%%LOCALBASE%%|${LOCALBASE}|g" ${WRKSRC}/aclocal.m4
+
post-install:
@( cd ${PREFIX}/bin && strip ${BIN} )
@( cd ${PREFIX}/sbin && strip ${SBIN} )
diff --git a/net-mgmt/net-snmp/files/patch-aclocal.m4 b/net-mgmt/net-snmp/files/patch-aclocal.m4
index bff5d4a1df3a..c466d9e1f68c 100644
--- a/net-mgmt/net-snmp/files/patch-aclocal.m4
+++ b/net-mgmt/net-snmp/files/patch-aclocal.m4
@@ -12,8 +12,8 @@
+LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
+LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
+DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
-+${CONFIG_SHELL-/bin/sh} /usr/local/share/libtool/ltconfig --no-reexec \
-+$libtool_flags --no-verify --disable-ltlibs --release-ignore /usr/local/share/libtool/ltmain.sh $lt_target \
++${CONFIG_SHELL-/bin/sh} %%LOCALBASE%%/share/libtool/ltconfig --no-reexec \
++$libtool_flags --no-verify --disable-ltlibs --release-ignore %%LOCALBASE%%/share/libtool/ltmain.sh $lt_target \
+|| AC_MSG_ERROR([libtool configure failed])
+
+# Reload cache, that may have been modified by ltconfig
@@ -21,7 +21,7 @@
+
# This can be used to rebuild libtool when needed
-LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
-+LIBTOOL_DEPS="--disable-ltlibs --release-ignore /usr/local/share/libtool/ltmain.sh"
++LIBTOOL_DEPS="--disable-ltlibs --release-ignore %%LOCALBASE%%/share/libtool/ltmain.sh"
# Always use our own libtool.
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
@@ -42,7 +42,7 @@
# which needs '.lib').
libext=a
-ltmain="$ac_aux_dir/ltmain.sh"
-+ltmain="--disable-ltlibs --release-ignore /usr/local/share/libtool/ltmain.sh"
++ltmain="--disable-ltlibs --release-ignore %%LOCALBASE%%/share/libtool/ltmain.sh"
ofile="$default_ofile"
with_gnu_ld="$lt_cv_prog_gnu_ld"
need_locks="$enable_libtool_lock"