2003-06-05 15:17:06 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.31 2003/06/05 19:17:06 pvalchev Exp $
|
2001-05-05 20:12:42 -04:00
|
|
|
|
2002-04-01 17:14:59 -05:00
|
|
|
BROKEN= "attempts to install during build"
|
2001-09-03 21:21:39 -04:00
|
|
|
ONLY_FOR_ARCHS= i386
|
2001-08-30 18:16:42 -04:00
|
|
|
FAKE=No
|
2001-05-05 20:12:42 -04:00
|
|
|
COMMENT= "PalmPilot(tm) development environment"
|
1998-11-26 12:22:52 -05:00
|
|
|
|
2001-08-30 22:07:57 -04:00
|
|
|
VERSION= 0.5.0
|
|
|
|
DISTNAME= prc-tools.${VERSION}
|
|
|
|
PKGNAME= prc-tools-${VERSION}
|
2001-06-02 19:41:44 -04:00
|
|
|
CATEGORIES= devel palm
|
2001-09-02 03:47:13 -04:00
|
|
|
MASTER_SITES= ftp://ryeham.ee.ryerson.ca/pub/PalmOS/
|
|
|
|
MASTER_SITES0= ${MASTER_SITE_GNU:S@%SUBDIR%@binutils@}
|
|
|
|
MASTER_SITES1= ${MASTER_SITE_GNU:S@%SUBDIR%@gdb@}
|
|
|
|
MASTER_SITES2= ${MASTER_SITE_GNU:S@%SUBDIR%@gcc@}
|
1998-11-26 12:22:52 -05:00
|
|
|
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} \
|
2001-09-02 03:47:13 -04:00
|
|
|
binutils-2.7${EXTRACT_SUFX}:0 \
|
|
|
|
gdb-4.16${EXTRACT_SUFX}:1 \
|
|
|
|
gcc-2.7.2.2${EXTRACT_SUFX}:2
|
1998-11-26 12:22:52 -05:00
|
|
|
|
2002-01-31 15:34:38 -05:00
|
|
|
HOMEPAGE= http://prc-tools.sourceforge.net/
|
2001-09-02 01:06:27 -04:00
|
|
|
|
2001-06-19 21:43:11 -04:00
|
|
|
# License: GPL
|
2001-08-31 12:47:36 -04:00
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
2000-02-12 03:02:07 -05:00
|
|
|
|
2000-02-10 19:37:15 -05:00
|
|
|
WRKDIST= ${WRKDIR}/${PKGNAME}
|
2001-08-30 18:16:42 -04:00
|
|
|
PREFIX= ${LOCALBASE}/palm
|
1998-11-26 12:22:52 -05:00
|
|
|
|
|
|
|
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
|
2001-08-30 18:16:42 -04:00
|
|
|
do-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
|
2001-08-30 18:16:42 -04:00
|
|
|
@cd ${WRKDIR}/${PKGNAME} && ${MAKE_ENV} ${MAKE_PROGRAM} ${MAKE_FLAGS} -f ${MAKE_FILE} gnutools all install
|
1998-11-26 12:22:52 -05:00
|
|
|
|
2001-08-30 18:16:42 -04:00
|
|
|
# before we apply our patches, apply prc-tools' patches to gcc/gdb/...
|
2001-08-22 14:30:59 -04:00
|
|
|
pre-patch:
|
2001-08-30 18:16:42 -04:00
|
|
|
@(cd ${WRKDIR}/${PKGNAME} && cat *.palmos.diff | (cd .. ; patch --quiet -p0 ; touch stamp.patch))
|
|
|
|
@find ${WRKDIR}/ -name \*.orig -exec rm -f {} \;
|
1998-11-26 12:22:52 -05:00
|
|
|
|
2001-08-30 18:16:42 -04:00
|
|
|
do-install:
|
|
|
|
@rm -rf ${PREFIX}/info
|
|
|
|
@(cd ${PREFIX}/bin && strip ${STRIP})
|
2001-08-22 14:53:34 -04:00
|
|
|
|
1998-11-26 12:22:52 -05:00
|
|
|
.include <bsd.port.mk>
|