1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-19 19:59:43 +00:00

Remove support for OSVERSION < 5

This commit is contained in:
Edwin Groothuis 2007-10-03 23:22:04 +00:00
parent a582224f29
commit c0b3ecac44
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=200759
23 changed files with 31 additions and 126 deletions

View File

@ -44,10 +44,6 @@ PROGS= bin/m3build \
ONLY_FOR_ARCHS= alpha amd64 i386 sparc64
.if ${OSVERSION} < 410000
BROKEN= Not supported on versions earlier than 4.1-RELEASE
.endif
.if ${ARCH} == "alpha"
TARGET= FBSD_ALPHA
WORDSIZE= 64

View File

@ -181,8 +181,7 @@ post-patch:
>${WRKSRC}/opt/${COMPILERDIR}/include/stdbool.h
.endif
.if ( ${OSVERSION} >= 470101 && ${OSVERSION} < 500000 ) || \
( ${OSVERSION} >= 500042 )
.if ( ${OSVERSION} >= 500042 )
OBJCOPY_OPS= --redefine-sym stdin=__stdinp \
--redefine-sym stdout=__stdoutp \
--redefine-sym stderr=__stderrp
@ -200,8 +199,7 @@ do-build:
.if ( ${OSVERSION} < 502101 )
@cd ${WRKSRC} && ${CC} ${CFLAGS} -c ${FILESDIR}/cxa_atexit.c
.endif
.if ( ${OSVERSION} < 470101 ) || \
( ${OSVERSION} >= 500000 && ${OSVERSION} < 500042 )
.if ( ${OSVERSION} < 500042 )
@${CC} ${CFLAGS} -c -o ${WRKSRC}/stdin.o ${FILESDIR}/stdin.c
@${CC} ${CFLAGS} -c -o ${WRKSRC}/stdout.o ${FILESDIR}/stdout.c
@${CC} ${CFLAGS} -c -o ${WRKSRC}/stderr.o ${FILESDIR}/stderr.c

View File

@ -125,8 +125,7 @@ post-patch:
@${RM} -rf ${WRKSRC}/opt/intel/${COMPILERDIR}/ia32/include/sys
.endif
.if ( ${OSVERSION} >= 470101 && ${OSVERSION} < 500000 ) || \
( ${OSVERSION} >= 500042 )
.if ( ${OSVERSION} >= 500042 )
OBJCOPY_OPS= --redefine-sym stdin=__stdinp \
--redefine-sym stdout=__stdoutp \
--redefine-sym stderr=__stderrp
@ -139,8 +138,7 @@ do-build:
.if ( ${OSVERSION} < 502101 )
@cd ${WRKSRC} && ${CC} ${CFLAGS} -c ${FILESDIR}/cxa_atexit.c
.endif
.if ( ${OSVERSION} < 470101 ) || \
( ${OSVERSION} >= 500000 && ${OSVERSION} < 500042 )
.if ( ${OSVERSION} < 500042 )
@${CC} ${CFLAGS} -c -o ${WRKSRC}/stdin.o ${FILESDIR}/stdin.c
@${CC} ${CFLAGS} -c -o ${WRKSRC}/stdout.o ${FILESDIR}/stdout.c
@${CC} ${CFLAGS} -c -o ${WRKSRC}/stderr.o ${FILESDIR}/stderr.c

View File

@ -121,8 +121,7 @@ post-patch:
.endfor
@cd ${WRKSRC}/opt/${COMPILERDIR}/bin/ && ${LN} -s ifort.cfg ifortbin.cfg
.if ( ${OSVERSION} >= 470101 && ${OSVERSION} < 500000 ) || \
( ${OSVERSION} >= 500042 )
.if ( ${OSVERSION} >= 500042 )
OBJCOPY_OPS= --redefine-sym stdin=__stdinp \
--redefine-sym stdout=__stdoutp \
--redefine-sym stderr=__stderrp
@ -142,8 +141,7 @@ do-build:
.if ( ${OSVERSION} < 502101 )
@cd ${WRKSRC} && ${CC} ${CFLAGS} -c ${FILESDIR}/cxa_atexit.c
.endif
.if ( ${OSVERSION} < 470101 ) || \
( ${OSVERSION} >= 500000 && ${OSVERSION} < 500042 )
.if ( ${OSVERSION} < 500042 )
@${CC} ${CFLAGS} -c -o ${WRKSRC}/stdin.o ${FILESDIR}/stdin.c
@${CC} ${CFLAGS} -c -o ${WRKSRC}/stdout.o ${FILESDIR}/stdout.c
@${CC} ${CFLAGS} -c -o ${WRKSRC}/stderr.o ${FILESDIR}/stderr.c

