diff options
author | Rong-En Fan <rafan@FreeBSD.org> | 2008-04-06 06:35:14 +0000 |
---|---|---|
committer | Rong-En Fan <rafan@FreeBSD.org> | 2008-04-06 06:35:14 +0000 |
commit | 09ffa2e370c1aef3791ee817b548b9aa9fcf9987 (patch) | |
tree | 6d49b566a7600f80afce68369eb2ff12d6dfd92a /science/simlib | |
parent | a423262c1a447270f98299aee8d6126997abf4da (diff) | |
download | ports-09ffa2e370c1aef3791ee817b548b9aa9fcf9987.tar.gz ports-09ffa2e370c1aef3791ee817b548b9aa9fcf9987.zip |
Notes
Diffstat (limited to 'science/simlib')
-rw-r--r-- | science/simlib/Makefile | 18 | ||||
-rw-r--r-- | science/simlib/distinfo | 6 | ||||
-rw-r--r-- | science/simlib/files/patch-Makefile.FreeBSD | 39 | ||||
-rw-r--r-- | science/simlib/files/patch-src__Makefile.FreeBSD-i386 | 17 | ||||
-rw-r--r-- | science/simlib/files/patch-src__Makefile.generic | 15 |
5 files changed, 46 insertions, 49 deletions
diff --git a/science/simlib/Makefile b/science/simlib/Makefile index fdaa6db1b7f5..960c8a8311a1 100644 --- a/science/simlib/Makefile +++ b/science/simlib/Makefile @@ -6,20 +6,24 @@ # PORTNAME= simlib -PORTVERSION= 2.18.20061212 +PORTVERSION= 3.0.20071212 CATEGORIES= science MASTER_SITES= http://www.fit.vutbr.cz/~peringer/SIMLIB/source/ -DISTNAME= SIMLIB-${PORTVERSION:S/.200/-200/} +DISTNAME= ${PORTNAME}3-${PORTVERSION:E} -MAINTAINER= ports@FreeBSD.org +MAINTAINER= wenheping@gmail.com COMMENT= SIMulation LIBrary for C++ programming language -NO_WRKSUBDIR= yes USE_GMAKE= yes USE_LDCONFIG= yes -MAKEFILE= Makefile.FreeBSD +WRKSRC= ${WRKDIR}/${PORTNAME}-3 -# not 64bit ready -ONLY_FOR_ARCHS= i386 +CXXFLAGS+= -fPIC + +post-patch: + @${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> diff --git a/science/simlib/distinfo b/science/simlib/distinfo index 2d49b4f7e898..5ae54dcb8dbb 100644 --- a/science/simlib/distinfo +++ b/science/simlib/distinfo @@ -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 --git a/science/simlib/files/patch-Makefile.FreeBSD b/science/simlib/files/patch-Makefile.FreeBSD deleted file mode 100644 index 65f5800465b9..000000000000 --- a/science/simlib/files/patch-Makefile.FreeBSD +++ /dev/null @@ -1,39 +0,0 @@ ---- 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 - - ############################################################################# - ############################### diff --git a/science/simlib/files/patch-src__Makefile.FreeBSD-i386 b/science/simlib/files/patch-src__Makefile.FreeBSD-i386 new file mode 100644 index 000000000000..0117ac7c4690 --- /dev/null +++ b/science/simlib/files/patch-src__Makefile.FreeBSD-i386 @@ -0,0 +1,17 @@ +--- src/Makefile.FreeBSD-i386.orig 2008-04-06 14:24:46.000000000 +0800 ++++ src/Makefile.FreeBSD-i386 2008-04-06 14:25:19.000000000 +0800 +@@ -4,11 +4,11 @@ + # + + # name of the compiler for C and C++ language +-CC=gcc +-CXX=g++ ++CC?=gcc ++CXX?=g++ + + # C++ compiler flags +-CXXFLAGS = -Wall -std=c++98 -fPIC ++CXXFLAGS ?= -Wall -std=c++98 -fPIC + CXXFLAGS += -O2 # with optimization + CXXFLAGS += -g # with debug info + #CXXFLAGS += -pg # with profile support diff --git a/science/simlib/files/patch-src__Makefile.generic b/science/simlib/files/patch-src__Makefile.generic new file mode 100644 index 000000000000..504ebb8b0d11 --- /dev/null +++ b/science/simlib/files/patch-src__Makefile.generic @@ -0,0 +1,15 @@ +--- src/Makefile.generic.orig 2008-04-06 14:25:38.000000000 +0800 ++++ src/Makefile.generic 2008-04-06 14:26:50.000000000 +0800 +@@ -225,9 +225,9 @@ + #TODO: add version and symlink + install: all + install -d $(PREFIX)/include $(PREFIX)/lib +- install -m0644 $(SIMLIB_HEADERS) $(PREFIX)/include +- install -m0644 $(LIBNAME).a $(PREFIX)/lib/lib$(LIBNAME).a +- install -m0644 $(LIBNAME).so $(PREFIX)/lib/lib$(LIBNAME).so ++ $(BSD_INSTALL_DATA) $(SIMLIB_HEADERS) $(PREFIX)/include ++ $(BSD_INSTALL_PROGRAM) $(LIBNAME).a $(PREFIX)/lib/lib$(LIBNAME).a ++ $(BSD_INSTALL_PROGRAM) $(LIBNAME).so $(PREFIX)/lib/lib$(LIBNAME).so + @if ! grep '^'$(PREFIX)/lib'$$' /etc/ld.so.conf >/dev/null; then \ + echo "Add $(PREFIX)/lib to /etc/ld.so.conf "; \ + fi |