aboutsummaryrefslogtreecommitdiffstats
path: root/lang/o2c/files
diff options
context:
space:
mode:
authortg <tg@FreeBSD.org>1998-06-16 20:49:03 +0800
committertg <tg@FreeBSD.org>1998-06-16 20:49:03 +0800
commit6c10ab7aee974d0b7e3c68424bc5ae57fd209256 (patch)
tree597ec44eb5b82c51c93611c2f5142db9f0f2f1f4 /lang/o2c/files
parent494c2b0b71eb44e02070442ddca1242cf7fc3c56 (diff)
downloadfreebsd-ports-gnome-6c10ab7aee974d0b7e3c68424bc5ae57fd209256.tar.gz
freebsd-ports-gnome-6c10ab7aee974d0b7e3c68424bc5ae57fd209256.tar.zst
freebsd-ports-gnome-6c10ab7aee974d0b7e3c68424bc5ae57fd209256.zip
Don't install files into the user's home directory.
Diffstat (limited to 'lang/o2c/files')
-rw-r--r--lang/o2c/files/patch-aa20
1 files changed, 13 insertions, 7 deletions
diff --git a/lang/o2c/files/patch-aa b/lang/o2c/files/patch-aa
index 24c0732a3dee..f63ba0f5dc4e 100644
--- a/lang/o2c/files/patch-aa
+++ b/lang/o2c/files/patch-aa
@@ -1,6 +1,7 @@
--- Makefile.orig Fri Mar 28 13:15:40 1997
-+++ Makefile Wed Dec 3 17:21:31 1997
-@@ -5,8 +5,7 @@
++++ Makefile Tue Jun 16 14:28:16 1998
+@@ -4,10 +4,9 @@
+ # in "compiler/OMachine.Mod" accordingly.
# where to install the binaries?
-BIN = $(HOME)/bin
@@ -12,17 +13,24 @@
+LIBPATH = ${PREFIX}/lib/o2c-1.16
# you shouldn't have to change anything below
-@@ -29,5 +28,5 @@
+
+@@ -28,7 +27,7 @@
+ fi
-rm -f o2c_stage0 o2c_stage1 o2c_stage2 o2c all
# check the hardcoded type sizes against the C types
- gcc -o sizes system/sizes.c
+ gcc -o sizes system/sizes.c -Isystem
./sizes
# build compiler executable from the distributed C sources
-@@ -63,5 +62,11 @@
+ $(MAKE) -f makefile_o2c CFLAGS='$(CFLAGS)' LDFLAGS='$(LDFLAGS)' build
+@@ -62,26 +61,31 @@
+ ./o2c -MORv --redir system/o2c.red.template UpdateLib
mv o2c o2c_stage2
-install: all
+- if [ ! -f $(HOME)/.o2c.red ]; then \
+- cp system/o2c.red.template $(HOME)/.o2c.red; \
+- fi
+install.man:
+ for i in $(COMMANDS) ; do \
+ cp docs/$$i.1 $(MANPATH)/man1/$$i.1 ; \
@@ -30,9 +38,6 @@
+ done
+
+install: all install.man
- if [ ! -f $(HOME)/.o2c.red ]; then \
- cp system/o2c.red.template $(HOME)/.o2c.red; \
-@@ -69,18 +74,20 @@
chmod -R ugo+rX *
-rm -f o2c
- ln o2c_stage2 o2c
@@ -61,3 +66,4 @@
+ -rm -f sizes
-rm -f o2c_stage0 o2c_stage1 o2c_stage2 o2c all UpdateLib
-rm -rf obj.distrib
+ -for i in $(COMMANDS) UpdateLib ; do rm -f $$i obj/_$$i.[co] ; done