View | Details | Raw Unified | Return to bug 193090
Collapse All | Expand All

(-)vmd/Makefile (-3 / +17 lines)
Lines 40-46 Link Here
40
#STRIDE_DIST=		stride.tar.gz
40
#STRIDE_DIST=		stride.tar.gz
41
STRIDE_DIST=		Stride_src.tar.Z
41
STRIDE_DIST=		Stride_src.tar.Z
42
42
43
NO_STAGE=	yes
44
.include <bsd.port.pre.mk>
43
.include <bsd.port.pre.mk>
45
44
46
.if ${ARCH} == "amd64"
45
.if ${ARCH} == "amd64"
Lines 86-92 Link Here
86
	${SETENV} ${MAKE_ENV} ${MAKE_CMD} -C ${WRKSRC}/lib/stride && ${MV} ${WRKSRC}/lib/stride/stride ${WRKSRC}/lib/stride/stride_${VMD_ARCH}
85
	${SETENV} ${MAKE_ENV} ${MAKE_CMD} -C ${WRKSRC}/lib/stride && ${MV} ${WRKSRC}/lib/stride/stride ${WRKSRC}/lib/stride/stride_${VMD_ARCH}
87
86
88
do-install:
87
do-install:
89
	${SETENV} ${MAKE_ENV} ${MAKE_CMD} -C ${WRKSRC}/src install
88
	${SETENV} ${MAKE_ENV} DESTDIR=${STAGEDIR} \
