Remove always-false/true conditions based on OSVERSION 500000

This commit is contained in:
Edwin Groothuis 2007-10-04 02:01:29 +00:00
parent 81cd10f8d2
commit fa9509791f
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=200776
21 changed files with 20 additions and 184 deletions

View file

@ -64,10 +64,6 @@ PLIST_SUB+= QT="@comment "
.include <bsd.port.pre.mk>
.if ${OSVERSION} < 500000
BROKEN= xvid plugin fails to build
.endif
.if ${OSVERSION} >= 600000
WITH_OPTIMIZED_CFLAGS= yes
.endif
@ -299,14 +295,6 @@ post-patch:
@${REINPLACE_CMD} -E \
-e 's|^subdirs[[:space:]]*=.*libmad.*$$||' \
${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT}
# int_fast16/32_t are not in 4.x
.if ${OSVERSION} < 500000
@${REINPLACE_CMD} -e 's|int_fast16_t|int16_t|g; \
s|int_fast32_t|int32_t|g' \
${WRKSRC}/ffmpeg/libavcodec/jfdctfst.c \
${WRKSRC}/ffmpeg/libavcodec/jfdctint.c \
${WRKSRC}/ffmpeg/libavcodec/ffv1.c
.endif
post-configure:
@${LN} -sf ${LIBTOOL} ${WRKSRC}/libtool

View file

@ -13,6 +13,7 @@ MASTER_SITES= http://mina.naguib.ca/dist/
MAINTAINER= mina.website@naguib.ca
COMMENT= A console Brooktree (bktr) TV tuner
ONLY_FOR_ARCHS= alpha i386
PLIST_FILES= bin/bsdbktr_tvtune
WRKSRC= ${WRKDIR}/${PORTNAME}
ALL_TARGET= bsdbktr_tvtune
@ -20,12 +21,4 @@ ALL_TARGET= bsdbktr_tvtune
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/bsdbktr_tvtune ${PREFIX}/bin/
.include <bsd.port.pre.mk>
.if ${OSVERSION} < 500000
ONLY_FOR_ARCHS= i386
.else
ONLY_FOR_ARCHS= alpha i386
.endif
.include <bsd.port.post.mk>
.include <bsd.port.mk>

View file

@ -28,17 +28,15 @@ WRKSRC= ${WRKDIR}/${DISTNAME}
PORTDOCS= README README.links
# Compiling with MMX extensions fails on FreeBSD 5.x
WITHOUT_MMX= yes
.include <bsd.port.pre.mk>
.if ${ARCH} != "i386"
IGNORE= Supported for i386 architecture only
.endif
# Compiling with MMX extensions fails on FreeBSD 5.x
.if ${OSVERSION} >= 500000
WITHOUT_MMX= yes
.endif
.if defined(WITHOUT_MMX)
CONFIGURE_ARGS+= --no-mmx
.endif

View file

@ -35,12 +35,8 @@ pre-everything::
.ifdef(WITH_DVD_DEVICE)
DEFAULT_DVD_DEVICE=${WITH_DVD_DEVICE}
.else
.if ${OSVERSION} < 500000
DEFAULT_DVD_DEVICE=/dev/acd0c
.else
DEFAULT_DVD_DEVICE=/dev/acd0
.endif
.endif
PLIST_FILES= \
bin/goggles \

View file

@ -40,6 +40,7 @@ PLIST_FILES= bin/handbrake
JAM?= ${LOCALBASE}/bin/jam
SYSCTL_CMD?= /sbin/sysctl
WITH_DVD_DEVICE?= acd0
EXTRACT_AFTER_ARGS= | ${TAR} -xf - --exclude beos \
--exclude contrib \
@ -47,16 +48,6 @@ EXTRACT_AFTER_ARGS= | ${TAR} -xf - --exclude beos \
--exclude macosx \
--exclude wx
.include <bsd.port.pre.mk>
.if ${OSVERSION} < 500000
USE_GETOPT_LONG= yes
MAKE_ENV= EXTRA_LIBS="-lcipher -lgnugetopt"
WITH_DVD_DEVICE?= acd0c
.else
WITH_DVD_DEVICE?= acd0
.endif
post-patch:
@${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|g ; \
s|%%PTHREAD_LIBS%%|${PTHREAD_LIBS}|g ; s|HBTest|${PORTNAME}|g' \
@ -74,4 +65,4 @@ do-build:
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin/
.include <bsd.port.post.mk>
.include <bsd.port.mk>

View file

@ -40,10 +40,6 @@ MAN1= kino.1 kino2raw.1
.include <bsd.port.pre.mk>
.if ${OSVERSION} < 500000
IGNORE= does not compile on FreeBSD 4.x
.endif
.if defined(WITH_FFMPEG_KINO)
MAN1+= ffmpeg-kino.1
.endif

View file

@ -23,14 +23,7 @@ CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" LDFLAGS="-L${LOCALBASE}/lib"
MAN1= lsdvd.1
PLIST_FILES= bin/lsdvd
.include <bsd.port.pre.mk>
.if ${OSVERSION} < 500000
WITH_DVD_DEVICE?=/dev/acd0c
BROKEN= does not configure
.else
WITH_DVD_DEVICE?=/dev/acd0
.endif
pre-everything::
@${ECHO_MSG} "===> The default DVD device is ${WITH_DVD_DEVICE}"
@ -42,4 +35,4 @@ post-patch:
@${REINPLACE_CMD} -e 's|/dev/dvd|${WITH_DVD_DEVICE}|' \
${WRKSRC}/lsdvd.c
.include <bsd.port.post.mk>
.include <bsd.port.mk>

View file

@ -53,12 +53,10 @@ PORTDOCS= Changelog.de Changelog.en Changelog.fr \
TODO freebsd.doc
MAN1= lxdvdrip.1
.include <bsd.port.pre.mk>
.if ${OSVERSION} > 500000
PLIST_FILES= bin/vamps_${PORTNAME} \
bin/play_cell_${PORTNAME}
.endif
.include <bsd.port.pre.mk>
post-patch:
@${REINPLACE_CMD} -E \
@ -91,10 +89,8 @@ do-install:
${INSTALL_DATA} ${WRKSRC}/doc-pak/lxdvdrip.conf.EN ${PREFIX}/etc/lxdvdrip.conf
.endif
# binaries
.if ${OSVERSION} > 500000
${INSTALL_PROGRAM} ${WRKSRC}/vamps/vamps_${PORTNAME} ${PREFIX}/bin
${INSTALL_PROGRAM} ${WRKSRC}/vamps/play_cell_${PORTNAME} ${PREFIX}/bin
.endif
${INSTALL_PROGRAM} ${WRKSRC}/dvdbackup/dvdbackup_${PORTNAME} ${PREFIX}/bin
# examples
@${MKDIR} ${EXAMPLESDIR}

View file

@ -21,11 +21,4 @@ MAN1= mmsrip.1
PLIST_FILES= bin/mmsrip
.include <bsd.port.pre.mk>
.if ${OSVERSION} < 500000
post-patch:
${FIND} ${WRKSRC} -type f | ${XARGS} ${REINPLACE_CMD} -e 's/stdint.h/inttypes.h/g'
.endif
.include <bsd.port.post.mk>
.include <bsd.port.mk>

View file

@ -53,13 +53,7 @@ CFLAGS+= -DWITHOUT_V4L
.if defined(WITH_LINUXTHREADS) || ${OSVERSION} < 504000
CONFIGURE_ARGS= --with-linuxthreads
.if ${OSVERSION} > 500000
LIB_DEPENDS+= lthread.[35]:${PORTSDIR}/devel/linuxthreads
.else
LIB_DEPENDS+= lthread.[24]:${PORTSDIR}/devel/linuxthreads
.endif
.endif
post-install:

View file

@ -23,12 +23,6 @@ CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS} -I${LOCALBASE}/include -I${X11BASE}/include
LDFLAGS="${LDFLAGS} -L${LOCALBASE}/lib -L${X11BASE}/lib ${PTHREAD_LIBS}"
USE_LDCONFIG= yes
.include <bsd.port.pre.mk>
.if ${OSVERSION} < 500000
CFLAGS+= -O2
.endif
post-patch:
${TOUCH} -f ${WRKSRC}/bootstrapped
# Speed up configure by not using 2 unneeded configure scripts.
@ -53,4 +47,4 @@ post-install:
${INSTALL_DATA} ${WRKSRC}/${i} ${PREFIX}/include
.endfor
.include <bsd.port.post.mk>
.include <bsd.port.mk>

