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

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

Return to bug 98654