- Add OCFLAGS to make CFLAGS the same as distribution's by default
(this is preferable by the authors).
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -1,9 +0,0 @@
|
||||
--- Makefile.orig 2008-12-22 23:43:29.000000000 +0800
|
||||
+++ Makefile 2008-12-22 23:43:58.000000000 +0800
|
||||
@@ -1,5 +1,5 @@
|
||||
CXX? = g++
|
||||
-CFLAGS = -Wall -Wconversion -O3 -fPIC
|
||||
+CFLAGS += -Wall -Wconversion -O3 -fPIC
|
||||
SHVER = 1
|
||||
|
||||
all: svm-train svm-predict svm-scale
|
||||
Reference in New Issue
Block a user