View file

@ -23,12 +23,6 @@ CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS} -I${LOCALBASE}/include -I${X11BASE}/include
LDFLAGS="${LDFLAGS} -L${LOCALBASE}/lib -L${X11BASE}/lib ${PTHREAD_LIBS}"
USE_LDCONFIG= yes
.include <bsd.port.pre.mk>
.if ${OSVERSION} < 500000
CFLAGS+= -O2
.endif
post-patch:
${TOUCH} -f ${WRKSRC}/bootstrapped
# Speed up configure by not using 2 unneeded configure scripts.
@ -53,4 +47,4 @@ post-install:
${INSTALL_DATA} ${WRKSRC}/${i} ${PREFIX}/include
.endfor
.include <bsd.port.post.mk>
.include <bsd.port.mk>

View file

@ -17,6 +17,7 @@ COMMENT= Viewer for Nextview Electronic TV Programme Guide (needs bktr driver)
LIB_DEPENDS= tk84.1:${PORTSDIR}/x11-toolkits/tk84
NOT_FOR_ARCHS= sparc64
USE_GMAKE= yes
USE_XLIB= yes
USE_X_PREFIX= yes
@ -25,13 +26,8 @@ MAKE_ENV= PTHREAD_LIBS=${PTHREAD_LIBS} WRKSRC=${WRKSRC}
MAN1= nxtvepg.1
MYPORTDOCS= README TODO CHANGES manual.html
.include <bsd.port.pre.mk>
.if ${OSVERSION} < 500000
ONLY_FOR_ARCHS= i386
.else
NOT_FOR_ARCHS= sparc64
.endif
.include <bsd.port.pre.mk>
.if ${OSVERSION} > 502100
post-patch:

View file

@ -32,6 +32,8 @@ CONFIGURE_ARGS= --with-libjpeg=${LOCALBASE} \
--with-liba52=${LOCALBASE}
INSTALLS_SHLIB= yes
DEFAULT_DVD_DEVICE?= /dev/acd0c
MAN1= ogle.1
MAN5= oglerc.5
@ -93,11 +95,5 @@ pre-everything::
@${ECHO_MSG} '===> only with 486 processors and above.'
.endif
# default DVD devices
.if ${OSVERSION} >= 500000
DEFAULT_DVD_DEVICE?= /dev/acd0
.else
DEFAULT_DVD_DEVICE?= /dev/acd0c
.endif
.include <bsd.port.post.mk>

View file

@ -32,11 +32,7 @@ MAN1= pvr250-setchannel.1
.include <bsd.port.pre.mk>
.if ${OSVERSION} < 500000
MODULESDIR= /modules
.else
MODULESDIR= /boot/kernel
.endif
PLIST_SUB= MODULESDIR=${MODULESDIR}
.if ${OSVERSION} >= 700031
@ -53,21 +49,12 @@ IGNORE= You need the kernel sources installed to build this module.
.endif
patch-iicbb:
.if ${OSVERSION} < 500000
@if [ -z "`${GREP} cxm_iic /usr/src/sys/dev/iicbus/iicbb.c`" ]; then \
${PATCH} -d/sys <${WRKDIR}/dev/cxm/Patch.iicbb-fbsd4; \
${ECHO_CMD} "Patched /usr/src/sys/dev/iicbus/iicbb.c"; \
else \
${ECHO_CMD} "/usr/src/sys/dev/iicbus/iicbb.c was already patched"; \
fi
.else
@if [ -z "`${GREP} cxm_iic /usr/src/sys/dev/iicbus/iicbb.c`" ]; then \
${PATCH} -d/sys <${WRKDIR}/dev/cxm/Patch.iicbb-fbsd5; \
${ECHO_CMD} "Patched /usr/src/sys/dev/iicbus/iicbb.c"; \
else \
${ECHO_CMD} "/usr/src/sys/dev/iicbus/iicbb.c was already patched"; \
fi
.endif
do-extract:
${MKDIR} ${WRKDIR}
@ -76,15 +63,8 @@ do-extract:
${EXTRACT_CMD} ${EXTRACT_BEFORE_ARGS} ${_DISTDIR}/${PVRTOOLS}.tar.gz ${EXTRACT_AFTER_ARGS};
post-patch:
.if ${OSVERSION} < 500000
${REINPLACE_CMD} -e 's/cxm0/bktr0/' \
${WRKDIR}/${PVRTOOLS}/setchannel.c
${REINPLACE_CMD} -e 's/tuner0/bktr0/' \
${WRKDIR}/${PVRTOOLS}/setchannel.c
.else
${REINPLACE_CMD} -e 's/tuner0/cxm0/' \
${WRKDIR}/${PVRTOOLS}/setchannel.c
.endif
do-configure:
cd ${WRKDIR}/dev/cxm; \
@ -101,10 +81,6 @@ do-install:
${INSTALL_MAN} ${WRKDIR}/${PVRTOOLS}/cxm.4 ${PREFIX}/man/man4/cxm.4
${INSTALL_MAN} ${WRKDIR}/${PVRTOOLS}/pvr250-setchannel.1 ${PREFIX}/man/man1/pvr250-setchannel.1
${INSTALL_PROGRAM} ${WRKDIR}/${PVRTOOLS}/setchannel ${PREFIX}/bin/pvr250-setchannel
.if ${OSVERSION} < 500000
cd /dev; \
./MAKEDEV bktr0
.endif
post-install:
@${CAT} ${PKGMESSAGE}

