Skip to content

Commit

Permalink
Added cxxfilt-11
Browse files Browse the repository at this point in the history
  • Loading branch information
st3fan committed Nov 8, 2013
1 parent 3fceb32 commit f67def6
Show file tree
Hide file tree
Showing 1,541 changed files with 1,474,468 additions and 0 deletions.
186 changes: 186 additions & 0 deletions cxxfilt-11/GNUSource.make
@@ -0,0 +1,186 @@
##
# Makefile for Apple Release Control (GNU source projects)
#
# Wilfredo Sanchez | wsanchez@apple.com
# Copyright (c) 1997-1999 Apple Computer, Inc.
#
# @APPLE_LICENSE_HEADER_START@
#
# Portions Copyright (c) 1999 Apple Computer, Inc. All Rights
# Reserved. This file contains Original Code and/or Modifications of
# Original Code as defined in and that are subject to the Apple Public
# Source License Version 1.1 (the "License"). You may not use this file
# except in compliance with the License. Please obtain a copy of the
# License at http://www.apple.com/publicsource and read it before using
# this file.
#
# The Original Code and all software distributed under the License are
# distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, EITHER
# EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
# INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE OR NON- INFRINGEMENT. Please see the
# License for the specific language governing rights and limitations
# under the License.
#
# @APPLE_LICENSE_HEADER_END@
##
# Set these variables as needed, then include this file, then:
#
# Install_Prefix [ $(USRDIR) ]
# Install_Man [ $(MANDIR) ]
# Install_Info [ $(SHAREDIR)/info ]
# Install_HTML [ <depends> ]
# Install_Source [ $(NSSOURCEDIR)/Commands/$(ProjectName) ]
# Configure [ $(Sources)/configure ]
# Extra_Configure_Flags
# Extra_Install_Flags
# Passed_Targets [ check ]
#
# Additional variables inherited from ReleaseControl/Common.make
##

NCPU := "-j`sysctl -n hw.activecpu`"

ifndef CoreOSMakefiles
CoreOSMakefiles = $(MAKEFILEPATH)/CoreOS
endif

Passed_Targets += check

include $(CoreOSMakefiles)/ReleaseControl/Common.make

##
# My variables
##

Sources = $(SRCROOT)/$(Project)
ConfigStamp = $(BuildDirectory)/configure-stamp

Workaround_3678855 = /BogusHTMLInstallationDir

ifndef Install_Prefix
Install_Prefix = $(USRDIR)
endif
ifndef Install_Man
Install_Man = $(MANDIR)
endif
ifndef Install_Info
Install_Info = $(SHAREDIR)/info
endif
ifndef Install_HTML
ifeq "$(UserType)" "Developer"
Install_HTML = $(Workaround_3678855)
else
Install_HTML = $(NSDOCUMENTATIONDIR)/$(ToolType)/$(ProjectName)
endif
endif
ifndef Install_Source
Install_Source = $(NSSOURCEDIR)/$(ToolType)/$(ProjectName)
endif

RC_Install_Prefix = $(DSTROOT)$(Install_Prefix)
RC_Install_Man = $(DSTROOT)$(Install_Man)
RC_Install_Info = $(DSTROOT)$(Install_Info)
RC_Install_HTML = $(DSTROOT)$(Install_HTML)
ifneq ($(Install_Source),)
RC_Install_Source = $(DSTROOT)$(Install_Source)
endif

ifndef Configure
Configure = $(Sources)/configure
endif

Environment += TEXI2HTML="$(TEXI2HTML) -subdir ."
Environment += CC="$(CC) -arch $$arch" CXX="$(CXX) -arch $$arch"
Environment += AS="$(AS) -arch $$arch" LD="$(LD) -arch $$arch"
Environment += NM="nm -arch $$arch"
Environment += AR=$(AR) STRIP=$(STRIP) RANLIB=ranlib

CC_Archs = # set by CC
# FIXME: Common.make shouldn't be setting this in the first place.
Extra_CC_Flags =

# -arch arguments are different than configure arguments. We need to
# translate them.

