roofitcore stable port information

Info2: <<
Package: roofitcore-%type_pkg[root_version]
Type: root_version (root4)
Architecture: powerpc
Description: Physics event-distributions modeling toolkit
DescDetail: <<
The core package provides tools to perform likelihood fits, produce
plots, and generate "toy Monte Carlo" samples for various physics studies. The
RooFit tools are integrated with the object-oriented and interactive
ROOT graphical environment.

RooFit has been developed for the BaBar collaboration, a high energy
physics experiment at the Stanford Linear Accelerator Center, and is
primarily targeted to the high-energy physicists using the ROOT
analysis environment, but the general nature of the package make it
suitable for adoption in different disciplines as well.
<<
Homepage: http://roofit.sourceforge.net
Version: 1.09.02
Revision: 53
Maintainer: Remi Mommsen
GCC: 4.0
BuildDependsOnly: false
BuildDepends: fink (>= 0.24.12)
Depends: <<
%N-shlibs (=%v-%r),
%type_raw[root_version] | %type_raw[root_version]-cernlib
<<
Conflicts: roofitcore, roofitcore4, roofitcore-root3, roofitcore-root4
Replaces: roofitcore, roofitcore4, roofitcore-root3, roofitcore-root4
Recommends: roofitmodels-%type_raw[root_version]
License: BSD
Source: mirror:sourceforge:roofit/RooFitCore_V01-09-02.tgz
Source-MD5: 2c8aa905feab8bfaa1b58e1a4c55d39b
SourceDirectory: RooFitCore
PatchFile: roofitcore.patch
PatchFile-MD5: d2231e148c7c03c8868caf96d03e450b
PatchScript: sed 's|@PREFIX@|%p|g' <%{PatchFile} | sed 's|@VERSION@|%v|g' | patch -p1
CompileScript: make -f GNUmakefile.standalone
InstallScript: <<
mkdir -p %i/lib/root
install -m 644 tmp/libRooFitCore.so %i/lib/root
ln -s libRooFitCore.1.9.dylib %i/lib/root/libRooFitCore.dylib
mkdir -p %i/include/root/RooFitCore
install -m 644 tmp/RooFitCore/*.hh %i/include/root/RooFitCore
<<
DescPackaging: <<
This package has a somewhat unorthodox split-off due to the fact that
root relies on a C++ interpreter. Thus the header files are needed to
run root interactively and it does not make sense to single the header
files out into another split-off (roofitcore-dev for example) which
cannot be declared BuildDependsOnly anyway.

Needs root4, which doesn't compile on intel.
<<
SplitOff: <<
Package: %N-shlibs
Description: Shared libs of RooFitCore built against %type_raw[root_version]
Depends: %type_raw[root_version]-shlibs | %type_raw[root_version]-cernlib-shlibs
Conflicts: roofitcore-shlibs, roofitcore4-shlibs, roofitcore-root3-shlibs, roofitcore-root4-shlibs
Replaces: roofitcore-shlibs, roofitcore4-shlibs, roofitcore-root3-shlibs, roofitcore-root4-shlibs
InstallScript: <<
mkdir -p %i/lib/root
install -m 644 tmp/libRooFitCore.*.dylib %i/lib/root
ln -s libRooFitCore.1.9.dylib %i/lib/root/libRooFitCore.1.dylib
<<
Shlibs: <<
%p/lib/root/libRooFitCore.1.dylib 1.0.0 roofitcore-%type_raw[root_version] (>=1.00.03-1)
<<
<<
<<

roofitcore stable port .patch

--- RooFitCore.orig/GNUmakefile.standalone 2005-04-04 07:59:12.000000000 -0700
+++ RooFitCore.new/GNUmakefile.standalone 2005-06-08 17:46:17.000000000 -0700
@@ -32,6 +32,7 @@
# lib - make libRooFitCore.a #
# shlib - make libRooFitCore.so #
# winlib - make libRooFitCore.dll (for CygWin) #
+ # dylib - make libRooFitCore.dylib (for Mac OS X) #
# clean - delete all intermediate and final build objects #
# #
#############################################################################
@@ -49,13 +50,15 @@

# Internal configuration
PACKAGE=RooFitCore
-LD_LIBRARY_PATH:=$(ROOTSYS)/lib:$(LD_LIBRARY_PATH)
+MAJOR = $(shell echo @VERSION@ | awk -F "." '{printf("%d",$$1)}')
+MINOR = $(shell echo @VERSION@ | awk -F "." '{printf("%d",$$2)}')
+REVIS = $(shell echo @VERSION@ | awk -F "." '{printf("%d",$$3)}')
+
OBJDIR=$(WORKDIR)/objects/
INCDIR=$(WORKDIR)/$(PACKAGE)/
VPATH=$(INCDIR) $(OBJDIR)
#LDFLAGS = -shared
-INCLUDES += -I.. -I$(WORKDIR)/ -I$(ROOTSYS)/include
-ROOTSYS ?= ERROR_RootSysIsNotDefined
+INCLUDES += -I.. -I$(WORKDIR)/ $(shell root-config --cflags)
RDLLIST = $(filter-out $(PACKAGE)_LinkDef.rdl,$(wildcard *.rdl))
SKIPLIST = makedocs.cc RooIntegratorTest.cc
CINTFILE = $(PACKAGE)Cint.cc
@@ -63,9 +66,10 @@
LIBFILE = $(LIBDIR)/lib$(PACKAGE).a
SHLIBFILE = $(LIBDIR)/lib$(PACKAGE).so
DLLIBFILE = $(LIBDIR)/lib$(PACKAGE).dll
+DYLIBFILE = $(LIBDIR)/lib$(PACKAGE).dylib
UNAME = $(shell uname)

-default: shlib
+default: dylib

# List of all includes files to copy from rdl
HHLIST=$(patsubst %.rdl,%.hh,$(RDLLIST))
@@ -104,9 +108,7 @@
@mkdir -p $(OBJDIR)
@cp *.hh $(INCDIR)
@echo "Running rootcint"
- @ROOTSYS=$(ROOTSYS)
- @export ROOTSYS
- @cd $(INCDIR) ; $(ROOTSYS)/bin/rootcint -f $(CINTFILE) -c $(INCLUDES) $(HHLIST) $(PACKAGE)_LinkDef.hh
+ @cd $(INCDIR) ; rootcint -f $(CINTFILE) -c $(INCLUDES) $(HHLIST) $(PACKAGE)_LinkDef.hh
@echo "Compiling $(CINTFILE)"
@$(CC) $(CCFLAGS) -c $(INCDIR)/$(CINTFILE) -o $(OBJDIR)/$(CINTOBJ) $(INCLUDES)

@@ -121,7 +123,7 @@
$(SHLIBFILE): $(OLIST) $(patsubst %.cc,%.o,$(OBJDIR)/$(CINTFILE))
@echo "Making $(SHLIBFILE)"
@rm -f $(SHLIBFILE)
- @$(CC) $(addprefix $(OBJDIR)/,$(OLIST) $(patsubst %.cc,%.o,$(CINTFILE))) -shared -o $(SHLIBFILE)
+ @$(CC) $(addprefix $(OBJDIR)/,$(OLIST) $(patsubst %.cc,%.o,$(CINTFILE))) -bundle -undefined dynamic_lookup -o $(SHLIBFILE)

# Rule to combine objects into a windows shared library
$(DLLIBFILE): $(OLIST) $(patsubst %.cc,%.o,$(OBJDIR)/$(CINTFILE))
@@ -129,17 +131,29 @@
@rm -f $(DLLIBFILE)
$(CC) -Wl,--export-all-symbols -Wl,--export-dynamic -Wl,--enable-auto-import -Wl,-Bdynamic -shared --enable-auto-image-base -Wl,-soname -o $(DLLIBFILE) -Wl,--whole-archive $(addprefix $(OBJDIR)/,$(OLIST) $(patsubst %.cc,%.o,$(CINTFILE))) -Wl,--no-whole-archive -L$(ROOTSYS)/lib -lCore -lCint -lHist -lGraf -lGraf3d -lTree -lRint -lPostscript -lMatrix -lMinuit -lPhysics -lHtml -lm

+# Rule to combine objects into a Mac OS X shared library
+$(DYLIBFILE): $(OLIST) $(patsubst %.cc,%.o,$(OBJDIR)/$(CINTFILE))
+ @echo "Making $(SHLIBFILE)"
+ @rm -f $(SHLIBFILE)
+ @$(CC) $(addprefix $(OBJDIR)/,$(OLIST) $(patsubst %.cc,%.o,$(CINTFILE))) \
+ -dynamiclib -single_module -undefined dynamic_lookup \
+ -o $(subst .dylib,.$(MAJOR).$(MINOR).dylib,$@) \
+ -install_name $(subst $(LIBDIR),@PREFIX@/lib/root,$(subst .dylib,.$(MAJOR).dylib,$@)) \
+ -compatibility_version $(MAJOR) -current_version $(MAJOR).$(MINOR).$(REVIS) \
+
# Useful build targets
lib: $(LIBFILE)
shlib: $(SHLIBFILE)
winlib: $(DLLIBFILE)
+dylib: $(DYLIBFILE) $(SHLIBFILE)
clean:
rm -f $(OBJDIR)/*
rm -f $(INCDIR)/*
rm -f $(LIBFILE)
rm -f $(SHLIBFILE)
rm -f $(DLLIBFILE)
+ rm -f $(DYLIBFILE)

-.PHONY : winlib shlib lib default clean
+.PHONY : dylib winlib shlib lib default clean

-include $(addprefix $(INCDIR)/,$(DLIST))

roofitcore _unstable_ port .patch