View File

@ -105,8 +105,7 @@ post-patch:
.endfor
@cd ${WRKSRC}/opt/intel/${COMPILERDIR}/ia32/bin/ && ${LN} -s ifc.cfg ifcbin.cfg
.if ( ${OSVERSION} >= 470101 && ${OSVERSION} < 500000 ) || \
( ${OSVERSION} >= 500042 )
.if ( ${OSVERSION} >= 500042 )
OBJCOPY_OPS= --redefine-sym stdin=__stdinp \
--redefine-sym stdout=__stdoutp \
--redefine-sym stderr=__stderrp
@ -122,8 +121,7 @@ do-build:
.if ( ${OSVERSION} < 502101 )
@cd ${WRKSRC} && ${CC} ${CFLAGS} -c ${FILESDIR}/cxa_atexit.c
.endif
.if ( ${OSVERSION} < 470101 ) || \
( ${OSVERSION} >= 500000 && ${OSVERSION} < 500042 )
.if ( ${OSVERSION} < 500042 )
@${CC} ${CFLAGS} -c -o ${WRKSRC}/stdin.o ${FILESDIR}/stdin.c
@${CC} ${CFLAGS} -c -o ${WRKSRC}/stdout.o ${FILESDIR}/stdout.c
@${CC} ${CFLAGS} -c -o ${WRKSRC}/stderr.o ${FILESDIR}/stderr.c

View File

@ -19,15 +19,10 @@ PERL_CONFIGURE= yes
MAN3= ExtUtils::F77.3
.include <bsd.port.pre.mk>
.if ${OSVERSION} >= 400005
F2CLIB= -lg2c
.else
F2CLIB= -lf2c
.endif
F2CLIB= -lg2c
post-patch:
@cd ${WRKSRC}; ${PERL5} -i.orig -pe \
's/(.*Freebsd.*lib )(-lf2c)(.*)/$$1 ${F2CLIB} $$3/' F77.pm
.include <bsd.port.post.mk>
.include <bsd.port.mk>

View File

@ -19,15 +19,10 @@ PERL_CONFIGURE= yes
MAN3= ExtUtils::F77.3
.include <bsd.port.pre.mk>
.if ${OSVERSION} >= 400005
F2CLIB= -lg2c
.else
F2CLIB= -lf2c
.endif
F2CLIB= -lg2c
post-patch:
@cd ${WRKSRC}; ${PERL5} -i.orig -pe \
's/(.*Freebsd.*lib )(-lf2c)(.*)/$$1 ${F2CLIB} $$3/' F77.pm
.include <bsd.port.post.mk>
.include <bsd.port.mk>

View File

@ -97,9 +97,6 @@ CONFIGURE_ARGS+= -Dusethreads=y
PKGNAMESUFFIX= -threaded
# it seems perl malloc has problems with threaded perl on FreeBSD
.undef WITH_PERL_MALLOC
.if ${OSVERSION} < 492000
CONFIGURE_ARGS+= -Ud_gethostbyaddr_r
.endif
.else
CONFIGURE_ARGS+= -Dusethreads=n
.endif

View File

@ -97,9 +97,6 @@ CONFIGURE_ARGS+= -Dusethreads=y
PKGNAMESUFFIX= -threaded
# it seems perl malloc has problems with threaded perl on FreeBSD
.undef WITH_PERL_MALLOC
.if ${OSVERSION} < 492000
CONFIGURE_ARGS+= -Ud_gethostbyaddr_r
.endif
.else
CONFIGURE_ARGS+= -Dusethreads=n
.endif

View File

@ -97,9 +97,6 @@ CONFIGURE_ARGS+= -Dusethreads=y
PKGNAMESUFFIX= -threaded
# it seems perl malloc has problems with threaded perl on FreeBSD
.undef WITH_PERL_MALLOC
.if ${OSVERSION} < 492000
CONFIGURE_ARGS+= -Ud_gethostbyaddr_r
.endif
.else
CONFIGURE_ARGS+= -Dusethreads=n
.endif

View File