TRANSLATE_ARCH=$(SED) -e s/ppc/powerpc/ -e s/i386/i686/
# Could use config.guess here, if we had a copy available.
BUILD=`$(ARCH) | $(TRANSLATE_ARCH)`-apple-darwin

Configure_Flags = --prefix="$(Install_Prefix)" \
--mandir="$(Install_Man)" \
--infodir="$(Install_Info)" \
--build=$(BUILD) \
--host=`echo $$arch | $(TRANSLATE_ARCH)`-apple-darwin \
$(Extra_Configure_Flags)

Install_Flags = DESTDIR=$(BuildDirectory)/install-$$arch \
$(Extra_Install_Flags)

Install_Target = install-strip

##
# Targets
##

.PHONY: configure almostclean

install:: build
ifneq ($(GnuNoInstall),YES)
$(_v) for arch in $(RC_ARCHS) ; do \
echo "Installing $(Project) for $$arch..." && \
$(MKDIR) $(BuildDirectory)/install-$$arch && \
umask $(Install_Mask) && \
$(MAKE) $(NCPU) -C $(BuildDirectory)/$$arch $(Environment) \
$(Install_Flags) $(Install_Target) || exit 1 ; \
done
rm -rf "$(BuildDirectory)/install-x86_64/./usr/local/lib"
./merge-lipo `for arch in $(RC_ARCHS) ; do echo $(BuildDirectory)/install-$$arch ; done` $(DSTROOT)
$(_v) $(FIND) $(DSTROOT) $(Find_Cruft) | $(XARGS) $(RMDIR)
$(_v) $(FIND) $(SYMROOT) $(Find_Cruft) | $(XARGS) $(RMDIR)
ifneq ($(GnuNoChown),YES)
$(_v)- $(CHOWN) -R $(Install_User):$(Install_Group) $(DSTROOT) $(SYMROOT)
endif
endif
ifdef GnuAfterInstall
$(_v) $(MAKE) $(GnuAfterInstall)
endif
$(_v) if [ -d "$(DSTROOT)$(Workaround_3678855)" ]; then \
$(INSTALL_DIRECTORY) "$(DSTROOT)$(SYSTEM_DEVELOPER_TOOLS_DOC_DIR)"; \
$(MV) "$(DSTROOT)$(Workaround_3678855)" \
"$(DSTROOT)$(SYSTEM_DEVELOPER_TOOLS_DOC_DIR)/$(ProjectName)"; \
fi

build:: configure
ifneq ($(GnuNoBuild),YES)
$(_v) for arch in $(RC_ARCHS) ; do \
echo "Building $(Project) for $$arch..." && \
$(MAKE) $(NCPU) -C $(BuildDirectory)/$$arch $(Environment) || exit 1; \
done
endif

configure:: lazy_install_source $(ConfigStamp)

reconfigure::
$(_v) $(RM) $(ConfigStamp)
$(_v) $(MAKE) configure

$(ConfigStamp):
ifneq ($(GnuNoConfigure),YES)
$(_v) $(MKDIR) $(BuildDirectory)
$(_v) for arch in $(RC_ARCHS) ; do \
echo "Configuring $(Project) for $$arch..." && \
$(MKDIR) $(BuildDirectory)/$$arch && \
cd $(BuildDirectory)/$$arch && \
$(Environment) $(Configure) $(Configure_Flags) || exit 1 ; \
done
endif
$(_v) touch $@

almostclean::
ifneq ($(GnuNoClean),YES)
@echo "Cleaning $(Project)..."
$(_v) for arch in $(RC_ARCHS) ; do \
$(MAKE) -C $(BuildDirectory)/$$arch clean || exit 1 ; \
done
endif
74 changes: 74 additions & 0 deletions cxxfilt-11/Makefile
@@ -0,0 +1,74 @@
##
# cxxfilt Makefile
##

# The --target is because bfd doesn't actually work on powerpc-darwin.
# libiberty doesn't care about the target, but c++filt does, in one
# very small way: it needs to know whether or not the target prepends an
# underscore. It turns out that this target does prepend an underscore.
FAKE_TARGET=mn10300-elf

