diff options
author | kuriyama <kuriyama@FreeBSD.org> | 2002-03-22 03:52:37 +0000 |
---|---|---|
committer | kuriyama <kuriyama@FreeBSD.org> | 2002-03-22 03:52:37 +0000 |
commit | ec0f74198b06bf7350cb0db9cb7eafa53f1a24bb (patch) | |
tree | 10cd62ac03f55462d1e8bb60ed28407daa7b909b /net/net-snmp4 | |
parent | 1a2aee051f60da6aec56c2a331525d4f8d5e5909 (diff) | |
download | FreeBSD-ports-ec0f74198b06bf7350cb0db9cb7eafa53f1a24bb.zip FreeBSD-ports-ec0f74198b06bf7350cb0db9cb7eafa53f1a24bb.tar.gz |
Make this port $PREFIX clean.
PR: ports/34551
Submitted by: Kazutoshi Kubota <tu7k-kbt@asahi-net.or.jp>
Diffstat (limited to 'net/net-snmp4')
-rw-r--r-- | net/net-snmp4/Makefile | 3 | ||||
-rw-r--r-- | net/net-snmp4/files/patch-aclocal.m4 | 8 |
2 files changed, 7 insertions, 4 deletions
diff --git a/net/net-snmp4/Makefile b/net/net-snmp4/Makefile index df4a964..4a3c19e 100644 --- a/net/net-snmp4/Makefile +++ b/net/net-snmp4/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/net-snmp4/files/patch-aclocal.m4 b/net/net-snmp4/files/patch-aclocal.m4 index bff5d4a..c466d9e 100644 --- a/net/net-snmp4/files/patch-aclocal.m4 +++ b/net/net-snmp4/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" |