Ticket #21645: molden-4.8.diff
File molden-4.8.diff, 5.1 KB (added by ryandesign (Ryan Carsten Schmidt), 15 years ago) |
---|
-
files/patch-makefile.diff
1 --- makefile.orig 200 8-02-23 15:40:42.000000000 +01002 +++ makefile 200 8-04-25 22:26:21.000000000 +02003 @@ -1 2,7 +12,7 @@1 --- makefile.orig 2009-09-21 11:01:33.000000000 -0500 2 +++ makefile 2009-09-26 23:42:41.000000000 -0500 3 @@ -14,7 +14,7 @@ 4 4 # 5 # Disregard compiler warnings on rdmolf.f 6 # 7 -CC = cc 8 +CC = gcc-mp-4.3 5 CC = cc 9 6 LIBS = -lX11 -lm 10 LIBSG = -L/usr/X11R6/lib -lGLU -lGL -lXmu -lX11 -lm 7 -LIBSG = -L/usr/X11R6/lib -lGLU -lGL -lXmu -lX11 -lm 8 +LIBSG = -L@PREFIX@/lib -lGLU -lGL -lXmu -lX11 -lm 9 LDR = ${FC} 11 10 12 @@ -52,11 +52,12 @@ 13 # with GCC4.0 or higher replace the line with: 11 # 12 @@ -41,11 +41,11 @@ 14 13 # 'external gfortran_iargc' 15 14 # 15 16 16 -CFLAGS = -c -I/usr/X11R6/include -DDOBACK -DHASTIMER -DCOLOR_OFFSET=0.0 17 -FC = g77 17 +CFLAGS = -fomit-frame-pointer -ftree-vectorize -funroll-loops -O3 -c -I/usr/include/malloc -I@PREFIX@/include -DDOBACK -DHASTIMER -DCOLOR_OFFSET=0.0 18 FC = g77 19 #FC = gfortran 18 20 -FFLAGS = 19 21 -LIBS = -L/usr/X11R6/lib -lX11 -lm 20 -LDR = g77 21 +FC = gfortran-mp-4.3 22 +FFLAGS += -fomit-frame-pointer -ftree-vectorize -funroll-loops -O3 23 +CFLAGS += -fomit-frame-pointer -ftree-vectorize -funroll-loops -O3 -c -I/usr/X11R6/include -I/usr/include/malloc -DDOBACK -DHASTIMER -DCOLOR_OFFSET=0.0 24 +LIBS = -L/usr/X11R6/lib -lX11 -lm 25 +LDR = gfortran-mp-4.3 26 + 22 +FFLAGS = -fomit-frame-pointer -ftree-vectorize -funroll-loops -O3 23 +LIBS = -L@PREFIX@/lib -lX11 -lm 24 LDR = ${FC} 25 27 26 # 64 bit machines: 28 #LIBS = -L/usr/X11R6/lib64 -lX11 -lm 29 # 30 @@ -191,7 +192,7 @@ 27 @@ -197,7 +197,7 @@ 31 28 # and the full opengl version of molden 'gmolden', (does not need glut) 32 29 # (make gmolden) 33 30 # 34 31 -LIBSOGL = -lglut -lGLU -lGL -lXmu -lX11 -lm 35 +LIBSOGL = -L /opt/local/lib -L/usr/X11R6/lib -lglut -lGLU -lGL -lXmu -lX11 -lm -Wl,-dylib_file,/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib:/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib32 +LIBSOGL = -L@PREFIX@/lib -lglut -lGLU -lGL -lXmu -lX11 -lm 36 33 # 37 34 # on linux : 38 35 # -
Portfile
9 9 # Feel free to update checksums whenever a stealth upgrade of molden is out... 10 10 11 11 PortSystem 1.0 12 PortGroup xcodeversion 1.0 12 13 13 14 name molden 14 version 4.6 15 revision 13 15 version 4.8 16 16 categories science graphics 17 17 maintainers openmaintainer jochen 18 18 homepage http://www.cmbi.ru.nl/molden/molden.html 19 19 distname molden${version} 20 20 dist_subdir ${name}/${version}_${revision} 21 21 master_sites ftp://ftp.cmbi.ru.nl/pub/molgraph/molden/ 22 checksums md5 3b4e7fa4a323c7e283c0348fc6bb3b2d\23 sha1 83f17d2079b83cc790689485c139301407313463\24 rmd160 b75ec4c23001695044e82d9f8b8542cb45b3009c22 checksums md5 b4a2ba88236f49d60fa0cd62c56ee5c3 \ 23 sha1 4cb6787d47ab1367cf620a8c74ec17facfd4fe58 \ 24 rmd160 6e8405ebbcca3a9c4645b45e2d0da05531d24537 25 25 26 26 description Molecular graphics visualisation tool 27 27 long_description Molden is a package for displaying Molecular Density from \ … … 35 35 36 36 platforms darwin 37 37 depends_build port:gmake 38 depends_lib port: gcc43 port:xorg-libX1138 depends_lib port:xorg-libX11 39 39 patchfiles patch-makefile.diff 40 post-patch { 41 reinplace "s|@PREFIX@|${prefix}|g" ${worksrcpath}/makefile 42 } 43 44 minimum_xcodeversions {9 3.1} 40 45 use_parallel_build yes 41 46 use_configure no 42 47 build.target molden 43 48 build.cmd gmake 49 pre-build { 50 build.args CC=${configure.cc} \ 51 FC=${configure.fc} 52 } 44 53 45 54 destroot { 46 55 xinstall -W ${worksrcpath} molden ${destroot}${prefix}/bin 47 56 set docdir ${destroot}${prefix}/share/doc/molden 48 57 xinstall -m 755 -d ${docdir} 49 58 xinstall -W ${worksrcpath} \ 59 COMMERCIAL_LICENSE \ 60 CopyRight \ 50 61 HISTORY \ 51 62 README \ 52 63 REGISTER \ … … 61 72 ui_msg "**************************************************" 62 73 } 63 74 75 variant gcc43 conflicts gcc44 description {Build using gcc43} { 76 depends_lib-append port:gcc43 77 configure.compiler macports-gcc-4.3 78 } 79 80 variant gcc44 conflicts gcc43 description {Build using gcc44} { 81 depends_lib-append port:gcc44 82 configure.compiler macports-gcc-4.4 83 } 84 85 if {![variant_isset gcc43] && ![variant_isset gcc44]} { 86 default_variants +gcc43 87 } 88 64 89 variant opengl description "Install moldenogl OpenGL helper program" { 65 90 depends_lib-append port:mesa 66 91 build.target-append moldenogl … … 69 94 } 70 95 } 71 96 72 set distfile_date 200 8121911090097 set distfile_date 20090925081300 73 98 livecheck.version ${version}-${distfile_date} 74 99 livecheck.type regex 75 100 livecheck.url http://www.ryandesign.com/macports/version.php/${name}