View file

@ -33,11 +33,7 @@ MAN1= pvr250-setchannel.1
.include <bsd.port.pre.mk>
.if ${OSVERSION} < 500000
MODULESDIR= /modules
.else
MODULESDIR= /boot/modules
.endif
PLIST_SUB= MODULESDIR=${MODULESDIR}
.if !exists(${DISTDIR}/hcwPVRP2.sys)
@ -54,21 +50,12 @@ IGNORE= You need the kernel sources installed to build this module.
.endif
patch-iicbb:
.if ${OSVERSION} < 500000
@if [ -z "`${GREP} cxm_iic /usr/src/sys/dev/iicbus/iicbb.c`" ]; then \
${PATCH} -d/sys <${WRKDIR}/dev/cxm/Patch.iicbb-fbsd4; \
${ECHO_CMD} "Patched /usr/src/sys/dev/iicbus/iicbb.c"; \
else \
${ECHO_CMD} "/usr/src/sys/dev/iicbus/iicbb.c was already patched"; \
fi
.else
@if [ -z "`${GREP} cxm_iic /usr/src/sys/dev/iicbus/iicbb.c`" ]; then \
${PATCH} -d/sys <${WRKDIR}/dev/cxm/Patch.iicbb-fbsd5; \
${ECHO_CMD} "Patched /usr/src/sys/dev/iicbus/iicbb.c"; \
else \
${ECHO_CMD} "/usr/src/sys/dev/iicbus/iicbb.c was already patched"; \
fi
.endif
do-extract:
${MKDIR} ${WRKDIR}
@ -79,15 +66,8 @@ do-extract:
${EXTRACT_CMD} ${EXTRACT_BEFORE_ARGS} ${_DISTDIR}/pvrxxx_gpl.tgz ${EXTRACT_AFTER_ARGS};
post-patch:
.if ${OSVERSION} < 500000
${REINPLACE_CMD} -e 's/cxm0/bktr0/' \
${WRKDIR}/${PVRTOOLS}/setchannel.c
${REINPLACE_CMD} -e 's/tuner0/bktr0/' \
${WRKDIR}/${PVRTOOLS}/setchannel.c
.else
${REINPLACE_CMD} -e 's/tuner0/cxm0/' \
${WRKDIR}/${PVRTOOLS}/setchannel.c
.endif
do-configure:
cd ${WRKDIR}/dev/cxm; \
@ -106,10 +86,6 @@ do-install:
${INSTALL_MAN} ${WRKDIR}/${PVRTOOLS}/cxm.4 ${PREFIX}/man/man4/cxm.4
${INSTALL_MAN} ${WRKDIR}/${PVRTOOLS}/pvr250-setchannel.1 ${PREFIX}/man/man1/pvr250-setchannel.1
${INSTALL_PROGRAM} ${WRKDIR}/${PVRTOOLS}/setchannel ${PREFIX}/bin/pvr250-setchannel
.if ${OSVERSION} < 500000
cd /dev; \
./MAKEDEV bktr0
.endif
post-install:
@${CAT} ${PKGMESSAGE}

