View | Details | Raw Unified | Return to bug 98628
Collapse All | Expand All

(-)/usr/ports/devel/fpc-gdbint-new/Makefile (-44 / +29 lines)
Lines 6-71 Link Here
6
#
6
#
7
7
8
PORTNAME=	gdbint
8
PORTNAME=	gdbint
9
PORTVERSION=	1.0.10
9
PORTVERSION=	2.0.2
10
PORTREVISION=	2
11
CATEGORIES=	devel
10
CATEGORIES=	devel
12
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
11
MASTER_SITES=	ftp://ftp.freepascal.org/pub/fpc/dist/i386-freebsd-${PORTVERSION}/ \
12
		ftp://planetmirror.com/pub/fpc/dist/i386-freebsd-${PORTVERSION}/ \
13
		ftp://ftp.jp.freepascal.org/mirror/fpc/dist/i386-freebsd-${PORTVERSION}/ \
14
		ftp://freepascal.stack.nl/pub/fpc/dist/i386-freebsd-${PORTVERSION}/ \
15
		ftp://ftp.no.freepascal.org/pub/fpc/dist/i386-freebsd-${PORTVERSION}/ \
16
		ftp://ftp.us.freepascal.org/pub/fpc/dist/i386-freebsd-${PORTVERSION}/ \
17
		${MASTER_SITE_SOURCEFORGE}
13
MASTER_SITE_SUBDIR=	freepascal
18
MASTER_SITE_SUBDIR=	freepascal
14
PKGNAMEPREFIX=	fpc-
19
PKGNAMEPREFIX=	fpc-
15
DISTNAME=	fpc-${PORTVERSION}.ELF
20
DISTNAME=	${PKGNAMEPREFIX}${PORTVERSION}.${BUILDNAME}
16
EXTRACT_SUFX=	.tar
21
EXTRACT_SUFX=	.tar
17
22
18
MAINTAINER=	ports@FreeBSD.org
23
MAINTAINER=	acardenas@bsd.org.pe
19
COMMENT=	Free Pascal unit providing interface to gdb
24
COMMENT=	Free Pascal unit providing interface to gdb
20
25
21
.include <bsd.port.pre.mk>
26
RUN_DEPENDS=	ppc386:${PORTSDIR}/lang/fpc
22
27
23
BUILD_DEPENDS+=	ppc386:${PORTSDIR}/lang/fpc \
24
		gdbfpc:${PORTSDIR}/devel/fpc-gdb
25
RUN_DEPENDS+=	${BUILD_DEPENDS}
26
.if ${OSVERSION} < 470000
27
EXTRACT_DEPENDS+=	gtar:${PORTSDIR}/archivers/gtar
28
TAR=			${LOCALBASE}/bin/gtar
29
.endif
30
USE_GMAKE=	yes
31
ONLY_FOR_ARCHS=	i386
28
ONLY_FOR_ARCHS=	i386
29
NO_BUILD=	yes
32
30
33
PLIST_SUB+=	PORTVERSION=${PORTVERSION}
31
DOCSDIR=	${PREFIX}/share/doc/fpc
34
32
BUILDNAME=	i386-freebsd
35
MAKE_ENV+=	PATH=${LOCALBASE}/bin:$$PATH \
33
PLIST_SUB+=	PORTVERSION=${PORTVERSION} \
36
		FPC=${LOCALBASE}/bin/ppc386 \
34
		BUILDNAME=${BUILDNAME}
37
		INSTALL_BASEDIR=${PREFIX}/lib/fpc/${PORTVERSION} \
38
		INSTALL_BINDIR=${PREFIX}/bin \
39
		GCCLIBDIR=/usr/lib \
40
		GDBLIBDIR=${LOCALBASE}/lib/fpc/${PORTVERSION}/units/freebsd/gdbint/libgdb \
41
		RELEASE=1
42
35
43
do-extract:
36
do-extract:
44
# unpack distribution
37
# unpack distribution
45
	@${MKDIR} ${WRKSRC}
38
	@${MKDIR} ${WRKSRC}
46
	@${TAR} xf ${DISTDIR}/${DISTNAME}.tar --directory ${WRKSRC}
39
	@${TAR} xf ${DISTDIR}/${DISTNAME}.tar \
47
# unpack sources distribution
40
		--directory ${WRKSRC}
48
	@${MKDIR} ${WRKSRC}/sources
41
	@${TAR} xf ${WRKSRC}/binary.${BUILDNAME}.tar \
49
	@${TAR} xf ${WRKSRC}/sources.tar --directory ${WRKSRC}/sources
50
# further extract base sources
51
#
52
# gdbint sources
53
	@${TAR} zxf ${WRKSRC}/sources/unitsgdbintsrc.tar.gz \
54
		--directory ${WRKSRC}
