summaryrefslogtreecommitdiff
path: root/graphics
diff options
context:
space:
mode:
authorEdwin Groothuis <edwin@FreeBSD.org>2007-10-04 01:14:50 +0000
committerEdwin Groothuis <edwin@FreeBSD.org>2007-10-04 01:14:50 +0000
commit42b9878de05e3fd31b1537c7fb21ea8d4260e335 (patch)
treefaaedbe6ae8110bb19ce982907b65ca7c487c291 /graphics
parentRemove always-false/true conditions based on OSVERSION 500000 (diff)
Remove always-false/true conditions based on OSVERSION 500000
Notes
Notes: svn path=/head/; revision=200773
Diffstat (limited to 'graphics')
-rw-r--r--graphics/ale/Makefile2
-rw-r--r--graphics/amanith/Makefile4
-rw-r--r--graphics/cairomm/Makefile8
-rw-r--r--graphics/corona/Makefile8
-rw-r--r--graphics/crystalspace-devel/Makefile4
-rw-r--r--graphics/dri/Makefile7
-rw-r--r--graphics/edje/Makefile4
-rw-r--r--graphics/exrtools/Makefile21
-rw-r--r--graphics/geomorph/Makefile8
-rw-r--r--graphics/glitz/Makefile10
-rw-r--r--graphics/gwenview-kde4/Makefile8
-rw-r--r--graphics/gwenview/Makefile8
-rw-r--r--graphics/ida/Makefile10
-rw-r--r--graphics/inventor/Makefile8
-rw-r--r--graphics/kphotoalbum-kde4/Makefile8
-rw-r--r--graphics/kphotoalbum/Makefile8
-rw-r--r--graphics/libpcd/Makefile9
-rw-r--r--graphics/libsvg/Makefile10
-rw-r--r--graphics/libx3dtk/Makefile4
-rw-r--r--graphics/metacam/Makefile10
-rw-r--r--graphics/netpbm/Makefile5
-rw-r--r--graphics/povray/Makefile4
-rw-r--r--graphics/povray36/Makefile4
-rw-r--r--graphics/povray37/Makefile4
-rw-r--r--graphics/py-cairo/Makefile8
-rw-r--r--graphics/raster3d/Makefile8
-rw-r--r--graphics/sharpconstruct/Makefile8
-rw-r--r--graphics/swfmill/Makefile8
-rw-r--r--graphics/uDrawGraph/Makefile10
-rw-r--r--graphics/xnview/Makefile14
-rw-r--r--graphics/xnview/pkg-plist2
31 files changed, 23 insertions, 211 deletions
diff --git a/graphics/ale/Makefile b/graphics/ale/Makefile
index 00f9b893eed9..dbb639a58efa 100644
--- a/graphics/ale/Makefile
+++ b/graphics/ale/Makefile
@@ -32,7 +32,7 @@ PLIST_FILES= bin/ale
BROKEN= Does not build on alpha
.endif
-.if ${OSVERSION} >= 500000 && ${OSVERSION} < 600000
+.if ${OSVERSION} < 600000
BROKEN= Does not build on 5.x due to internal gcc error
.endif
diff --git a/graphics/amanith/Makefile b/graphics/amanith/Makefile
index b17a40ac2286..7bbf241bd940 100644
--- a/graphics/amanith/Makefile
+++ b/graphics/amanith/Makefile
@@ -40,10 +40,6 @@ WRKSRC= ${WRKDIR}/${PORTNAME}
.include <bsd.port.pre.mk>
-.if ${OSVERSION} < 500000
-IGNORE= does not build on FreeBSD 4.x
-.endif
-
.if ${OSVERSION} >= 700042
BROKEN= Broken with gcc 4.2
.endif
diff --git a/graphics/cairomm/Makefile b/graphics/cairomm/Makefile
index 4bb9cce7aec3..535bf371d198 100644
--- a/graphics/cairomm/Makefile
+++ b/graphics/cairomm/Makefile
@@ -26,12 +26,6 @@ CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include -I${X11BASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib -L${X11BASE}/lib" \
AUTOMAKE="${TRUE}" AUTOCONF="${TRUE}" DOXYGEN="${TRUE}"
-.include <bsd.port.pre.mk>
-
-.if ${OSVERSION} < 500000
-BROKEN= Does not build
-.endif
-
.if defined(NOPORTDOCS)
CONFIGURE_ARGS+= --disable-docs
@@ -42,4 +36,4 @@ post-configure:
@${TOUCH} -f ${WRKSRC}/docs/reference/html/index.html
.endif
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff --git a/graphics/corona/Makefile b/graphics/corona/Makefile
index e99f10a401fd..1367e6cc2de1 100644
--- a/graphics/corona/Makefile
+++ b/graphics/corona/Makefile
@@ -23,12 +23,6 @@ USE_GNOME= gnometarget lthack
GNU_CONFIGURE= yes
INSTALLS_SHLIB= yes
-.include <bsd.port.pre.mk>
-
-.if ${OSVERSION} <= 500000
-USE_GCC= 3.4+
-.endif
-
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS} -I${LOCALBASE}/include" \
LIBS="${LIBS} -L${LOCALBASE}/lib"
@@ -37,4 +31,4 @@ post-patch:
's|-Wall||' \
${WRKSRC}/configure
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff --git a/graphics/crystalspace-devel/Makefile b/graphics/crystalspace-devel/Makefile
index 18151c48049d..8cd98f9099d3 100644
--- a/graphics/crystalspace-devel/Makefile
+++ b/graphics/crystalspace-devel/Makefile
@@ -63,10 +63,6 @@ OPTIONS= DEBUG "Build with debugging information" off \
.include <bsd.port.pre.mk>
-.if ${OSVERSION} < 500000
-BROKEN= Does not compile on 4.x
-.endif
-
.if ${ARCH} == "sparc64"
BROKEN= Does not compile on sparc64
.endif
diff --git a/graphics/dri/Makefile b/graphics/dri/Makefile
index 7046f14d2d7c..2ae09d9b6337 100644
--- a/graphics/dri/Makefile
+++ b/graphics/dri/Makefile
@@ -60,11 +60,4 @@ do-install:
IGNORE= requires libGL from X.Org
.endif
-.if ${OSVERSION} < 500000
-pre-patch:
- @${REINPLACE_CMD} -e 's|stdint.h|sys/types.h|g' \
- ${WRKSRC}/src/mesa/drivers/dri/mga/mga_xmesa.c \
- ${WRKSRC}/src/mesa/drivers/dri/mga/mgacontext.h
-.endif
-
.include <bsd.port.post.mk>
diff --git a/graphics/edje/Makefile b/graphics/edje/Makefile
index 3c96a4aa7b17..a6342bfdba7f 100644
--- a/graphics/edje/Makefile
+++ b/graphics/edje/Makefile
@@ -24,10 +24,6 @@ USE_LDCONFIG= yes
.include <bsd.port.pre.mk>
-.if ${OSVERSION} < 500000
-IGNORE= does not build on 4.X
-.endif
-
.if ${ARCH} == "ia64"
BROKEN= edje is broken on ia64
.endif
diff --git a/graphics/exrtools/Makefile b/graphics/exrtools/Makefile
index ec57efcb339c..c3eeeff1fdf4 100644
--- a/graphics/exrtools/Makefile
+++ b/graphics/exrtools/Makefile
@@ -37,27 +37,10 @@ MAN1= exrblur.1 exrchr.1 exricamtm.1 exrnlm.1 exrnormalize.1 \
exrpptm.1 exrstats.1 exrtools.1 exrtopng.1 jpegtoexr.1 \
pngtoexr.1 ppmtoexr.1
-.include <bsd.port.pre.mk>
-
post-patch:
@${REINPLACE_CMD} -e 's|<values\.h>|<float.h>|' \
${WRKSRC}/src/exrnormalize.c \
${WRKSRC}/src/exrpptm.c \
${WRKSRC}/src/exrstats.c
-.if ${OSVERSION} < 500000
- @${REINPLACE_CMD} -e 's|stdint\.h|inttypes.h|' \
- ${WRKSRC}/src/exrblur.c \
- ${WRKSRC}/src/exrchr.c \
- ${WRKSRC}/src/exrnlm.c \
- ${WRKSRC}/src/exrnormalize.c \
- ${WRKSRC}/src/exrpptm.c \
- ${WRKSRC}/src/ppmtoexr.c \
- ${WRKSRC}/src/exricamtm.c \
- ${WRKSRC}/src/jpeginput.h \
- ${WRKSRC}/src/pngoutput.h \
- ${WRKSRC}/src/pnginput.h
- @${REINPLACE_CMD} -e 's|inttypes\.h|sys/types.h|' \
- ${WRKSRC}/src/ppmtoexr.c
-.endif
-
-.include <bsd.port.post.mk>
+
+.include <bsd.port.mk>
diff --git a/graphics/geomorph/Makefile b/graphics/geomorph/Makefile
index d57f9b12ef1b..fc95d80f32eb 100644
--- a/graphics/geomorph/Makefile
+++ b/graphics/geomorph/Makefile
@@ -24,12 +24,6 @@ GNU_CONFIGURE= yes
PLIST_SUB= PORTVERSION=${PORTVERSION}
-.include <bsd.port.pre.mk>
-
-.if ${OSVERSION} < 500000
-EXTRA_PATCHES= ${PATCHDIR}/extra-patch-*
-.endif
-
post-patch:
@${REINPLACE_CMD} -e 's|libpng|libpng12|' ${WRKSRC}/configure
@${REINPLACE_CMD} -e 's|/usr/local/share/geomorph|${DATADIR}|' ${WRKSRC}/install-step* ${WRKSRC}/install-user ${WRKSRC}/src/app/app.c
@@ -37,4 +31,4 @@ post-patch:
@${REINPLACE_CMD} -e '/DEFAULT_DIR/ s|geomorph|.geomorph|' ${WRKSRC}/src/app/globals.h ${WRKSRC}/src/hf/globals.h
@${RM} ${WRKSRC}/install-step*.bak ${WRKSRC}/install-user*.bak
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff --git a/graphics/glitz/Makefile b/graphics/glitz/Makefile
index 8146c84f6eda..d03b9af101ea 100644
--- a/graphics/glitz/Makefile
+++ b/graphics/glitz/Makefile
@@ -23,12 +23,4 @@ USE_LDCONFIG= yes
CONFIGURE_ENV= CPPFLAGS="${PTHREAD_CFLAGS}" \
LDFLAGS="${PTHREAD_LIBS}"
-.include <bsd.port.pre.mk>
-
-post-patch:
-.if ${OSVERSION} < 500000
- @${REINPLACE_CMD} -e 's|stdint.h|inttypes.h|' \
- ${WRKSRC}/src/glitzint.h
-.endif
-
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff --git a/graphics/gwenview-kde4/Makefile b/graphics/gwenview-kde4/Makefile
index e9de42fd1c19..561c27ebc643 100644
--- a/graphics/gwenview-kde4/Makefile
+++ b/graphics/gwenview-kde4/Makefile
@@ -30,10 +30,4 @@ MAN1= gwenview.1
post-patch:
@${REINPLACE_CMD} -e 's|-O2||g' ${WRKSRC}/${CONFIGURE_SCRIPT}
-.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>
diff --git a/graphics/gwenview/Makefile b/graphics/gwenview/Makefile
index e9de42fd1c19..561c27ebc643 100644
--- a/graphics/gwenview/Makefile
+++ b/graphics/gwenview/Makefile
@@ -30,10 +30,4 @@ MAN1= gwenview.1
post-patch:
@${REINPLACE_CMD} -e 's|-O2||g' ${WRKSRC}/${CONFIGURE_SCRIPT}
-.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>
diff --git a/graphics/ida/Makefile b/graphics/ida/Makefile
index a4d8434ca390..b43b57bd9827 100644
--- a/graphics/ida/Makefile
+++ b/graphics/ida/Makefile
@@ -33,14 +33,6 @@ PORTDOCS= README TODO INSTALL
PLIST_FILES= bin/exiftran bin/ida lib/X11/app-defaults/Ida
-.include <bsd.port.pre.mk>
-
-post-patch:
-.if ${OSVERSION} < 500000
- @${REINPLACE_CMD} -e 's|PRId32|"d"|g' -e 's|PRIx32|"x"|g' \
- ${WRKSRC}/tiff.c ${WRKSRC}/xwd.c
-.endif
-
post-install:
${INSTALL_PROGRAM} ${WRKSRC}/exiftran ${PREFIX}/bin
.if !defined(NOPORTDOCS)
@@ -50,4 +42,4 @@ post-install:
.endfor
.endif
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff --git a/graphics/inventor/Makefile b/graphics/inventor/Makefile
index 0ab5fd2c412d..7888e330e111 100644
--- a/graphics/inventor/Makefile
+++ b/graphics/inventor/Makefile
@@ -147,12 +147,6 @@ MAN3= SoAction.3iv SoCallbackAction.3iv SoGLRenderAction.3iv \
SoXtExaminerViewer.3iv SoXtFlyViewer.3iv SoXtFullViewer.3iv \
SoXtPlaneViewer.3iv SoXtViewer.3iv SoXtWalkViewer.3iv
-.include <bsd.port.pre.mk>
-
-.if ${OSVERSION} < 500000
-BROKEN= "Does not compile"
-.endif
-
post-patch:
@${REINPLACE_CMD} -e 's|%%CC%%|${CC}|g ;\
s|%%CXX%%|${CXX}|g ; \
@@ -160,4 +154,4 @@ post-patch:
post-install:
@${SED} -e "s,%%PREFIX%%,${PREFIX},g" ${PKGMESSAGE}
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff --git a/graphics/kphotoalbum-kde4/Makefile b/graphics/kphotoalbum-kde4/Makefile
index bb540de0edd8..dc73974ea80c 100644
--- a/graphics/kphotoalbum-kde4/Makefile
+++ b/graphics/kphotoalbum-kde4/Makefile
@@ -25,10 +25,4 @@ USE_AUTOTOOLS= libtool:15
post-patch:
@${REINPLACE_CMD} -e 's/-O2//g' ${WRKSRC}/${CONFIGURE_SCRIPT}
-.include <bsd.port.pre.mk>
-
-.if ${OSVERSION} < 500000
-BROKEN= Does not compile
-.endif
-
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff --git a/graphics/kphotoalbum/Makefile b/graphics/kphotoalbum/Makefile
index bb540de0edd8..dc73974ea80c 100644
--- a/graphics/kphotoalbum/Makefile
+++ b/graphics/kphotoalbum/Makefile
@@ -25,10 +25,4 @@ USE_AUTOTOOLS= libtool:15
post-patch:
@${REINPLACE_CMD} -e 's/-O2//g' ${WRKSRC}/${CONFIGURE_SCRIPT}
-.include <bsd.port.pre.mk>
-
-.if ${OSVERSION} < 500000
-BROKEN= Does not compile
-.endif
-
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff --git a/graphics/libpcd/Makefile b/graphics/libpcd/Makefile
index d1cf1f71e957..102c7e0eabd2 100644
--- a/graphics/libpcd/Makefile
+++ b/graphics/libpcd/Makefile
@@ -19,11 +19,4 @@ INSTALLS_SHLIB= yes
WRKSRC= ${WRKDIR}/${DISTNAME:S/_/-/}
MAKEFILE= ${WRKSRC}/GNUmakefile
-.include <bsd.port.pre.mk>
-
-.if ${OSVERSION} < 500000
-post-patch:
- @${REINPLACE_CMD} -e 's/uint_fast16_t/uint32_t/' ${WRKSRC}/yuv2rgb.c
-.endif
-
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff --git a/graphics/libsvg/Makefile b/graphics/libsvg/Makefile
index 477fdab16cdb..8fa5055ad603 100644
--- a/graphics/libsvg/Makefile
+++ b/graphics/libsvg/Makefile
@@ -32,12 +32,4 @@ PLIST_FILES= include/svg.h \
lib/libsvg.so.1 \
libdata/pkgconfig/libsvg.pc
-.include <bsd.port.pre.mk>
-
-post-patch:
-.if ${OSVERSION} < 500000
- @${REINPLACE_CMD} -e 's|stdint.h|inttypes.h|' \
- ${WRKSRC}/src/svg_ascii.h
-.endif
-
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff --git a/graphics/libx3dtk/Makefile b/graphics/libx3dtk/Makefile
index d418e8417a1d..cb5e33842ecb 100644
--- a/graphics/libx3dtk/Makefile
+++ b/graphics/libx3dtk/Makefile
@@ -35,10 +35,6 @@ QMAKESPEC?= ${LOCALBASE}/share/qt/mkspecs/freebsd-g++
.include <bsd.port.pre.mk>
-.if ${OSVERSION} < 500000
-BROKEN=does not compile
-.endif
-
.if ${ARCH} == "ia64"
BROKEN= broken on ia64
.endif
diff --git a/graphics/metacam/Makefile b/graphics/metacam/Makefile
index c5edb953d448..ea0a55fbcf28 100644
--- a/graphics/metacam/Makefile
+++ b/graphics/metacam/Makefile
@@ -30,14 +30,6 @@ MAN1= metacam.1
ALL_TARGET= ${PORTNAME}
-.include <bsd.port.pre.mk>
-
-.if ${OSVERSION} < 500000
-post-patch:
- @${REINPLACE_CMD} -e 's|<\(getopt\.h\)>|"\1"|' ${WRKSRC}/${PORTNAME}.cc
- ${CP} ${FILESDIR}/getopt.h ${WRKSRC}
-.endif
-
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
${INSTALL_MAN} ${FILESDIR}/${PORTNAME}.1 ${MANPREFIX}/man/man1
@@ -49,4 +41,4 @@ do-install:
.endfor
.endif
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff --git a/graphics/netpbm/Makefile b/graphics/netpbm/Makefile
index 60d62a7f0f1a..d42dc4b21872 100644
--- a/graphics/netpbm/Makefile
+++ b/graphics/netpbm/Makefile
@@ -52,11 +52,6 @@ DEVEL_PORTVERSION= 10.31
# -O causes an ICE in converter/other/exif.c with gcc 3.3.3 on sparc64.
CFLAGS+= -O0
.endif
-.if ${ARCH} == "alpha"
-.if ${OSVERSION} < 500000
-CFLAGS+= -O0
-.endif
-.endif
.if defined(WITH_NETPBM_DEVEL)
EXTRA_PATCHES+= ${FILESDIR}/editor-pnmquant-devel.patch
diff --git a/graphics/povray/Makefile b/graphics/povray/Makefile
index ad10dd9bd9aa..667c22abee3c 100644
--- a/graphics/povray/Makefile
+++ b/graphics/povray/Makefile
@@ -63,10 +63,6 @@ CONFIGURE_ARGS= --x-includes="${X11BASE}/include" --includedir=${LOCALBASE} \
MAN1= povray.1
-.if ${OSVERSION} < 500000
-BROKEN= Does not build on 4.x
-.endif
-
post-patch:
#@${REINPLACE_CMD} -e 's+@PREFIX@+${PREFIX}+g;' ${WRKSRC}/povray.ini
#@${REINPLACE_CMD} -e 's+%INSTALLDIR%+${PREFIX}/share/${PORTNAME}-${PORTVERSION}+g;' ${WRKSRC}/povray.conf
diff --git a/graphics/povray36/Makefile b/graphics/povray36/Makefile
index ad10dd9bd9aa..667c22abee3c 100644
--- a/graphics/povray36/Makefile
+++ b/graphics/povray36/Makefile
@@ -63,10 +63,6 @@ CONFIGURE_ARGS= --x-includes="${X11BASE}/include" --includedir=${LOCALBASE} \
MAN1= povray.1
-.if ${OSVERSION} < 500000
-BROKEN= Does not build on 4.x
-.endif
-
post-patch:
#@${REINPLACE_CMD} -e 's+@PREFIX@+${PREFIX}+g;' ${WRKSRC}/povray.ini
#@${REINPLACE_CMD} -e 's+%INSTALLDIR%+${PREFIX}/share/${PORTNAME}-${PORTVERSION}+g;' ${WRKSRC}/povray.conf
diff --git a/graphics/povray37/Makefile b/graphics/povray37/Makefile
index ad10dd9bd9aa..667c22abee3c 100644
--- a/graphics/povray37/Makefile
+++ b/graphics/povray37/Makefile
@@ -63,10 +63,6 @@ CONFIGURE_ARGS= --x-includes="${X11BASE}/include" --includedir=${LOCALBASE} \
MAN1= povray.1
-.if ${OSVERSION} < 500000
-BROKEN= Does not build on 4.x
-.endif
-
post-patch:
#@${REINPLACE_CMD} -e 's+@PREFIX@+${PREFIX}+g;' ${WRKSRC}/povray.ini
#@${REINPLACE_CMD} -e 's+%INSTALLDIR%+${PREFIX}/share/${PORTNAME}-${PORTVERSION}+g;' ${WRKSRC}/povray.conf
diff --git a/graphics/py-cairo/Makefile b/graphics/py-cairo/Makefile
index 7ffb7a42a885..4cd1bbabe2d2 100644
--- a/graphics/py-cairo/Makefile
+++ b/graphics/py-cairo/Makefile
@@ -29,15 +29,9 @@ CONFIGURE_ARGS= --without-pygtk
CONFIGURE_ENV= CPPFLAGS="-I${X11BASE}/include" \
LDFLAGS="-L${X11BASE}/lib"
-.include <bsd.port.pre.mk>
-
-.if ${OSVERSION} < 500000
-IGNORE= does not build on FreeBSD 4.x
-.endif
-
post-patch:
@${REINPLACE_CMD} -e 's|$$(libdir)/pkgconfig|${PREFIX}/libdata/pkgconfig|; \
s|SUBDIRS = cairo examples test|SUBDIRS = cairo examples|' \
${WRKSRC}/Makefile.in
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff --git a/graphics/raster3d/Makefile b/graphics/raster3d/Makefile
index 2027a7472a1f..fe379fccf492 100644
--- a/graphics/raster3d/Makefile
+++ b/graphics/raster3d/Makefile
@@ -35,12 +35,6 @@ PLIST_SUB+= IMAGEMAGICK="@comment "
MANL= avs2ps.l label3d.l r3d_objects.l rastep.l render.l rods.l \
balls.l normal3d.l r3dtops.l raster3d.l ribbon.l stereo3d.l
-.include <bsd.port.pre.mk>
-
-.if ${OSVERSION} < 500000
-EXTRA_PATCHES= ${FILESDIR}/extrapatch-avs2ps.c ${FILESDIR}/extrapatch-in.h
-.endif
-
pre-build:
@cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE} freebsd
@@ -65,4 +59,4 @@ post-install:
cd ${WRKSRC}/examples/msms && ${INSTALL_DATA} * ${EXAMPLESDIR}/msms
.endif
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff --git a/graphics/sharpconstruct/Makefile b/graphics/sharpconstruct/Makefile
index c3c00cce5f31..e661847c5f95 100644
--- a/graphics/sharpconstruct/Makefile
+++ b/graphics/sharpconstruct/Makefile
@@ -29,12 +29,6 @@ MAN1= sharpconstruct.1
ONLY_FOR_ARCHS= i386
-.include <bsd.port.pre.mk>
-
-.if ${OSVERSION} < 500000
-BROKEN= Does not compile on FreeBSD 4.x (lack of *round* functions)
-.endif
-
post-patch:
@${REINPLACE_CMD} -e 's|malloc.h|stdlib.h|' ${WRKSRC}/include/Align.hh
@${REINPLACE_CMD} -e 's|"/sharpconstruct|"|' ${WRKSRC}/src/MainWindow.cc
@@ -44,4 +38,4 @@ post-patch:
@${FIND} ${WRKSRC} -name Makefile.in -print0 | ${XARGS} -0 \
${REINPLACE_CMD} -e '/^DEFS / s|$$| -DDATADIR=\\"${DATADIR}\\"|'
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff --git a/graphics/swfmill/Makefile b/graphics/swfmill/Makefile
index 6b84c964624a..11a8dd115b99 100644
--- a/graphics/swfmill/Makefile
+++ b/graphics/swfmill/Makefile
@@ -24,13 +24,7 @@ CONFIGURE_ENV+= LDFLAGS="${LDFLAGS}" PKG_CONFIG=${LOCALBASE}/bin/pkg-config
USE_LDCONFIG= YES
-.include <bsd.port.pre.mk>
-
post-patch:
@${REINPLACE_CMD} -e 's|libpng|libpng12|' ${WRKSRC}/configure
-.if ${OSVERSION} < 500000
- ${REINPLACE_CMD} 's:#include.<stdint\.h>:#include <sys/types.h>:' \
- ${WRKSRC}/src/*.h
-.endif
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff --git a/graphics/uDrawGraph/Makefile b/graphics/uDrawGraph/Makefile
index df13ba70985c..4c5225b2ff41 100644
--- a/graphics/uDrawGraph/Makefile
+++ b/graphics/uDrawGraph/Makefile
@@ -15,6 +15,8 @@ DISTNAME= ${PORTNAME}-${PORTVERSION}-${PKGNUM}-${OPSYS:L}-${ARCH}
MAINTAINER= nivit@FreeBSD.org
COMMENT= A graph drawing/visualization system
+LIB_DEPENDS= c.4:${PORTSDIR}/misc/compat4x
+
NO_BUILD= yes
ONLY_FOR_ARCHS= i386
@@ -79,10 +81,4 @@ do-install:
@${LN} ${LINK_OPTS} ${DOCSDIR} ${DATADIR}/docs
.endif
-.include <bsd.port.pre.mk>
-
-.if ${OSVERSION} >= 500000
-LIB_DEPENDS+= c.4:${PORTSDIR}/misc/compat4x
-.endif
-
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff --git a/graphics/xnview/Makefile b/graphics/xnview/Makefile
index 19d268585273..9c88ce418d3c 100644
--- a/graphics/xnview/Makefile
+++ b/graphics/xnview/Makefile
@@ -27,16 +27,6 @@ MLINKS= nview.1 nv.1 \
.include <bsd.port.pre.mk>
-.if ${OSVERSION} < 500000
-PORTVERSION= 1.68
-PORTREVISION= 1
-DISTNAME= XnView-x86-unknown-FreeBSD4.x-static
-WRKSRC= ${WRKDIR}/XnView-${PORTVERSION}-x86-unknown-FreeBSD4.x-static
-PLIST_SUB+= FREEBSD4=""
-.else
-PLIST_SUB+= FREEBSD4="@comment "
-.endif
-
.if ${OSVERSION} >= 600000
LIB_DEPENDS+= c.5:${PORTSDIR}/misc/compat5x
.endif
@@ -45,10 +35,6 @@ do-install:
${INSTALL_PROGRAM} ${WRKSRC}/bin/xnview ${PREFIX}/bin/xnview
${INSTALL_PROGRAM} ${WRKSRC}/bin/nview ${PREFIX}/bin/nv
${INSTALL_PROGRAM} ${WRKSRC}/bin/nconvert ${PREFIX}/bin/nconvert
-.if ${OSVERSION} < 500000
- ${INSTALL_PROGRAM} ${WRKSRC}/lib/libformat.so.4.16 ${PREFIX}/lib/libformat.so.4
- ${LN} -sf ${PREFIX}/lib/libformat.so.4 ${PREFIX}/lib/libformat.so
-.endif
${INSTALL_DATA} ${WRKSRC}/app-defaults/XnView.ad ${PREFIX}/lib/X11/app-defaults/XnView
cd ${WRKSRC}/man && ${INSTALL_MAN} xnview.1 nview.1 ${PREFIX}/man/man1
diff --git a/graphics/xnview/pkg-plist b/graphics/xnview/pkg-plist
index b2bf0c1130b7..4023cd146830 100644
--- a/graphics/xnview/pkg-plist
+++ b/graphics/xnview/pkg-plist
@@ -2,8 +2,6 @@ bin/nconvert
bin/nv
bin/xnview
lib/X11/app-defaults/XnView
-%%FREEBSD4%%lib/libformat.so
-%%FREEBSD4%%lib/libformat.so.4
%%PORTDOCS%%%%DOCSDIR%%/Formats.txt
%%PORTDOCS%%%%DOCSDIR%%/ReadMe.txt
%%PORTDOCS%%%%DOCSDIR%%/Usage.txt