komodo port. Suitable?

Lewis Thompson purple at lewiz.net
Mon Nov 17 15:27:00 PST 2003


Hi,

I've attached the Makefile from the Komodo port I am creating.  I am
trying to determine whether or not the method of using libiberty and
libbfd is suitable.  Right now it requires that libiberty.a and libbfd.a
exist in /usr/obj.

  Could somebody please confirm this is an acceptable method of going
about this before I submit the port?

  Thanks very much,

-lewiz.

-- 
I was so much older then, I'm younger than that now.  --Bob Dylan, 1964.
------------------------------------------------------------------------
-| msn:purple at lewiz.net | jabber:lewiz at jabber.org | url:www.lewiz.org |-
-------------- next part --------------
# New ports collection makefile for: komodo
# Date created:		24 October 2003
# Whom:			Lewis Thompson <purple at lewiz.net>
#
# $FreeBSD$
#

PORTNAME=	komodo
PORTVERSION=	0.9.16
CATEGORIES=	devel
MASTER_SITES=	http://www.cs.man.ac.uk/~brejc8/kmd/dist/
DISTNAME=	KMD-${PORTVERSION}

MAINTAINER=	purple at lewiz.net
COMMENT=	A graphical ARM debugger

RUN_DEPENDS=	${LOCALBASE}/arm-elf/bin/ld:${PORTSDIR}/devel/arm-elf-binutils

USE_X_PREFIX=	yes
USE_GNOME=	gtk12
USE_GMAKE=	yes
INSTALLS_SHLIB=	yes
GNU_CONFIGURE=	yes
CONFIGURE_ENV=	LDFLAGS="-L${LOCALBASE}/lib -L/usr/obj/usr/src/gnu/usr.bin/binutils/libiberty \
		-L/usr/obj/usr/src/gnu/usr.bin/binutils/libbfd" \
		CFLAGS="-I${LOCALBASE}/include -I/usr/src/contrib/binutils/include"

.if defined(WITH_SIMPLE)
CONFIGURE_ARGS+=	--enable-simple-interface
.endif

LDFLAGS+=	-L${LOCALBASE}/lib -L/usr/obj/usr/src/gnu/usr.bin/binutils/libiberty \
		-L/usr/obj/usr/src/gnu/usr.bin/binutils/libbfd

.if !exists(/usr/obj/usr/src/gnu/usr.bin/binutils/libiberty/libiberty.a) \
	|| !exists(/usr/obj/usr/src/gnu/usr.bin/binutils/libbfd/libbfd.a)
BROKEN=		Compiled libiberty and libbfd libraries are required for compilation. \
		These are provided with ``make buildworld''
.endif

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/src/flash ${PREFIX}/bin
	${INSTALL_PROGRAM} ${WRKSRC}/src/jimulator ${PREFIX}/bin
	${INSTALL_PROGRAM} ${WRKSRC}/src/kmd ${PREFIX}/bin
	${INSTALL_PROGRAM} ${WRKSRC}/src/kmd_emulmips ${PREFIX}/bin

.include <bsd.port.mk>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20031117/871c8d1e/attachment.bin


More information about the freebsd-ports mailing list