View file

@ -110,10 +110,6 @@ BUILD_DEPENDS+= Xvfb:${X_VFBSERVER_PORT} \
${X11BASE}/lib/X11/fonts/misc/8x13O.pcf.gz:${X_FONTS_MISC_PORT}
.endif
.if ${OSVERSION} < 500000
IGNORE= is unsupported on FreeBSD 4.x
.endif
do-configure:
@${PYTHON_CMD} ${WRKSRC}/check.py

View file

@ -41,10 +41,4 @@ PLIST_FILES= bin/shell-fm \
share/examples/shell-fm/shell-fm.rc-example
PLIST_DIRS= share/examples/shell-fm
.include <bsd.port.pre.mk>
.if ${OSVERSION} < 500000
BROKEN= Does not compile on 4.x
.endif
.include <bsd.port.post.mk>
.include <bsd.port.mk>

View file

@ -15,12 +15,6 @@ COMMENT= Converts .TiVo files to normal MPEG files
USE_GMAKE= yes
.include <bsd.port.pre.mk>
.if ${OSVERSION} < 500000
EXTRA_PATCHES= ${FILESDIR}/extra-patch-tivo-parse.c
.endif
post-patch:
${REINPLACE_CMD} -e 's/CFLAGS=/CFLAGS+=/' ${WRKSRC}/Makefile
@ -32,4 +26,4 @@ do-install:
${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
.endif
.include <bsd.port.post.mk>
.include <bsd.port.mk>

View file

@ -38,6 +38,7 @@ CONFIGURE_ENV= LIBS="-L${PREFIX}/lib -L${LOCALBASE}/lib" \
CFLAGS="-I${WRKSRC}/common"
MAKE_ENV= verbose=yes
USE_LDCONFIG= yes
ONLY_FOR_ARCHS= alpha amd64 i386
FILES_LIBJPEG= console/Subdir.mk debug/Subdir.mk x11/Subdir.mk
@ -50,12 +51,6 @@ MAN8= v4l-conf.8
.include <bsd.port.pre.mk>
.if ${OSVERSION} < 500000
ONLY_FOR_ARCHS= i386
.else
ONLY_FOR_ARCHS= alpha amd64 i386
.endif
.if defined(WITHOUT_AA)
CONFIGURE_ARGS+=--disable-aa
PLIST_SUB+= AA="@comment "
@ -68,12 +63,8 @@ PLIST_SUB+= AA=""
.if defined(WITH_ZVBI)
LIB_DEPENDS+= zvbi.10:${PORTSDIR}/devel/libzvbi
CONFIGURE_ARGS+=--enable-zvbi
.if ${OSVERSION} > 500000
PLIST_SUB+= ZVBI="" ZVBI5=""
.else
PLIST_SUB+= ZVBI="" ZVBI5="@comment "
.endif
.else
CONFIGURE_ARGS+=--enable-zvbi=no
PLIST_SUB+= ZVBI="@comment " ZVBI5="@comment "
.endif
@ -118,9 +109,4 @@ post-patch:
@${REINPLACE_CMD} -e "s|-ljpeg|-L${LOCALBASE}/lib -ljpeg|g" ${WRKSRC}/$i
.endfor
.if ${OSVERSION} < 500000
@${REINPLACE_CMD} -e "s|FOUND_ZVBI|NOT_WORKING_&|g" \
${WRKSRC}/vbistuff/Subdir.mk ${WRKSRC}/x11/Subdir.mk
.endif
.include <bsd.port.post.mk>

View file

@ -36,10 +36,6 @@ post-patch:
${WRKSRC}/Makefile
@${REINPLACE_CMD} -e 's|CXXFLAGS =|CXXFLAGS = ${CXXFLAGS} |' \
${WRKSRC}/Makefile
.if ${OSVERSION} < 500000
@${REINPLACE_CMD} -e 's|#define HAVE_STDINT_H 1|#undef HAVE_STDINT_H 1|' \
${WRKSRC}/y4m-config.h
.endif
do-install:
@${INSTALL_PROGRAM} ${WRKSRC}/y4mscaler ${PREFIX}/bin/y4mscaler