# Project info
Project = cxxfilt
UserType = Developer
ToolType = Commands
Install_Prefix = /usr/local
Extra_Configure_Flags = --target=$(FAKE_TARGET) \
--without-target-subdir \
--disable-nls $(HOST_TARGET_FLAGS) --disable-werror
Extra_CC_Flags = -mdynamic-no-pic
Extra_LD_Flags = -lc++
GnuAfterInstall = post-install install-plist

# It's a GNU Source project
include ./GNUSource.make

# Automatic Extract & Patch
AEP = YES
AEP_Project = binutils
AEP_Version = 070207
AEP_ProjVers = $(AEP_Project)-$(AEP_Version)
AEP_Filename = $(AEP_ProjVers).tar.bz2
AEP_ExtractDir = $(AEP_ProjVers)
AEP_Patches = libiberty-demangle-5046344.patch libiberty-printf.patch stat64.patch demangle.patch cxa_demangle.patch

ifeq ($(suffix $(AEP_Filename)),.bz2)
AEP_ExtractOption = j
else
AEP_ExtractOption = z
endif

Install_Target = install

# Extract the source.
install_source::
ifeq ($(AEP),YES)
$(TAR) -C $(SRCROOT) -$(AEP_ExtractOption)xf $(SRCROOT)/$(AEP_Filename)
$(RMDIR) $(SRCROOT)/$(Project)
$(MV) $(SRCROOT)/$(AEP_ExtractDir) $(SRCROOT)/$(Project)
$(RM) -r $(SRCROOT)/$(Project)/{gas,ld,gprof}
for patchfile in $(AEP_Patches); do \
cd $(SRCROOT)/$(Project) && patch -p0 < $(SRCROOT)/patches/$$patchfile; \
done
endif

post-install:
$(MKDIR) $(DSTROOT)/usr/bin
$(STRIP) $(DSTROOT)/usr/local/bin/$(FAKE_TARGET)-c++filt \
-o $(DSTROOT)/usr/bin/c++filt
$(MV) $(DSTROOT)/usr/share/man/man1/$(FAKE_TARGET)-c++filt.1 \
$(DSTROOT)/usr/share/man/man1/c++filt.1
$(RM) -r $(DSTROOT)/usr/share/info $(DSTROOT)/usr/local/bin
$(RM) -r $(DSTROOT)/usr/local/$(FAKE_TARGET)
$(RM) $(DSTROOT)/usr/share/man/man1/$(FAKE_TARGET)-*
$(RM) -r $(DSTROOT)/usr/local/include
$(RM) -r $(DSTROOT)/usr/local/lib

OSV = $(DSTROOT)/usr/local/OpenSourceVersions
OSL = $(DSTROOT)/usr/local/OpenSourceLicenses

install-plist:
$(MKDIR) $(OSV)
$(INSTALL_FILE) $(SRCROOT)/$(Project).plist $(OSV)/$(Project).plist
$(MKDIR) $(OSL)
$(INSTALL_FILE) $(Sources)/COPYING $(OSL)/$(Project).txt
Binary file added cxxfilt-11/binutils-070207.tar.bz2
Binary file not shown.
24 changes: 24 additions & 0 deletions cxxfilt-11/cxxfilt.plist
@@ -0,0 +1,24 @@
<plist version="1.0">
<array>
<dict>
<key>OpenSourceImportDate</key>
<string>2007-02-07</string>
<key>OpenSourceProject</key>
<string>binutils</string>
<key>OpenSourceVersion</key>
<string>070207</string>
<key>OpenSourceWebsiteURL</key>
<string>http://sourceware.org/binutils/</string>
<key>OpenSourceURL</key>
<string>ftp://sourceware.org/pub/binutils/snapshots/binutils-070207.tar.bz2</string>
<key>OpenSourceMD5</key>
<string>2b2e45016dc551e0442902934204ae5d</string>
<key>OpenSourceModifications</key>
<array/>
<key>OpenSourceLicense</key>
<string>GPL</string>
<key>OpenSourceLicenseFile</key>
<string>cxxfilt.txt</string>
</dict>
</array>
</plist>

0 comments on commit f67def6

Please sign in to comment.