Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 12 Jul 2005 01:17:58 +0800 (CST)
From:      Rong-En Fan <rafan@infor.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/83276: [MAINTAINER] science/libsvm: update to 2.8
Message-ID:  <200507111717.j6BHHwqm062102@svm.csie.ntu.edu.tw>
Resent-Message-ID: <200507111720.j6BHK2Ee058901@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         83276
>Category:       ports
>Synopsis:       [MAINTAINER] science/libsvm: update to 2.8
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Mon Jul 11 17:20:01 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator:     Rong-En Fan
>Release:        FreeBSD 5.4-RELEASE-p3 i386
>Organization:
NTU CSIE
>Environment:
>Description:
- Update to 2.8
- I have to use PORTEPOCH to make port lint happy (2.8 < 2.71_2 ...)
- remove tricks for building on amd64, author already solved this.

Generated with FreeBSD Port Tools 0.63
>How-To-Repeat:
>Fix:

--- libsvm-2.8,1.patch begins here ---
diff -ruN --exclude=CVS /usr/ports/science/libsvm/Makefile /home/rafan/tmp/ports/libsvm/Makefile
--- /usr/ports/science/libsvm/Makefile	Tue Dec 21 03:20:08 2004
+++ /home/rafan/tmp/ports/libsvm/Makefile	Tue Jul 12 01:16:31 2005
@@ -6,8 +6,9 @@
 #
 
 PORTNAME=	libsvm
-PORTVERSION=	2.71
-PORTREVISION=	2
+PORTVERSION=	2.8
+PORTREVISION=	0
+PORTEPOCH=	1
 CATEGORIES=	science math
 MASTER_SITES=	http://www.csie.ntu.edu.tw/~cjlin/libsvm/ \
 		http://www.csie.ntu.edu.tw/~cjlin/libsvm/oldfiles/
@@ -33,19 +34,13 @@
 .if !defined(NOPORTDOCS)
 PORTDOCS=	${TXT_DOCS}
 .endif
-TOOLS=		python/grid.py python/easy.py
+TOOLS=		tools/grid.py tools/easy.py
 
 MSG_FILE=	${PKGDIR}/pkg-message
 PKGMESSAGE=	${WRKSRC}/pkg-message
 
 .include <bsd.port.pre.mk>
 
-.if ${ARCH} == "amd64"
-AMD64=	-fPIC
-.else
-AMD64=
-.endif
-
 pre-everything::
 .if defined(WITH_PYTHON)
 	@${ECHO_MSG} "Build with Python interface."
@@ -56,9 +51,7 @@
 post-patch:
 .if defined(WITH_PYTHON)
 	@${REINPLACE_CMD} -e "s,%%PYTHON_INCLUDEDIR%%,${PYTHON_INCLUDEDIR}," ${WRKSRC}/python/Makefile
-	@${REINPLACE_CMD} -e "s,%%AMD64%%,${AMD64}," ${WRKSRC}/python/Makefile
 .endif
-	@${REINPLACE_CMD} -e "s,%%AMD64%%,${AMD64}," ${WRKSRC}/Makefile
 	@${SED} 's|%%DATADIR%%|${DATADIR}|g' ${MSG_FILE} > ${PKGMESSAGE}
 
 post-build:
diff -ruN --exclude=CVS /usr/ports/science/libsvm/distinfo /home/rafan/tmp/ports/libsvm/distinfo
--- /usr/ports/science/libsvm/distinfo	Fri Feb 18 03:27:06 2005
+++ /home/rafan/tmp/ports/libsvm/distinfo	Tue Jul 12 01:11:26 2005
@@ -1,2 +1,2 @@
-MD5 (libsvm-2.71.zip) = 192078dbae0510caa5505707941d1f00
-SIZE (libsvm-2.71.zip) = 450094
+MD5 (libsvm-2.8.zip) = 4fd61442270279a37d5a1e4bb4d04db3
+SIZE (libsvm-2.8.zip) = 457595
diff -ruN --exclude=CVS /usr/ports/science/libsvm/files/patch-Makefile /home/rafan/tmp/ports/libsvm/files/patch-Makefile
--- /usr/ports/science/libsvm/files/patch-Makefile	Tue Dec 21 03:20:08 2004
+++ /home/rafan/tmp/ports/libsvm/files/patch-Makefile	Tue Jul 12 01:09:25 2005
@@ -7,11 +7,3 @@
  
  all: svm-train svm-predict svm-scale
  
-@@ -10,6 +9,6 @@
- svm-scale: svm-scale.c
- 	$(CXXC) $(CFLAGS) svm-scale.c -o svm-scale
- svm.o: svm.cpp svm.h
--	$(CXXC) $(CFLAGS) -c svm.cpp
-+	$(CXXC) $(CFLAGS) %%AMD64%% -c svm.cpp
- clean:
- 	rm -f *~ svm.o svm-train svm-predict svm-scale
diff -ruN --exclude=CVS /usr/ports/science/libsvm/files/patch-python-Makefile /home/rafan/tmp/ports/libsvm/files/patch-python-Makefile
--- /usr/ports/science/libsvm/files/patch-python-Makefile	Tue Dec 21 03:20:08 2004
+++ /home/rafan/tmp/ports/libsvm/files/patch-python-Makefile	Tue Jul 12 01:11:59 2005
@@ -1,18 +1,13 @@
---- python/Makefile.orig	Wed Mar 24 19:33:46 2004
-+++ python/Makefile	Tue Nov 16 01:14:32 2004
-@@ -1,11 +1,11 @@
+--- python/Makefile.orig	Tue Jul 12 01:11:46 2005
++++ python/Makefile	Tue Jul 12 01:11:50 2005
+@@ -1,8 +1,8 @@
 -CC = g++
-+CC = $(CXX)
++CC = ${CXX}
  SWIG ?= swig
  
  #Windows: see ../README ../Makefile.win
--PYTHON_INCLUDEDIR ?= /usr/include/python2.3
+-PYTHON_INCLUDEDIR ?= /usr/include/python2.4
 +PYTHON_INCLUDEDIR ?= %%PYTHON_INCLUDEDIR%%
  
--CFLAGS = -O3 -I$(PYTHON_INCLUDEDIR) -I..
--LDFLAGS = -shared
-+CFLAGS += -I$(PYTHON_INCLUDEDIR) -I.. %%AMD64%%
-+LDFLAGS += -shared
- 
- all: svmc.so
- 
+ CFLAGS = -O3 -I$(PYTHON_INCLUDEDIR) -I..
+ LDFLAGS = -shared
--- libsvm-2.8,1.patch ends here ---

>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200507111717.j6BHHwqm062102>