blob: d1b221ee76f753d0da64e3a3163b95da80a27f61 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
|
# New ports collection makefile for: i386-rtems-gdb
# Date created: 9 June 2000
# Whom: James Housley <jim@thehousleys.net>
#
# $FreeBSD$
#
PORTNAME= gdb
PORTVERSION= 5.2
PORTREVISION= 1
CATEGORIES= devel
MASTER_SITES= ${MASTER_SITE_GNU}
MASTER_SITE_SUBDIR= gdb
MAINTAINER= jeh@FreeBSD.org
COMMENT= FSF gdb-5.2 base-port for RTEMS development
PATCHFILES= ${GDBNAME}-rtems-base-20020612.diff \
${GDBNAME}-rtems-cg-20020612.diff \
${GDBNAME}-rtems-rdbg-20020612.diff
PATCH_SITES= ftp://ftp.rtems.com/pub/rtems/snapshots/c_tools/source/ \
http://rtems.thehousleys.net/
LCLTARGET?= i386-rtems
GDBNAME= gdb-5.2
MASTERDIR= ${.CURDIR}/../i386-rtems-gdb
PLIST= ${PKGDIR}/pkg-plist.${LCLTARGET}
BUILD_DEPENDS= ${LCLTARGET}-as:${PORTSDIR}/devel/${LCLTARGET}-binutils \
${LCLTARGET}-ld:${PORTSDIR}/devel/${LCLTARGET}-binutils
RUN_DEPENDS= ${LCLTARGET}-as:${PORTSDIR}/devel/${LCLTARGET}-binutils \
${LCLTARGET}-ld:${PORTSDIR}/devel/${LCLTARGET}-binutils
PKGNAMEPREFIX= ${LCLTARGET}-
USE_GMAKE= yes
GNU_CONFIGURE= yes
ALL_TARGET= all info
CONFIGURE_TARGET?= --target=${LCLTARGET}
CONFIGURE_ARGS?= --verbose
CONFIGURE_WRKSRC?= ${WRKDIR}/build-${LCLTARGET}
CONFIGURE_SCRIPT?= ../${GDBNAME}/configure
PATCH_DIST_STRIP?= -p1
# Need to patch a patch file
.if ${LCLTARGET} == powerpc-rtems
PATCHFILES+= powerpc-gdb-5.2-hw_sem.c.diff:THN \
powerpc-gdb-5.2-hw_shm.c.diff:THN
PATCH_SITES+= http://rtems.thehousleys.net/:THN
.endif
MAN1+= ${LCLTARGET}-gdb.1
pre-configure:
@(cd ${WRKDIR} ; ${MKDIR} build-${LCLTARGET})
do-build:
@(cd ${WRKDIR}/build-${LCLTARGET} ; \
${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} ${ALL_TARGET})
do-install:
@(cd ${WRKDIR}/build-${LCLTARGET} && \
${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} ${INSTALL_TARGET})
.include <bsd.port.mk>
|