diff options
author | Jun Kuriyama <kuriyama@FreeBSD.org> | 2002-03-22 03:52:37 +0000 |
---|---|---|
committer | Jun Kuriyama <kuriyama@FreeBSD.org> | 2002-03-22 03:52:37 +0000 |
commit | 44bc66fb12f7de671687da55346dee2497fa7de2 (patch) | |
tree | fcc86ab450447498798adc42dbe08141ea81f1d2 /net/net-snmp4 | |
parent | 5a6ca81db5fc1e1a12fb88bf9c959c762b78c153 (diff) | |
download | ports-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/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 df4a9647c6a2..4a3c19ebc2af 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 bff5d4a1df3a..c466d9e1f68c 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" |