aboutsummaryrefslogtreecommitdiff
path: root/graphics/aero
diff options
context:
space:
mode:
authorEric L. Hernes <erich@FreeBSD.org>1996-10-16 17:48:16 +0000
committerEric L. Hernes <erich@FreeBSD.org>1996-10-16 17:48:16 +0000
commit32ee9f538d54eceff3c305911d743b6603a4e1bb (patch)
tree368778db379e13755a9c27f953e5d24090ac951d /graphics/aero
parentedf6d352a289b694c0c86cf9b3446b94d5a2b25c (diff)
downloadports-32ee9f538d54eceff3c305911d743b6603a4e1bb.tar.gz
ports-32ee9f538d54eceff3c305911d743b6603a4e1bb.zip
link dynamically, this shrinks the binary from ~1.3 Meg to ~300k
Requested by: satoshi, of course.
Notes
Notes: svn path=/head/; revision=4012
Diffstat (limited to 'graphics/aero')
-rw-r--r--graphics/aero/files/patch-aa181
1 files changed, 79 insertions, 102 deletions
diff --git a/graphics/aero/files/patch-aa b/graphics/aero/files/patch-aa
index 73f80cc51524..388e1703e463 100644
--- a/graphics/aero/files/patch-aa
+++ b/graphics/aero/files/patch-aa
@@ -1,102 +1,79 @@
-*** Makefile.orig Fri Nov 4 06:06:34 1994
---- Makefile Mon Aug 28 07:34:47 1995
-***************
-*** 21,28 ****
- # Set path where you want to install xaero and it's application-default
- # file.
-
-! XAEROBIN = /usr/local/X11R5/bin # or local: $HOME/bin
-! XAEROAPPL = /usr/local/X11R5/lib/app-defaults # or local: $HOME/app-defaults
-
-
- ###########################################################################
---- 21,28 ----
- # Set path where you want to install xaero and it's application-default
- # file.
-
-! XAEROBIN = ${PREFIX}/bin # or local: $HOME/bin
-! XAEROAPPL = ${PREFIX}/lib/X11/app-defaults # or local: $HOME/app-defaults
-
-
- ###########################################################################
-***************
-*** 39,55 ****
- #
- RM = rm -f
- ECHO = echo
-! CP = cp -i
-
-
- ###########################################################################
- # Path-definitons for X11R5 and FWF
-
-! XINCLUDE = /usr/local/X11R5/include
-! XLIB = /usr/local/X11R5/lib
-! FWFINCLUDE = ../../FWF/FWF/include
-! FWFLIB = ../../FWF/FWF/lib.$(HOSTTYPE)
-! XPMLIB = ../../FWF/xpm-3.4a/lib.$(HOSTTYPE)
-
-
- ###########################################################################
---- 39,55 ----
- #
- RM = rm -f
- ECHO = echo
-! CP = cp
-
-
- ###########################################################################
- # Path-definitons for X11R5 and FWF
-
-! XINCLUDE = /usr/X11R6/include
-! XLIB = /usr/X11R6/lib
-! FWFINCLUDE = . #../../FWF/FWF/include
-! FWFLIB = -lfwf # ../../FWF/FWF/lib.$(HOSTTYPE)
-! XPMLIB = -lXpm #../../FWF/xpm-3.4a/lib.$(HOSTTYPE)
-
-
- ###########################################################################
-***************
-*** 92,99 ****
- xaero: $(EDITOROBJS) $(ANZEIGEOBJS) $(FSBLIBNAME)
- $(CC) $(STATIC) $(DEBUG) -o xaero $(EDITOROBJS) $(ANZEIGEOBJS) \
- -L. -L$(FWFLIB) -L$(XPMLIB) -L$(XLIB) \
-! -lfwf -lXaw -lXmu -lXt -lXext -lXpm -lX11 -l$(FSBLIB) -lm
-!
-
- ###########################################################################
- # example files generation (optional)
---- 92,98 ----
- xaero: $(EDITOROBJS) $(ANZEIGEOBJS) $(FSBLIBNAME)
- $(CC) $(STATIC) $(DEBUG) -o xaero $(EDITOROBJS) $(ANZEIGEOBJS) \
- -L. -L$(FWFLIB) -L$(XPMLIB) -L$(XLIB) \
-! -lfwf -lXaw -lXmu -lXt -lXext -lXpm -lX11 -l$(FSBLIB) -lSM -lICE -lm
-
- ###########################################################################
- # example files generation (optional)
-***************
-*** 118,124 ****
---- 117,139 ----
-
- copyFilesToDestination::
- $(CP) xaero $(XAEROBIN)
-+ strip $(XAEROBIN)/xaero
-+ [ -d $(XAEROAPPL) ] || mkdir -p $(XAEROAPPL)
-+ [ -d ${PREFIX}/lib/X11/xaero ] || mkdir -p ${PREFIX}/lib/X11/xaero
- $(CP) ../app-defaults/XAero $(XAEROAPPL)
-+ $(CP) ../scripts/povsubst $(XAEROBIN)
-+ $(CP) ../scripts/rayclear $(XAEROBIN)
-+ $(CP) ../scripts/raystart $(XAEROBIN)
-+ $(CP) ../scripts/raystat $(XAEROBIN)
-+ sed 's:__XAERO_LIB_PATH__:${PREFIX}/lib/X11/xaero:' ../scripts/raymany >$(XAEROBIN)/raymany
-+ chmod +x $(XAEROBIN)/raymany
-+ $(CP) ../povray-include/FILELIST.povray-include ${PREFIX}/lib/X11/xaero
-+ $(CP) ../povray-include/aeromat2.inc ${PREFIX}/lib/X11/xaero
-+ $(CP) ../povray-include/aerop1materials.inc ${PREFIX}/lib/X11/xaero
-+ $(CP) ../povray-include/aeropov1.inc ${PREFIX}/lib/X11/xaero
-+ $(CP) ../povray-include/aeropov2.inc ${PREFIX}/lib/X11/xaero
-+ mkdir -p ${PREFIX}/lib/X11/xaero/examples
-+ $(CP) ../examples/* ${PREFIX}/lib/X11/xaero/examples
-
- all::
- @make help
+--- Makefile.orig Fri Nov 4 08:06:34 1994
++++ Makefile Wed Oct 16 12:31:20 1996
+@@ -21,8 +21,8 @@
+ # Set path where you want to install xaero and it's application-default
+ # file.
+
+-XAEROBIN = /usr/local/X11R5/bin # or local: $HOME/bin
+-XAEROAPPL = /usr/local/X11R5/lib/app-defaults # or local: $HOME/app-defaults
++XAEROBIN = ${PREFIX}/bin # or local: $HOME/bin
++XAEROAPPL = ${PREFIX}/lib/X11/app-defaults # or local: $HOME/app-defaults
+
+
+ ###########################################################################
+@@ -32,24 +32,24 @@
+ DEBUG = # -g if you want some debug-information
+ OPTIMIZE = -O2 -DNODEBUG
+ LD = ld
+-STATIC = -static
++STATIC =
+
+
+ ###########################################################################
+ #
+ RM = rm -f
+ ECHO = echo
+-CP = cp -i
++CP = cp
+
+
+ ###########################################################################
+ # Path-definitons for X11R5 and FWF
+
+-XINCLUDE = /usr/local/X11R5/include
+-XLIB = /usr/local/X11R5/lib
+-FWFINCLUDE = ../../FWF/FWF/include
+-FWFLIB = ../../FWF/FWF/lib.$(HOSTTYPE)
+-XPMLIB = ../../FWF/xpm-3.4a/lib.$(HOSTTYPE)
++XINCLUDE = /usr/X11R6/include
++XLIB = /usr/X11R6/lib
++FWFINCLUDE = . #../../FWF/FWF/include
++FWFLIB = -lfwf # ../../FWF/FWF/lib.$(HOSTTYPE)
++XPMLIB = -lXpm #../../FWF/xpm-3.4a/lib.$(HOSTTYPE)
+
+
+ ###########################################################################
+@@ -92,8 +92,7 @@
+ xaero: $(EDITOROBJS) $(ANZEIGEOBJS) $(FSBLIBNAME)
+ $(CC) $(STATIC) $(DEBUG) -o xaero $(EDITOROBJS) $(ANZEIGEOBJS) \
+ -L. -L$(FWFLIB) -L$(XPMLIB) -L$(XLIB) \
+- -lfwf -lXaw -lXmu -lXt -lXext -lXpm -lX11 -l$(FSBLIB) -lm
+-
++ -lfwf -lXaw -lXmu -lXt -lXext -lXpm -lX11 -l$(FSBLIB) -lSM -lICE -lm
+
+ ###########################################################################
+ # example files generation (optional)
+@@ -118,7 +117,23 @@
+
+ copyFilesToDestination::
+ $(CP) xaero $(XAEROBIN)
++ strip $(XAEROBIN)/xaero
++ [ -d $(XAEROAPPL) ] || mkdir -p $(XAEROAPPL)
++ [ -d ${PREFIX}/lib/X11/xaero ] || mkdir -p ${PREFIX}/lib/X11/xaero
+ $(CP) ../app-defaults/XAero $(XAEROAPPL)
++ $(CP) ../scripts/povsubst $(XAEROBIN)
++ $(CP) ../scripts/rayclear $(XAEROBIN)
++ $(CP) ../scripts/raystart $(XAEROBIN)
++ $(CP) ../scripts/raystat $(XAEROBIN)
++ sed 's:__XAERO_LIB_PATH__:${PREFIX}/lib/X11/xaero:' ../scripts/raymany >$(XAEROBIN)/raymany
++ chmod +x $(XAEROBIN)/raymany
++ $(CP) ../povray-include/FILELIST.povray-include ${PREFIX}/lib/X11/xaero
++ $(CP) ../povray-include/aeromat2.inc ${PREFIX}/lib/X11/xaero
++ $(CP) ../povray-include/aerop1materials.inc ${PREFIX}/lib/X11/xaero
++ $(CP) ../povray-include/aeropov1.inc ${PREFIX}/lib/X11/xaero
++ $(CP) ../povray-include/aeropov2.inc ${PREFIX}/lib/X11/xaero
++ mkdir -p ${PREFIX}/lib/X11/xaero/examples
++ $(CP) ../examples/* ${PREFIX}/lib/X11/xaero/examples
+
+ all::
+ @make help