openbsd-ports/devel/prc-tools/patches/patch-prc-tools-0_5_0_Makefile
pvalchev c86624d530 - First apply the distribution patches, and remove the old
.orig leftovers before applying the local ones.
- Rename patches to make update-patches work.
prc-tools is still broken.  new version 2.0 has binutils issues
2001-08-22 18:30:59 +00:00

69 lines
2.6 KiB
Plaintext

$OpenBSD: patch-prc-tools-0_5_0_Makefile,v 1.1 2001/08/22 18:30:59 pvalchev Exp $
--- prc-tools-0.5.0/Makefile.orig Thu Jul 10 05:14:12 1997
+++ prc-tools-0.5.0/Makefile Wed Aug 22 12:23:05 2001
@@ -2,8 +2,7 @@ CC = gcc
CFLAGS = -O2 -g
# -g -DDEBUG
-PREFIX = /usr/local/gnu
-HOST = i386-slackware-linux
+PREFIX = /usr/local/pilot
TARGET-NAME = m68k-palmos-coff
EXEEXT =
@@ -15,15 +14,15 @@ BINUTILSDIR = ../binutils-2.7
GCCDIR = ../gcc-2.7.2.2
GDBDIR = ../gdb-4.16
-GNUARCH = /cdrom/gnu
+GNUARCH = /usr/ports/distfiles
-TTY = /dev/cua0
+TTY = /dev/pilot
M68K_BFD = $(PREFIX)/lib/lib$(TARGET-NAME)-bfd.a
LBFD = `if [ -f $(M68K_BFD) ]; \
then echo $(M68K_BFD); \
- else echo "-L$(PREFIX)/lib -lbfd"; fi` -liberty
+ else echo "-L$(PREFIX)/lib -lbfd"; fi` -L$(PREFIX)/lib -liberty
LIBCDIR = libc.0.1.2
LIBMDIR = libmf.0.1.2
@@ -70,9 +69,9 @@ install: all dummy install-man
cp -f build-prc$(EXEEXT) $(PREFIX)/$(TARGET-NAME)/bin
cp -f stubgen $(PREFIX)/$(TARGET-NAME)/bin
cp -f exportlist $(PREFIX)/$(TARGET-NAME)/bin
- -cp -raf PalmOS1 $(PREFIX)/$(TARGET-NAME)/include
- -cp -raf PalmOS2 $(PREFIX)/$(TARGET-NAME)/include
- ln -snf $(PREFIX)/$(TARGET-NAME)/include/PalmOS2 $(PREFIX)/$(TARGET-NAME)/include/PalmOS
+ -cp -rf PalmOS1 $(PREFIX)/$(TARGET-NAME)/include
+ -cp -rf PalmOS2 $(PREFIX)/$(TARGET-NAME)/include
+ ln -sf $(PREFIX)/$(TARGET-NAME)/include/PalmOS2 $(PREFIX)/$(TARGET-NAME)/include/PalmOS
ln -sf $(PREFIX)/$(TARGET-NAME)/bin/pilrc$(EXEEXT) $(PREFIX)/bin/pilrc$(EXEEXT)
ln -sf $(PREFIX)/$(TARGET-NAME)/bin/txt2bitm$(EXEEXT) $(PREFIX)/bin/txt2bitm$(EXEEXT)
ln -sf $(PREFIX)/$(TARGET-NAME)/bin/obj-res$(EXEEXT) $(PREFIX)/bin/$(TARGET-NAME)-obj-res$(EXEEXT)
@@ -156,19 +155,19 @@ stamp.winpatch:
gnutools: stamp.binutils stamp.gcc stamp.gdb
stamp.binutils:
- cd $(BINUTILSDIR) ; ./configure --host=$(HOST) --prefix=$(PREFIX) --target=$(TARGET-NAME)
+ cd $(BINUTILSDIR) ; ./configure --prefix=$(PREFIX) --target=$(TARGET-NAME) -host=$(MACHINE_ARCH)-unknown-freebsd
cd $(BINUTILSDIR) ; make
cd $(BINUTILSDIR) ; make install
touch $@
stamp.gcc:
- cd $(GCCDIR) ; ./configure --host=$(HOST) --prefix=$(PREFIX) --target=$(TARGET-NAME)
+ cd $(GCCDIR) ; ./configure --prefix=$(PREFIX) --target=$(TARGET-NAME) --host=$(MACHINE_ARCH)-unknown-freebsd
cd $(GCCDIR) ; make LANGUAGES=c
cd $(GCCDIR) ; make LANGUAGES=c install
touch $@
stamp.gdb:
- cd $(GDBDIR) ; ./configure --host=$(HOST) --prefix=$(PREFIX) --target=$(TARGET-NAME)
+ cd $(GDBDIR) ; ./configure --prefix=$(PREFIX) --target=$(TARGET-NAME) --host=$(MACHINE_ARCH)-unknown-freebsd
cd $(GDBDIR) ; make
cd $(GDBDIR) ; make install
touch $@