diff options
author | Jun Kuriyama <kuriyama@FreeBSD.org> | 1998-05-12 14:04:52 +0000 |
---|---|---|
committer | Jun Kuriyama <kuriyama@FreeBSD.org> | 1998-05-12 14:04:52 +0000 |
commit | c474f947d2ae01e028eef3b9e7cd5a80f942bb24 (patch) | |
tree | b0b24a58860ca54b453c7b0fc3aeb38ea2823d22 /devel/amulet/files | |
parent | Add reference to the rpm2cpio converter written in perl. You still (diff) |
A free C++ GUI library.
Submitted by: Filip Bovyn <bovynf@awe.be>
PR: ports/4192
Notes
Notes:
svn path=/head/; revision=10957
Diffstat (limited to 'devel/amulet/files')
-rw-r--r-- | devel/amulet/files/Makefile.vars.gcc.FreeBSD | 61 | ||||
-rw-r--r-- | devel/amulet/files/patch-aa | 47 | ||||
-rw-r--r-- | devel/amulet/files/patch-ab | 11 | ||||
-rw-r--r-- | devel/amulet/files/sample.Makefile | 32 |
4 files changed, 151 insertions, 0 deletions
diff --git a/devel/amulet/files/Makefile.vars.gcc.FreeBSD b/devel/amulet/files/Makefile.vars.gcc.FreeBSD new file mode 100644 index 000000000000..31407b989ebc --- /dev/null +++ b/devel/amulet/files/Makefile.vars.gcc.FreeBSD @@ -0,0 +1,61 @@ + +CC = g++ +LD = ld + +## +## Parameters for Amulet programs +## + +# X11 directories, uncomment and set if necessary +X11_INC = -I/usr/X11R6/include +X11_LIB = -L/usr/X11R6/lib + +# directory where Amulet will (eventually) be installed +# defaults to its current location (AMULET_DIR) +AMULET_ROOT=$(PREFIX)/share/amulet + +# compiler flags for Amulet programs +AM_CFLAGS = -I$(AMULET_DIR)/include $(X11_INC) -Wall \ + -DGCC -DMEMORY + +# libraries needed by Amulet (interactors needs math library) +AM_LIBS = $(X11_LIB) -lX11 -lm + + +## +## Parameters for the Amulet library +## + +# additional compiler flags for development version +AM_DEVELOP = -O2 -DDEBUG -g -DAMULET2_CONVERSION + +# additional compiler flags for release version +AM_RELEASE = -O2 -DAMULET2_CONVERSION + +# additional compiler flags for optimized version with inspector and debugging enabled +AM_INHOUSE = -DDEBUG -g + +# additional compiler flags for optimized version with inspector but no debugging symbols +AM_NODEBUGSYM = -O2 -DDEBUG -DAMULET2_CONVERSION + +# Flags used to build the sample programs +AM_SAMPLE_FLAGS = $(AM_NODEBUGSYM) + +# Default set of extra compiler flags +OP = $(AM_NODEBUGSYM) + +# extra link flags for library test programs +AM_LIB_LDFLAGS = + +# Makefile identifying the gem files for this platform +AM_GEM_SOURCE = Makefile.gem.X + +# Makefile that knows how to make the Amulet library for this platform +AM_SHARED_LIB_MAKE = Makefile.lib.gcc.shared +AM_STATIC_LIB_MAKE = Makefile.lib.unix.static + +# Set of library variants for make libs +# Note: The develop-shared library will also be build when +# we build the samples programs. If we add it here it would +# be build twice. +AM_LIBS_TO_MAKE = release-shared release-static diff --git a/devel/amulet/files/patch-aa b/devel/amulet/files/patch-aa new file mode 100644 index 000000000000..071d2594da0b --- /dev/null +++ b/devel/amulet/files/patch-aa @@ -0,0 +1,47 @@ +--- bin/Makefile.lib.gcc.shared.orig Mon Jun 23 21:37:02 1997 ++++ bin/Makefile.lib.gcc.shared Mon May 11 22:48:44 1998 +@@ -27,6 +27,7 @@ + echo "*** or upgrade to gcc 2.7.0 or later." ; \ + echo "" ; false ; \ + } fi ++ @touch check_gcc_version + + FULL_AMULET_DEPENDENCIES = \ + $(OPAL_MODULE) $(INTER_MODULE) $(DEBUG_MODULE) \ +@@ -49,26 +50,22 @@ + $(AMULET_LIB):: $(AMULET_LIB_DEPENDENCIES) + $(SHARED_CC) $(AM_CFLAGS) $(FULL_AMULET_DEPENDENCIES) \ + -o $(LIB_DIR)/$(AMULET_lib).so.$(V) +- cd $(LIB_DIR); for p in $(AMULET_lib).sl $(AMULET_lib).so ; \ +- do rm -f $$p ; ln -s $(AMULET_lib).so.$(V) $$p ; done ++ touch $(AMULET_LIB) + + $(GEM_LIB): $(GEM_LIB_DEPENDENCIES) + $(SHARED_CC) $(AM_CFLAGS) $(FULL_GEM_DEPENDENCIES) \ + -o $(LIB_DIR)/$(GEM_lib).so.$(V) +- cd $(LIB_DIR); for p in $(GEM_lib).sl $(GEM_lib).so ; \ +- do rm -f $$p ; ln -s $(GEM_lib).so.$(V) $$p ; done ++ touch $(GEM_LIB) + + $(ORE_LIB): $(ORE_LIB_DEPENDENCIES) + $(SHARED_CC) $(AM_CFLAGS) $(FULL_ORE_DEPENDENCIES) \ + -o $(LIB_DIR)/$(ORE_lib).so.$(V) +- cd $(LIB_DIR); for p in $(ORE_lib).sl $(ORE_lib).so ; \ +- do rm -f $$p ; ln -s $(ORE_lib).so.$(V) $$p ; done ++ touch $(ORE_LIB) + + $(UTILS_LIB): $(UTILS_LIB_DEPENDENCIES) + $(SHARED_CC) $(AM_CFLAGS) $(FULL_UTILS_DEPENDENCIES) \ + -o $(LIB_DIR)/$(UTILS_lib).so.$(V) +- cd $(LIB_DIR); for p in $(UTILS_lib).sl $(UTILS_lib).so ; \ +- do rm -f $$p ; ln -s $(UTILS_lib).so.$(V) $$p ; done ++ touch $(UTILS_LIB) + + + # Use these declarations to compile tests against monolithic shared libs. +@@ -91,4 +88,4 @@ + # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # + + .cc.o: +- $(CC) $(CFLAGS) -c $< -o $@ ++ $(CC) $(CFLAGS) -fpic -c $< -o $@ diff --git a/devel/amulet/files/patch-ab b/devel/amulet/files/patch-ab new file mode 100644 index 000000000000..7c47b0c20abc --- /dev/null +++ b/devel/amulet/files/patch-ab @@ -0,0 +1,11 @@ +--- bin/Makefile.orig Thu May 8 18:40:57 1997 ++++ bin/Makefile Sat Jul 26 22:01:27 1997 +@@ -160,7 +160,7 @@ + # can also build other versions of the Amulet library: optimized/static/combo + # + +-AS_DEVELOP = OP="$(AM_DEVELOP)" LIB_MODIFIER="" ++AS_DEVELOP = OP="$(AM_NODEBUGSYM)" LIB_MODIFIER="" + AS_RELEASE = OP="$(AM_RELEASE)" LIB_MODIFIER=-release + AS_INHOUSE = OP="$(AM_INHOUSE)" LIB_MODIFIER=-inhouse + AS_STATIC = LIB_MAKE="$(AM_STATIC_LIB_MAKE)" diff --git a/devel/amulet/files/sample.Makefile b/devel/amulet/files/sample.Makefile new file mode 100644 index 000000000000..dfc6de2594e5 --- /dev/null +++ b/devel/amulet/files/sample.Makefile @@ -0,0 +1,32 @@ + +AM_DEVELOP= -O2 -DDEBUG -g -DAMULET2_CONVERSION +AM_RELEASE= -O2 -DAMULET2_CONVERSION +AM_NODEBUGSYM= -O2 -DDEBUG -DAMULET2_CONVERSION + +## The default build has two parameters: OP and LIB_MODIFIER +## used to specify the variant of the Amulet library that will be used +## OP chooses one of the sets of compiler flags: +## AM_DEVELOP, AM_RELEASE, AM_INHOUSE, AM_NODEBUGSYM +OP=$(AM_DEVELOP) + +## LIB_MODIFIER is appended to library filename to indicate particular +## OP choice: blank for AM_DEVELOP, -release for AM_RELEASE +LIB_MODIFIER= + +## To link with the release library, invoke make as follows +## Make OP='$(AM_RELEASE)' LIB_MODIFIER=-release + +CFLAGS+= -I$(X11BASE)/include -DGCC -DMEMORY +LDFLAGS+= -lamulet$(LIB_MODIFIER) -lstdc++ -lg++ \ + -L$(X11BASE)/lib -lX11 -lm + +PROG= xxxx +SRCS= xxxx.cc + +xxxx: xxxx.o + $(CC) -o xxxx $(.ALLSRC) $(LDFLAGS) + +xxxx.o: xxxx.cc + $(CXX) -c $(CXXFLAGS) $(OP) $(.IMPSRC) +clean: + -rm -f *.o xxxx |