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> |