Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 1 Apr 2008 15:18:17 GMT
From:      Wen heping <wenheping@gmail.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/122337: [Update] science/simlib: update to simlib3-20071212
Message-ID:  <200804011518.m31FIHoH056951@www.freebsd.org>
Resent-Message-ID: <200804011520.m31FK155042715@freefall.freebsd.org>

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

>Number:         122337
>Category:       ports
>Synopsis:       [Update] science/simlib: update to simlib3-20071212
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Tue Apr 01 15:20:01 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator:     Wen heping
>Release:        FreeBSD 7.0 release
>Organization:
ChangAn Middle School
>Environment:
FreeBSD fb7.wenjing.com 7.0-RELEASE FreeBSD 7.0-RELEASE #0: Sun Feb 24 19:59:52 UTC 2008     root@logan.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  i386

>Description:
1 update to simlib3-20071212 from 2.18.20061212
2 minor changes to Makefile
3 I shall take over the maintainership
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

--- Makefile.orig	2008-03-31 11:30:04.000000000 +0000
+++ Makefile	2008-04-01 22:34:14.000000000 +0000
@@ -6,20 +6,27 @@
 #
 
 PORTNAME=	simlib
-PORTVERSION=	2.18.20061212
+PORTVERSION=	20071212
 CATEGORIES=	science
 MASTER_SITES=	http://www.fit.vutbr.cz/~peringer/SIMLIB/source/
-DISTNAME=	SIMLIB-${PORTVERSION:S/.200/-200/}
+DISTNAME=	${PORTNAME}3-${PORTVERSION}
 
-MAINTAINER=	ports@FreeBSD.org
+MAINTAINER=	wenheping@gmail.com
 COMMENT=	SIMulation LIBrary for C++ programming language
 
-NO_WRKSUBDIR=	yes
+#NO_WRKSUBDIR=	yes
 USE_GMAKE=	yes
 USE_LDCONFIG=	yes
-MAKEFILE=	Makefile.FreeBSD
+#MAKEFILE=	Makefile
+WRKSRC=		${WRKDIR}/${PORTNAME}-3
 
 # not 64bit ready
 ONLY_FOR_ARCHS=	i386
 
+post-extract:
+	@${REINPLACE_CMD} -e 's|make|gmake|g' ${WRKSRC}/Makefile
+	@${MV} ${WRKSRC}/src/Makefile.FreeBSD-i386 ${WRKSRC}/src/Makefile
+	@${MV} ${WRKSRC}/examples/Makefile.FreeBSD-i386 ${WRKSRC}/examples/Makefile
+	@${MV} ${WRKSRC}/tests/Makefile.FreeBSD-i386 ${WRKSRC}/tests/Makefile
+
 .include <bsd.port.mk>
--- distinfo.orig	2007-01-17 07:27:25.000000000 +0000
+++ distinfo	2008-03-31 19:30:12.000000000 +0000
@@ -1,3 +1,3 @@
-MD5 (SIMLIB-2.18-20061212.tar.gz) = cbd9680a4b57854f6200419e1e2dafb6
-SHA256 (SIMLIB-2.18-20061212.tar.gz) = 99ea069cf7dde1304ae682275242d21166238cd4353fb3a51892b05de27f4711
-SIZE (SIMLIB-2.18-20061212.tar.gz) = 360454
+MD5 (simlib3-20071212.tar.gz) = 7d3b6123234b756b228a2e379982cd2e
+SHA256 (simlib3-20071212.tar.gz) = 41784cf5ec79c91256625dc802befa5e70788e04f5bf2394c334d8c7837d69b2
+SIZE (simlib3-20071212.tar.gz) = 1245014
diff -Narc files.orig/patch-Makefile.FreeBSD files/patch-Makefile.FreeBSD
*** files.orig/patch-Makefile.FreeBSD	Wed Jan 17 07:27:25 2007
--- files/patch-Makefile.FreeBSD	Thu Jan  1 00:00:00 1970
***************
*** 1,39 ****
- --- Makefile.FreeBSD.orig	Thu Dec  9 13:39:45 2004
- +++ Makefile.FreeBSD	Tue Jan 16 11:50:27 2007
- @@ -52,18 +52,19 @@
-  LIBNAME=simlib
-  
-  # name of the compiler for C and C++ language
- -CC=gcc
- -CXX=g++
- +CC?=gcc
- +CXX?=g++
-  #CXX=g++-3.4
-  
-  # C++ compiler flags -- for development
- -CXXFLAGS=-g -fPIC -O2		# with debug info
- +CXXFLAGS?=-g -fPIC -O2		# with debug info
-  #CXXFLAGS=-pg -O2 -Wall		# with profile support
-  #CXXFLAGS=-O2 -Wall -Weffc++	# PRODUCTION CODE
-  #CXXFLAGS=-O2 -Wall              # PRODUCTION CODE
-  
-  # installing program
- -INSTALL=install -m0644
- +INSTALL_DATA?=install -c -m 444
- +INSTALL_PROGRAM?=install -c -s -m 555
-  
-  # directory where the files will be installed in
-  PREFIX=/usr/local
- @@ -237,9 +238,9 @@
-  #TODO: add version and symlink
-  install: all
-  	echo "You should have permissions to install in " $(PREFIX)/
- -	$(INSTALL) $(SIMLIB_HEADERS) $(PREFIX)/include
- -	$(INSTALL) $(LIBNAME).a $(PREFIX)/lib/lib$(LIBNAME).a
- -	$(INSTALL) $(LIBNAME).so $(PREFIX)/lib/lib$(LIBNAME).so
- +	$(INSTALL_DATA) $(SIMLIB_HEADERS) $(PREFIX)/include
- +	$(INSTALL_PROGRAM) $(LIBNAME).a $(PREFIX)/lib/lib$(LIBNAME).a
- +	$(INSTALL_PROGRAM) $(LIBNAME).so $(PREFIX)/lib/lib$(LIBNAME).so
-  
-  #############################################################################
-  ###############################
--- 0 ----


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



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