@ -97,9 +97,6 @@ CONFIGURE_ARGS+= -Dusethreads=y
PKGNAMESUFFIX= -threaded
# it seems perl malloc has problems with threaded perl on FreeBSD
.undef WITH_PERL_MALLOC
.if ${OSVERSION} < 492000
CONFIGURE_ARGS+= -Ud_gethostbyaddr_r
.endif
.else
CONFIGURE_ARGS+= -Dusethreads=n
.endif

View File

@ -97,9 +97,6 @@ CONFIGURE_ARGS+= -Dusethreads=y
PKGNAMESUFFIX= -threaded
# it seems perl malloc has problems with threaded perl on FreeBSD
.undef WITH_PERL_MALLOC
.if ${OSVERSION} < 492000
CONFIGURE_ARGS+= -Ud_gethostbyaddr_r
.endif
.else
CONFIGURE_ARGS+= -Dusethreads=n
.endif

View File

@ -150,7 +150,7 @@ CONFIGURE_ARGS+=--enable-debug
CONFIGURE_ARGS+=--enable-zend-multibyte
.endif
.if ${OSVERSION} < 400014 || defined(WITHOUT_IPV6)
.if defined(WITHOUT_IPV6)
CONFIGURE_ARGS+=--disable-ipv6
.endif

View File

@ -93,7 +93,7 @@ PLIST_SUB+= 32BIT_ONLY=""
CFLAGS+= -DPYTHON_DEFAULT_RECURSION_LIMIT=900
.endif
.if !defined(WITHOUT_IPV6) && ${OSVERSION} >= 400014
.if !defined(WITHOUT_IPV6)
CONFIGURE_ARGS+= --enable-ipv6
.else
CONFIGURE_ARGS+= --disable-ipv6
@ -103,10 +103,8 @@ CONFIGURE_ARGS+= --disable-ipv6
PLATFORMS=plat-freebsd4 plat-freebsd5 plat-freebsd6
.elif ${OSVERSION} >= 600000
PLATFORMS=plat-freebsd4 plat-freebsd5 plat-freebsd7
.elif ${OSVERSION} >= 500000
PLATFORMS=plat-freebsd4 plat-freebsd6 plat-freebsd7
.else
PLATFORMS=plat-freebsd5 plat-freebsd6 plat-freebsd7
PLATFORMS=plat-freebsd4 plat-freebsd6 plat-freebsd7
.endif
post-extract:

View File

@ -103,7 +103,7 @@ PLIST_SUB+= NO_NIS="@comment "
PLIST_SUB+= NO_NIS=""
.endif
.if !defined(WITHOUT_IPV6) && ${OSVERSION} >= 400014
.if !defined(WITHOUT_IPV6)
CONFIGURE_ARGS+= --enable-ipv6
.else
CONFIGURE_ARGS+= --disable-ipv6
@ -117,10 +117,8 @@ CONFIGURE_ARGS+= --with-fpectl
PLATFORMS=plat-freebsd4 plat-freebsd5 plat-freebsd6
.elif ${OSVERSION} >= 600000
PLATFORMS=plat-freebsd4 plat-freebsd5 plat-freebsd7
.elif ${OSVERSION} >= 500000
PLATFORMS=plat-freebsd4 plat-freebsd6 plat-freebsd7
.else
PLATFORMS=plat-freebsd5 plat-freebsd6 plat-freebsd7
PLATFORMS=plat-freebsd4 plat-freebsd6 plat-freebsd7
.endif
post-extract:

View File

@ -106,13 +106,7 @@ PLIST_SUB+= NO_NIS="@comment "
PLIST_SUB+= NO_NIS=""
.endif
.if ${OSVERSION} < 400000
LIB_DEPENDS+= ncurses.5:${PORTSDIR}/devel/ncurses
CFLAGS+= -I${LOCALBASE}/include/ncurses -I${LOCALBASE}/include
CONFIGURE_ENV+= LDFLAGS="-L${LOCALBASE}/lib"
.endif
.if !defined(WITHOUT_IPV6) && ${OSVERSION} >= 400014
.if !defined(WITHOUT_IPV6)
CONFIGURE_ARGS+= --enable-ipv6
.else
CONFIGURE_ARGS+= --disable-ipv6
@ -126,10 +120,8 @@ CONFIGURE_ARGS+= --with-fpectl
PLATFORMS=plat-freebsd4 plat-freebsd5 plat-freebsd6
.elif ${OSVERSION} >= 600000
PLATFORMS=plat-freebsd4 plat-freebsd5 plat-freebsd7
.elif ${OSVERSION} >= 500000
PLATFORMS=plat-freebsd4 plat-freebsd6 plat-freebsd7
.else
PLATFORMS=plat-freebsd5 plat-freebsd6 plat-freebsd7
PLATFORMS=plat-freebsd4 plat-freebsd6 plat-freebsd7
.endif
pre-patch:

