* Hard-code PORTOBJFORMAT?= elf instead of using the (now removed)

objformat(1) and defaulting to a.out.  This will be removed entirely
  once port makefiles no longer reference it.

* Retire NO_FILTER_SHLIBS and associated pkg-plist mangling code that
  attempted to handle a.out-style shared library naming
This commit is contained in:
Kris Kennaway 2007-01-30 04:18:07 +00:00
parent b90e75409c
commit 1801d62b27
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=183679

View File

@ -447,8 +447,7 @@ FreeBSD_MAINTAINER= portmgr@FreeBSD.org
# USE_LINUX - Set to yes to say the port needs the default linux base port.
# Set to value <X>, if the port needs emulators/linux_base-<X>.
# If set to "7", a dependency is registered to emulators/linux_base.
# Implies appropriate settings for NO_FILTER_SHLIBS,
# STRIP and STRIP_CMD.
# Implies appropriate settings for STRIP and STRIP_CMD.
# USE_LINUX_PREFIX
# - controls the action of PREFIX (see above). Only use this
# if the port is a linux infrastructure port (e.g. contains libs
@ -1152,7 +1151,7 @@ OSVERSION!= ${SYSCTL} -n kern.osreldate
# Get the object format.
.if !defined(PORTOBJFORMAT)
PORTOBJFORMAT!= ${TEST} -x /usr/bin/objformat && /usr/bin/objformat || ${ECHO_CMD} aout
PORTOBJFORMAT?= elf
.endif
MASTERDIR?= ${.CURDIR}
@ -1802,8 +1801,6 @@ STRIP_CMD= ${LINUXBASE}/usr/bin/strip
STRIP_CMD= ${TRUE}
. endif
NO_FILTER_SHLIBS= yes
# Allow the user to specify another linux_base version.
. if defined(OVERRIDE_LINUX_BASE_PORT)
. if ${USE_LINUX:L} == yes
@ -5461,14 +5458,6 @@ generate-plist:
@${ECHO_CMD} "@unexec ${LDCONFIG} -32 -R || ${TRUE}" >> ${TMPPLIST}
.endif
.endif
.if !defined(NO_FILTER_SHLIBS)
.if (${PORTOBJFORMAT} == "aout")
@${SED} -e 's,\(/lib.*\.so\.[0-9]*\)$$,\1.0,' ${TMPPLIST} > ${TMPPLIST}.tmp
.else
@${SED} -e 's,\(/lib.*\.so\.[0-9]*\)\.[0-9]*$$,\1,' ${TMPPLIST} > ${TMPPLIST}.tmp
.endif
@${MV} -f ${TMPPLIST}.tmp ${TMPPLIST}
.endif
.endif
${TMPPLIST}: