2000-02-10 20:09:59 -05:00
|
|
|
# $OpenBSD: Makefile,v 1.5 2000/02/11 01:10:01 espie Exp $
|
1998-11-26 12:22:52 -05:00
|
|
|
|
|
|
|
DISTNAME= prc-tools.0.5.0
|
|
|
|
PKGNAME= prc-tools-0.5.0
|
|
|
|
CATEGORIES= devel pilot
|
|
|
|
MASTER_SITES= ftp://ryeham.ee.ryerson.ca/pub/PalmOS/ \
|
|
|
|
${MASTER_SITE_GNU}
|
|
|
|
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} \
|
|
|
|
binutils-2.7.tar.gz gdb-4.16.tar.gz gcc-2.7.2.2.tar.gz
|
2000-02-10 19:37:15 -05:00
|
|
|
NEED_VERSION= 1.191
|
1998-11-26 12:22:52 -05:00
|
|
|
|
|
|
|
MAINTAINER= angelos@openbsd.org
|
|
|
|
|
|
|
|
# install things in ${LOCALBASE}/pilot to avoid conflicts
|
|
|
|
PREFIX= ${LOCALBASE}/pilot
|
2000-02-10 19:37:15 -05:00
|
|
|
WRKDIST= ${WRKDIR}/${PKGNAME}
|
1998-11-26 12:22:52 -05:00
|
|
|
|
|
|
|
USE_PERL5= yes
|
|
|
|
ALL_TARGET= gnutools all
|
|
|
|
STRIP= build-prc \
|
|
|
|
m68k-palmos-coff-ar \
|
|
|
|
m68k-palmos-coff-as \
|
|
|
|
m68k-palmos-coff-c++filt \
|
|
|
|
m68k-palmos-coff-gasp \
|
|
|
|
m68k-palmos-coff-gcc \
|
|
|
|
m68k-palmos-coff-gdb \
|
|
|
|
m68k-palmos-coff-ld \
|
|
|
|
m68k-palmos-coff-nm \
|
|
|
|
m68k-palmos-coff-obj-res \
|
|
|
|
m68k-palmos-coff-objcopy \
|
|
|
|
m68k-palmos-coff-objdump \
|
|
|
|
m68k-palmos-coff-ranlib \
|
|
|
|
m68k-palmos-coff-size \
|
|
|
|
m68k-palmos-coff-strings \
|
|
|
|
m68k-palmos-coff-strip \
|
|
|
|
pilrc \
|
|
|
|
txt2bitm
|
|
|
|
|
|
|
|
# check for "-m486" and bomb out if the user has it
|
|
|
|
pre-build:
|
2000-02-10 20:09:59 -05:00
|
|
|
@if echo ${CFLAGS} | grep -- "-m486" > /dev/null ; then \
|
|
|
|
echo "ERROR: You have \"-m486\" defined some-" ; \
|
|
|
|
echo " where, either in /etc/make.conf" ; \
|
|
|
|
echo " or in the CFLAGS environment" ; \
|
|
|
|
echo " variable. This will cause this" ; \
|
|
|
|
echo " port to not build properly. Please" ; \
|
|
|
|
echo " fix this and re-run make." ; \
|
1998-11-26 12:22:52 -05:00
|
|
|
exit 1 ; \
|
|
|
|
else \
|
2000-02-10 20:09:59 -05:00
|
|
|
echo "Your environment looks OK." ; \
|
1998-11-26 12:22:52 -05:00
|
|
|
fi
|
|
|
|
|
|
|
|
# after we apply freebsd patches, apply prc-tool's patches to gcc/gdb/...
|
|
|
|
post-patch:
|
|
|
|
(cd ${WRKSRC} ; make patch)
|
|
|
|
|
|
|
|
# the info files are redundant
|
|
|
|
post-install:
|
2000-02-10 20:09:59 -05:00
|
|
|
rm -rf ${PREFIX}/info
|
1998-11-26 12:22:52 -05:00
|
|
|
(cd ${PREFIX}/bin; strip ${STRIP})
|
2000-02-10 20:09:59 -05:00
|
|
|
@echo ""
|
|
|
|
@echo " To upgrade to the PalmOS3 SDK, download "
|
|
|
|
@echo " http://palm.3com.com/devzone/tools/winsdk30.zip "
|
|
|
|
@echo " and after unzipping it, move the directory 'Incs' "
|
|
|
|
@echo " to ${PREFIX}/m68k-palmos-coff/include/, under "
|
|
|
|
@echo " the name 'PalmOS3'. Then delete the link "
|
|
|
|
@echo " PalmOS -> PalmOS2, and make a symbolic link "
|
|
|
|
@echo " PalmOS -> PalmOS3 in the same directory. "
|
|
|
|
@echo ""
|
|
|
|
@echo " You will need to rename the file PalmOS3/UI/Event.H "
|
|
|
|
@echo " to PalmOS3/UI/Event.h, and remove the nested "
|
|
|
|
@echo " comment at the begining of PalmOS3/UI/Category.h "
|
|
|
|
@echo " Also, you should edit PalmOS3/System/Unix/unix_string.h "
|
|
|
|
@echo " and change the include from StdArg.h to stdarg.h "
|
|
|
|
@echo ""
|
1998-11-26 12:22:52 -05:00
|
|
|
.include <bsd.port.mk>
|