90
	@${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${PREFIX}/lib/vmd
89
	    ${MAKE_CMD} -C ${WRKSRC}/src install
90
	${STRIP_CMD} ${STAGEDIR}${LOCALBASE}/lib/vmd/*${VMD_ARCH} \
91
	    ${STAGEDIR}${LOCALBASE}/lib/vmd/plugins/${VMD_ARCH}/molfile/*.so
92
.for f in tcl/autopsf1.3/psfcheck.so tcl/hesstrans1.0/hesstrans.so \
93
	  tcl/mutator1.4/libalchemify.so tcl/pmepot1.0/libpmepot.so \
94
	  tcl/psfgen1.6/libpsfgen.so tcl/rnaview1.1/rnaview \
95
	  tcl/signalproc1.1/specden.so tcl/signalproc1.1/fftcmds.so \
96
	  tcl/signalproc1.1/sgsmooth.so tcl/volutil1.3/volutil \
97
	  tcl/clustalw1.1/clustalw tcl/libbiokit1.1/tcl_libbiokit.so \
98
	  tcl/libbiokit1.1/q tcl/libbiokit1.1/seqqr \
99
	  tcl/libbiokit1.1/structqr tcl/libbiokit1.1/qpair \
100
	  tcl/libbiokit1.1/rmsd tcl/libbiokit1.1/percid \
101
	  tcl/phylotree1.2/upgmaclu tcl/stamp1.2/stamp \
102
	  bin/catdcd4.0/catdcd bin/cionize1.0/cionize
103
	${STRIP_CMD} ${STAGEDIR}${LOCALBASE}/lib/vmd/plugins/${VMD_ARCH}/${f}
104
.endfor
91
105
92
.include <bsd.port.post.mk>
106
.include <bsd.port.post.mk>
(-)vmd/files/patch-configure (-2 / +71 lines)
Lines 1-5 Link Here
1
--- configure.orig	2009-08-01 03:19:34.000000000 -0400
1
--- configure.orig	2012-02-02 16:53:54.000000000 +0900
2
+++ configure	2010-01-08 22:01:38.000000000 -0500
2
+++ configure	2014-08-28 16:42:38.000000000 +0900
3
@@ -13,10 +13,10 @@
3
@@ -13,10 +13,10 @@
4
 $install_name = "vmd";
4
 $install_name = "vmd";
5
 
5
 
Lines 37-39 Link Here
37
 
37
 
38
 NVCC        = $arch_nvcc
38
 NVCC        = $arch_nvcc
39
 NVCCFLAGS   = $arch_nvccflags -DARCH_$config_arch \$(DEFINES) \$(INCDIRS)
39
 NVCCFLAGS   = $arch_nvccflags -DARCH_$config_arch \$(DEFINES) \$(INCDIRS)
40
@@ -2997,38 +2997,38 @@
41
 	\$(COMPILERC) \$(RCFLAGS)
42
 
43
 install:
44
-	if [ ! -d "$install_library_dir" ]; then \\
45
-		\$(MAKEDIR) "$install_library_dir" ; \\
46
+	if [ ! -d "\${DESTDIR}$install_library_dir" ]; then \\
47
+		\$(MAKEDIR) "\${DESTDIR}$install_library_dir" ; \\
48
 	fi ; \\
49
-	if [ ! -d "$install_bin_dir" ]; then \\
50
-		\$(MAKEDIR) "$install_bin_dir" ; \\
51
+	if [ ! -d "\${DESTDIR}$install_bin_dir" ]; then \\
52
+		\$(MAKEDIR) "\${DESTDIR}$install_bin_dir" ; \\
53
 	fi ; \\
54
-	if [ ! -d "$install_library_dir"/doc ]; then \\
55
-		\$(MAKEDIR) "$install_library_dir"/doc; \\
56
+	if [ ! -d "\${DESTDIR}$install_library_dir"/doc ]; then \\
57
+		\$(MAKEDIR) "\${DESTDIR}$install_library_dir"/doc; \\
58
 	fi
59
-	-\$(COPY) ../Announcement  "$install_library_dir"
60
-	-\$(COPY) ../README        "$install_library_dir"
61
-	-\$(COPY) ../LICENSE       "$install_library_dir"
62
-	-\$(COPY) $vmd_doc_dir/ug.pdf        "$install_library_dir"/doc
63
-	if [ -f $install_library_dir/$config_progname ]; then \\
64
-           \$(MOVE) "$install_library_dir/$config_progname" "$install_library_dir/OLD_$config_progname" ; \$(DELETE) "$install_library_dir/OLD_$config_progname" ; fi
65
-	-\$(COPY) ../$config_arch/$config_progname "$install_library_dir"
66
+	-\$(COPY) ../Announcement  "\${DESTDIR}$install_library_dir"
67
+	-\$(COPY) ../README        "\${DESTDIR}$install_library_dir"
68
+	-\$(COPY) ../LICENSE       "\${DESTDIR}$install_library_dir"
69
+	-\$(COPY) $vmd_doc_dir/ug.pdf        "\${DESTDIR}$install_library_dir"/doc
70
+	if [ -f \${DESTDIR}$install_library_dir/$config_progname ]; then \\
71
+           \$(MOVE) "\${DESTDIR}$install_library_dir/$config_progname" "\${DESTDIR}$install_library_dir/OLD_$config_progname" ; \$(DELETE) "\${DESTDIR}$install_library_dir/OLD_$config_progname" ; fi
72
+	-\$(COPY) ../$config_arch/$config_progname "\${DESTDIR}$install_library_dir"
73
 	if [ -d "../lib/redistrib/lib_$config_arch" ]; then \\
74
 		\$(CD) ../lib/redistrib/lib_$config_arch; \$(TAR) -cf - ./* | \\
75
-		(cd "$install_library_dir" ; \$(TAR) -xf -) \\
76
+		(cd "\${DESTDIR}$install_library_dir" ; \$(TAR) -xf -) \\
77
 	fi ;
78
-	-\$(COPY) @vmd_other_exe "$install_library_dir"
79
+	-\$(COPY) @vmd_other_exe "\${DESTDIR}$install_library_dir"
80
 	-\$(CD) ..; \$(TAR) -cf - scripts | \\
81
-	(cd "$install_library_dir" ; \$(TAR) -xf -)
82
+	(cd "\${DESTDIR}$install_library_dir" ; \$(TAR) -xf -)
83
 	-\$(CD) $vmd_library_dir; \$(TAR) -cf - scripts | \\
84
-	(cd "$install_library_dir" ; \$(TAR) -xf -)
85
+	(cd "\${DESTDIR}$install_library_dir" ; \$(TAR) -xf -)
86
 	-\$(CD) ..; \$(TAR) -cf - python | \\
87
-	(cd "$install_library_dir"/scripts ; \$(TAR) -xf -)
88
+	(cd "\${DESTDIR}$install_library_dir"/scripts ; \$(TAR) -xf -)
89
 	-\$(CD) ..; \$(TAR) -cf - plugins | \\
90
-	(cd "$install_library_dir" ; \$(TAR) -xf -)
91
+	(cd "\${DESTDIR}$install_library_dir" ; \$(TAR) -xf -)
92
 	-\$(CD) ..; \$(TAR) -cf - shaders | \\
93
-	(cd "$install_library_dir" ; \$(TAR) -xf -)
94
-	-\$(COPY) ../data/.vmdrc ../data/.vmdsensors ../data/vmd_completion.dat "$install_library_dir"
95
+	(cd "\${DESTDIR}$install_library_dir" ; \$(TAR) -xf -)
96
+	-\$(COPY) ../data/.vmdrc ../data/.vmdsensors ../data/vmd_completion.dat "\${DESTDIR}$install_library_dir"
97
 	\$(CD) $vmd_bin_dir ; \\
98
 	if [ -f run_vmd_tmp ]; then \$(DELETE) run_vmd_tmp; fi ; \\
99
 	if [ ! -x "/bin/csh" ]; then \\
100
@@ -3044,7 +3044,7 @@
101
 		cat $vmd_bin_csh >> run_vmd_tmp ; \\
102
 	fi ; \\
103
 	chmod +x run_vmd_tmp ; \\
104
-	\$(COPY) run_vmd_tmp "$install_bin_dir"/$install_name ; \\
105
+	\$(COPY) run_vmd_tmp "\${DESTDIR}$install_bin_dir"/$install_name ; \\
106
 	\$(DELETE) run_vmd_tmp
107
 	\$(ECHO) Make sure "$install_bin_dir"/$install_name is in your path.
108
 	\$(ECHO) "VMD installation complete.  Enjoy!"

Return to bug 193090