View File

@ -106,13 +106,7 @@ PLIST_SUB+= NO_NIS="@comment "
PLIST_SUB+= NO_NIS=""
.endif
.if ${OSVERSION} < 400000
LIB_DEPENDS+= ncurses.5:${PORTSDIR}/devel/ncurses
CFLAGS+= -I${LOCALBASE}/include/ncurses -I${LOCALBASE}/include
CONFIGURE_ENV+= LDFLAGS="-L${LOCALBASE}/lib"
.endif
.if !defined(WITHOUT_IPV6) && ${OSVERSION} >= 400014
.if !defined(WITHOUT_IPV6)
CONFIGURE_ARGS+= --enable-ipv6
.else
CONFIGURE_ARGS+= --disable-ipv6
@ -126,10 +120,8 @@ CONFIGURE_ARGS+= --with-fpectl
PLATFORMS=plat-freebsd4 plat-freebsd5 plat-freebsd6
.elif ${OSVERSION} >= 600000
PLATFORMS=plat-freebsd4 plat-freebsd5 plat-freebsd7
.elif ${OSVERSION} >= 500000
PLATFORMS=plat-freebsd4 plat-freebsd6 plat-freebsd7
.else
PLATFORMS=plat-freebsd5 plat-freebsd6 plat-freebsd7
PLATFORMS=plat-freebsd4 plat-freebsd6 plat-freebsd7
.endif
pre-patch:

View File

@ -106,13 +106,7 @@ PLIST_SUB+= NO_NIS="@comment "
PLIST_SUB+= NO_NIS=""
.endif
.if ${OSVERSION} < 400000
LIB_DEPENDS+= ncurses.5:${PORTSDIR}/devel/ncurses
CFLAGS+= -I${LOCALBASE}/include/ncurses -I${LOCALBASE}/include
CONFIGURE_ENV+= LDFLAGS="-L${LOCALBASE}/lib"
.endif
.if !defined(WITHOUT_IPV6) && ${OSVERSION} >= 400014
.if !defined(WITHOUT_IPV6)
CONFIGURE_ARGS+= --enable-ipv6
.else
CONFIGURE_ARGS+= --disable-ipv6
@ -126,10 +120,8 @@ CONFIGURE_ARGS+= --with-fpectl
PLATFORMS=plat-freebsd4 plat-freebsd5 plat-freebsd6
.elif ${OSVERSION} >= 600000
PLATFORMS=plat-freebsd4 plat-freebsd5 plat-freebsd7
.elif ${OSVERSION} >= 500000
PLATFORMS=plat-freebsd4 plat-freebsd6 plat-freebsd7
.else
PLATFORMS=plat-freebsd5 plat-freebsd6 plat-freebsd7
PLATFORMS=plat-freebsd4 plat-freebsd6 plat-freebsd7
.endif
pre-patch:

View File

@ -106,13 +106,7 @@ PLIST_SUB+= NO_NIS="@comment "
PLIST_SUB+= NO_NIS=""
.endif
.if ${OSVERSION} < 400000
LIB_DEPENDS+= ncurses.5:${PORTSDIR}/devel/ncurses
CFLAGS+= -I${LOCALBASE}/include/ncurses -I${LOCALBASE}/include
CONFIGURE_ENV+= LDFLAGS="-L${LOCALBASE}/lib"
.endif
.if !defined(WITHOUT_IPV6) && ${OSVERSION} >= 400014
.if !defined(WITHOUT_IPV6)
CONFIGURE_ARGS+= --enable-ipv6
.else
CONFIGURE_ARGS+= --disable-ipv6
@ -126,10 +120,8 @@ CONFIGURE_ARGS+= --with-fpectl
PLATFORMS=plat-freebsd4 plat-freebsd5 plat-freebsd6
.elif ${OSVERSION} >= 600000
PLATFORMS=plat-freebsd4 plat-freebsd5 plat-freebsd7
.elif ${OSVERSION} >= 500000
PLATFORMS=plat-freebsd4 plat-freebsd6 plat-freebsd7
.else
PLATFORMS=plat-freebsd5 plat-freebsd6 plat-freebsd7
PLATFORMS=plat-freebsd4 plat-freebsd6 plat-freebsd7
.endif
pre-patch:

View File

@ -106,13 +106,7 @@ PLIST_SUB+= NO_NIS="@comment "
PLIST_SUB+= NO_NIS=""
.endif
.if ${OSVERSION} < 400000
LIB_DEPENDS+= ncurses.5:${PORTSDIR}/devel/ncurses
CFLAGS+= -I${LOCALBASE}/include/ncurses -I${LOCALBASE}/include
CONFIGURE_ENV+= LDFLAGS="-L${LOCALBASE}/lib"
.endif
.if !defined(WITHOUT_IPV6) && ${OSVERSION} >= 400014
.if !defined(WITHOUT_IPV6)
CONFIGURE_ARGS+= --enable-ipv6
.else
CONFIGURE_ARGS+= --disable-ipv6
@ -126,10 +120,8 @@ CONFIGURE_ARGS+= --with-fpectl
PLATFORMS=plat-freebsd4 plat-freebsd5 plat-freebsd6
.elif ${OSVERSION} >= 600000
PLATFORMS=plat-freebsd4 plat-freebsd5 plat-freebsd7
.elif ${OSVERSION} >= 500000
PLATFORMS=plat-freebsd4 plat-freebsd6 plat-freebsd7
.else
PLATFORMS=plat-freebsd5 plat-freebsd6 plat-freebsd7
PLATFORMS=plat-freebsd4 plat-freebsd6 plat-freebsd7
.endif
pre-patch:

View File

@ -106,13 +106,7 @@ PLIST_SUB+= NO_NIS="@comment "
PLIST_SUB+= NO_NIS=""
.endif
.if ${OSVERSION} < 400000
LIB_DEPENDS+= ncurses.5:${PORTSDIR}/devel/ncurses
CFLAGS+= -I${LOCALBASE}/include/ncurses -I${LOCALBASE}/include
CONFIGURE_ENV+= LDFLAGS="-L${LOCALBASE}/lib"
.endif
.if !defined(WITHOUT_IPV6) && ${OSVERSION} >= 400014
.if !defined(WITHOUT_IPV6)
CONFIGURE_ARGS+= --enable-ipv6
.else
CONFIGURE_ARGS+= --disable-ipv6
@ -126,10 +120,8 @@ CONFIGURE_ARGS+= --with-fpectl
PLATFORMS=plat-freebsd4 plat-freebsd5 plat-freebsd6
.elif ${OSVERSION} >= 600000
PLATFORMS=plat-freebsd4 plat-freebsd5 plat-freebsd7
.elif ${OSVERSION} >= 500000
PLATFORMS=plat-freebsd4 plat-freebsd6 plat-freebsd7
.else
PLATFORMS=plat-freebsd5 plat-freebsd6 plat-freebsd7
PLATFORMS=plat-freebsd4 plat-freebsd6 plat-freebsd7
.endif
pre-patch:

View File

@ -92,7 +92,7 @@ EXTRA_PATCHES= ${PATCHDIR}/extrapatch-eval.c
EXTRA_PATCHES+= ${PATCHDIR}/extra-patch-gc
.endif
.if ${OSVERSION} >= 400014 && !defined(WITHOUT_IPV6)
.if !defined(WITHOUT_IPV6)
CONFIGURE_ARGS+= --enable-ipv6
.endif

View File

@ -22,6 +22,7 @@ USE_RUBY= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS= ${RUBY_CONFIGURE_ARGS} --program-suffix=20 \
--enable-shared --with-openssl-include=${OPENSSLINC}
CONFIGURE_ARGS+=--enable-ipv6
CONFIGURE_ENV= CPPFLAGS="${PTHREAD_CFLAGS}" LIBS="${PTHREAD_LIBS}"
OPTIONS= DEBUG "Enable debugging information" off \
@ -37,13 +38,6 @@ BROKEN= does not build
BROKEN= Does not build on 5.x
.endif
.if ${OSVERSION} >= 400014
CONFIGURE_ARGS+=--enable-ipv6
.if ${OSVERSION} < 500000
CONFIGURE_ARGS+=--enable-wide-getaddrinfo
.endif
.endif
.if defined(NOPORTDOCS)
INSTALL_TARGET= install-nodoc
PLIST_SUB+= PORTSDOCS="@comment "