aboutsummaryrefslogtreecommitdiffstats
path: root/science/libsvm/Makefile
diff options
context:
space:
mode:
authorrafan <rafan@FreeBSD.org>2008-12-22 23:48:54 +0800
committerrafan <rafan@FreeBSD.org>2008-12-22 23:48:54 +0800
commit16d09d655c0cb481b19e335d32d3a63708733df7 (patch)
tree0772fa82585464e18450cb19142e71855245b125 /science/libsvm/Makefile
parent0a01db7cf5eb5cb8ef8340cb88b8661a6960d118 (diff)
downloadfreebsd-ports-gnome-16d09d655c0cb481b19e335d32d3a63708733df7.tar.gz
freebsd-ports-gnome-16d09d655c0cb481b19e335d32d3a63708733df7.tar.zst
freebsd-ports-gnome-16d09d655c0cb481b19e335d32d3a63708733df7.zip
- Add OCFLAGS to make CFLAGS the same as distribution's by default
(this is preferable by the authors).
Diffstat (limited to 'science/libsvm/Makefile')
-rw-r--r--science/libsvm/Makefile7
1 files changed, 7 insertions, 0 deletions
diff --git a/science/libsvm/Makefile b/science/libsvm/Makefile
index 7449f051d9ab..038927ad0159 100644
--- a/science/libsvm/Makefile
+++ b/science/libsvm/Makefile
@@ -15,6 +15,8 @@ MASTER_SITES= http://www.csie.ntu.edu.tw/~cjlin/libsvm/ \
MAINTAINER= rafan@FreeBSD.org
COMMENT= A library for Support Vector Machines
+OPTIONS= OCFLAGS "Use optimized CFLAGS" On
+
USE_ZIP= yes
.if defined(PKGNAMESUFFIX) && ${PKGNAMESUFFIX} == "-python"
@@ -48,6 +50,11 @@ PORTDOCS= ${TXT_DOCS}
.include <bsd.port.pre.mk>
+.if !defined(WITHOUT_OCFLAGS)
+# same as LIBSVM itself
+CFLAGS= -Wall -Wconversion -O3
+.endif
+
post-patch:
post-extract: