summaryrefslogtreecommitdiff
path: root/graphics/xsane/Makefile
diff options
context:
space:
mode:
authorOliver Lehmann <oliver@FreeBSD.org>2004-10-29 16:50:14 +0000
committerOliver Lehmann <oliver@FreeBSD.org>2004-10-29 16:50:14 +0000
commit27e8ab70e2c26969c60756894cf971b58cad6963 (patch)
treec8b72a6837af86868893a1da24376f396d7ca901 /graphics/xsane/Makefile
parent- Security Patch (diff)
update to 0.96 [1]
remove -O options from CFLAGS for gcc versions < 3 PR: ports/71658 Submitted By: Dominik Brettnacher <domi@saargate.de> Approved By: maintainer
Notes
Notes: svn path=/head/; revision=120465
Diffstat (limited to 'graphics/xsane/Makefile')
-rw-r--r--graphics/xsane/Makefile10
1 files changed, 8 insertions, 2 deletions
diff --git a/graphics/xsane/Makefile b/graphics/xsane/Makefile
index a5d5b7d8628a..935956846102 100644
--- a/graphics/xsane/Makefile
+++ b/graphics/xsane/Makefile
@@ -6,7 +6,7 @@
#
PORTNAME= xsane
-PORTVERSION= 0.93
+PORTVERSION= 0.96
CATEGORIES= graphics
MASTER_SITES= http://www.xsane.org/download/ \
http://gd.tuwien.ac.at/hci/sane/xsane/ \
@@ -43,6 +43,12 @@ USE_GNOME= gtk12
CONFIGURE_ARGS+= --disable-gtk2
.endif
+.include <bsd.port.pre.mk>
+
+.if ${OSVERSION} < 500035
+CONFIGURE_ENV+= CFLAGS="${CFLAGS:C/-O[0-9]*//g}"
+.endif
+
pre-everything::
.if !defined(WITH_GIMP)
@${ECHO_MSG} "*** Note: XSane can be built with a standalone"
@@ -58,4 +64,4 @@ pre-patch:
post-install:
@${SED} 's:/usr/X11R6:${PREFIX}:' ${PKGMESSAGE}
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>