42
		--directory ${WRKSRC}
55
43
56
post-patch:
44
# unpack binary and gdbint distribution
57
# change to alter amount of optimization
45
	@${MKDIR} ${WRKSRC}/${PORTNAME}
58
	@${FIND} ${WRKSRC}/share/src/fpc-${PORTVERSION} -name \
46
	@${TAR} zxf ${WRKSRC}/units-${PORTNAME}.${BUILDNAME}.tar.gz \
59
		"Makefile*" | ${XARGS} ${REINPLACE_CMD} 's|-OG2p3|-OG2p1|g'
47
		--directory ${WRKSRC}/${PORTNAME}
60
61
do-build:
62
	@${SETENV} ${MAKE_ENV} ${GMAKE} -C \
63
		${WRKSRC}/share/src/fpc-${PORTVERSION}/packages/base/gdbint \
64
		all
65
48
66
do-install:
49
do-install:
67
	@${SETENV} ${MAKE_ENV} ${GMAKE} -C \
50
.for DIRE in lib
68
		${WRKSRC}/share/src/fpc-${PORTVERSION}/packages/base/gdbint \
51
	@cd ${WRKSRC}/${PORTNAME}/${DIRE} && \
69
		install
52
		${FIND} * -type d -exec ${MKDIR} "{}" "${PREFIX}/${DIRE}/{}" \; && \
53
			${FIND} * -type f -exec ${INSTALL_SCRIPT} "{}" "${PREFIX}/${DIRE}/{}" \;
54
.endfor
70
55
71
.include <bsd.port.post.mk>
56
.include <bsd.port.mk>
(-)/usr/ports/devel/fpc-gdbint-new/distinfo (-3 / +3 lines)
Lines 1-3 Link Here
1
MD5 (fpc-1.0.10.ELF.tar) = 6ad56eb115152174683499da3ece7667
1
MD5 (fpc-2.0.2.i386-freebsd.tar) = e1f834f445b0f2313f41ed417a28fb1c
2
SHA256 (fpc-1.0.10.ELF.tar) = 318bab9d1269dffcc5fe737d224fca939c5f130f34f12d166319b3d1ba776bfb
2
SHA256 (fpc-2.0.2.i386-freebsd.tar) = 906f002dfdbdfc3380f5a66b93d68debdbb68bba65b9db0590a93f548fb9f528
3
SIZE (fpc-1.0.10.ELF.tar) = 17448960
3
SIZE (fpc-2.0.2.i386-freebsd.tar) = 22517760
(-)/usr/ports/devel/fpc-gdbint-new/pkg-descr (-3 lines)
Lines 3-8 Link Here
3
provides an interface to gdb.
3
provides an interface to gdb.
4
4
5
WWW: http://www.freepascal.org/
5
WWW: http://www.freepascal.org/
6
7
--
8
John Merryweather Cooper <coop9211@uidaho.edu>
(-)/usr/ports/devel/fpc-gdbint-new/pkg-plist (-6 / +11 lines)
Lines 1-6 Link Here
1
lib/fpc/%%PORTVERSION%%/units/freebsd/gdbint/Package.fpc
1
lib/fpc/%%PORTVERSION%%/units/%%BUILDNAME%%/gdbint/Package.fpc
2
lib/fpc/%%PORTVERSION%%/units/freebsd/gdbint/gdbcon.o
2
lib/fpc/%%PORTVERSION%%/units/%%BUILDNAME%%/gdbint/gdbint.ppu
3
lib/fpc/%%PORTVERSION%%/units/freebsd/gdbint/gdbcon.ppu
3
lib/fpc/%%PORTVERSION%%/units/%%BUILDNAME%%/gdbint/gdbcon.ppu
4
lib/fpc/%%PORTVERSION%%/units/freebsd/gdbint/gdbint.o
4
lib/fpc/%%PORTVERSION%%/units/%%BUILDNAME%%/gdbint/gdbint.o
5
lib/fpc/%%PORTVERSION%%/units/freebsd/gdbint/gdbint.ppu
5
lib/fpc/%%PORTVERSION%%/units/%%BUILDNAME%%/gdbint/gdbcon.o
6
@dirrm lib/fpc/%%PORTVERSION%%/units/freebsd/gdbint
6
lib/fpc/%%PORTVERSION%%/units/%%BUILDNAME%%/gdbint/libpgdbcon.a
7
@dirrm lib/fpc/%%PORTVERSION%%/units/%%BUILDNAME%%/gdbint
8
@dirrmtry lib/fpc/%%PORTVERSION%%/units/%%BUILDNAME%%
9
@dirrmtry lib/fpc/%%PORTVERSION%%/units
10
@dirrmtry lib/fpc/%%PORTVERSION%%
11
@dirrmtry lib/fpc

Return to bug 98628