head	1.5;
access;
symbols
	RELEASE_8_3_0:1.3
	RELEASE_9_0_0:1.3
	RELEASE_7_4_0:1.3
	RELEASE_8_2_0:1.3
	RELEASE_6_EOL:1.3
	RELEASE_8_1_0:1.3
	RELEASE_7_3_0:1.3
	RELEASE_8_0_0:1.3
	RELEASE_7_2_0:1.3
	RELEASE_7_1_0:1.3
	RELEASE_6_4_0:1.3
	RELEASE_5_EOL:1.3
	RELEASE_7_0_0:1.3
	RELEASE_6_3_0:1.3
	PRE_XORG_7:1.3
	RELEASE_4_EOL:1.3
	RELEASE_6_2_0:1.3
	RELEASE_6_1_0:1.3
	RELEASE_5_5_0:1.3
	RELEASE_6_0_0:1.3
	RELEASE_5_4_0:1.3
	RELEASE_4_11_0:1.3
	RELEASE_5_3_0:1.3
	RELEASE_4_10_0:1.3
	RELEASE_5_2_1:1.3
	RELEASE_5_2_0:1.3
	RELEASE_4_9_0:1.3
	RELEASE_5_1_0:1.2
	RELEASE_4_8_0:1.2
	RELEASE_5_0_0:1.2
	RELEASE_4_7_0:1.2
	RELEASE_4_6_2:1.2
	RELEASE_4_6_1:1.2
	RELEASE_4_6_0:1.2
	RELEASE_5_0_DP1:1.2
	RELEASE_4_5_0:1.2
	RELEASE_4_4_0:1.2
	RELEASE_4_3_0:1.2
	RELEASE_4_2_0:1.2
	RELEASE_4_1_1:1.1.1.1
	RELEASE_4_1_0:1.1.1.1
	RELEASE_3_5_0:1.1.1.1
	RELEASE_4_0_0:1.1.1.1
	RELEASE_3_4_0:1.1.1.1
	RELEASE_3_3_0:1.1.1.1
	RELEASE_3_2_0:1.1.1.1
	RELEASE_3_1_0:1.1.1.1
	RELEASE_2_2_8:1.1.1.1
	RELEASE_3_0_0:1.1.1.1
	RELEASE_2_2_7:1.1.1.1
	RELEASE_2_2_6:1.1.1.1
	povchem_1_0:1.1.1.1
	FRANKCH:1.1.1;
locks; strict;
comment	@# @;


1.5
date	2013.02.10.11.05.56;	author svnexp;	state Exp;
branches;
next	1.4;

1.4
date	2012.11.17.05.54.52;	author svnexp;	state Exp;
branches;
next	1.3;

1.3
date	2003.07.14.06.50.15;	author leeym;	state Exp;
branches;
next	1.2;

1.2
date	2000.10.10.00.37.00;	author jeh;	state Exp;
branches;
next	1.1;

1.1
date	98.03.16.06.57.12;	author vanilla;	state Exp;
branches
	1.1.1.1;
next	;

1.1.1.1
date	98.03.16.06.57.12;	author vanilla;	state Exp;
branches;
next	;


desc
@@


1.5
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/312001
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
@
text
@
$FreeBSD: head/biology/povchem/files/patch-ab 312001 2013-02-10 07:55:45Z miwi $

--- povchem.c.orig	Fri Jul 11 11:49:07 2003
+++ povchem.c	Fri Jul 11 11:59:23 2003
@@@@ -482,7 +482,7 @@@@
  */
   
   if (*fileName==NULL) {
-    New_String(fileName,"povchem.cfg");
+    New_String(fileName,SYSCONFDIR "/povchem.cfg");
     if ((config=fopen(*fileName,"r"))==NULL) {
       puts("Can't read the configuration file \"povchem.cfg\"!");
       perror("Reason");
@@@@ -731,7 +731,7 @@@@
 
 no_config:
 
-  if (!PERIODIC_TABLE_FILE) New_String(&PERIODIC_TABLE_FILE,"periodic.tab");
+  if (!PERIODIC_TABLE_FILE) New_String(&PERIODIC_TABLE_FILE,DATADIR "/periodic.tab");
   if (!FINISH) New_String(&FINISH,"Plastic");
   if (!FINISH_DECLARATION) New_String(&FINISH_DECLARATION,"\
   finish {\n\
@@@@ -742,7 +742,7 @@@@
     phong 0.3\n\
     phong_size 50\n\
     specular 0.0\n\
-  }\n\n");
+  };\n\n");
 
   if (POVRAY && (!POV_OPTIONS || !POV_WIDTH) ) {
     puts("Warning: to run POV-Ray from PovChem, you must define *all* the");
@@@@ -977,10 +977,10 @@@@
   if (model==CPK ||
       (model==BALLnSTICK && ballSizeModel==PROPORTIONAL) ) {
     if (model==BALLnSTICK)
-      fprintf(pov,"#declare Proportionality_Constant = %.*g\n",SF,ballRadius);
+      fprintf(pov,"#declare Proportionality_Constant = %.*g;\n",SF,ballRadius);
     for (Z=0;Z<NUM_ELEMENTS;Z++) {
       if (PeriodicTable[Z].isPresent) {
-        fprintf(pov,"#declare %s_Radius = %.*g",
+        fprintf(pov,"#declare %s_Radius = %.*g;",
                     PeriodicTable[Z].name,SF,PeriodicTable[Z].vdW);
         if (model==BALLnSTICK)
           fputs("*Proportionality_Constant\n",pov);
@@@@ -989,13 +989,13 @@@@
       }
     }
   } else
-    fprintf(pov,"#declare All_Atom_Radius = %.*g\n",SF,Determine_Radius(0));
+    fprintf(pov,"#declare All_Atom_Radius = %.*g;\n",SF,Determine_Radius(0));
   fputs("\n",pov);
 
   if (sphereColorModel==BY_ELEMENT || cylinderColorModel==BY_ELEMENT) {
     for (Z=0;Z<NUM_ELEMENTS;Z++) {
       if (PeriodicTable[Z].isPresent) {
-        fprintf(pov,"#declare Atom_%s_Color = color rgb <%.5g, %.5g, %.5g>\n",
+        fprintf(pov,"#declare Atom_%s_Color = color rgb <%.5g, %.5g, %.5g>;\n",
                     PeriodicTable[Z].name,RED(Z),GREEN(Z),BLUE(Z));
       }
     }
@@@@ -1003,20 +1003,20 @@@@
   }
 
   if (sphereColorModel==ALL_THE_SAME)
-    fprintf(pov,"#declare All_Atom_Color = color rgb <%.5g, %.5g, %.5g>\n\n",
+    fprintf(pov,"#declare All_Atom_Color = color rgb <%.5g, %.5g, %.5g>;\n\n",
                 allSphereColor.r,allSphereColor.g,allSphereColor.b);
 
   if (sphereColorModel==BY_PDB) {
     if (ballSizeModel==CONSTANT) {
       fputs("#declare Atom_All =\n  sphere {\n",pov);
       fputs("    <0,0,0>, All_Atom_Radius\n",pov);
-      fprintf(pov,"    finish { %s }\n  }\n\n",FINISH);
+      fprintf(pov,"    finish { %s }\n  };\n\n",FINISH);
     } else {
       for (Z=0;Z<NUM_ELEMENTS;Z++) {
         if (PeriodicTable[Z].isPresent) {
           fprintf(pov,"#declare Atom_%s =\n  sphere {\n",PeriodicTable[Z].name);
           fprintf(pov,"    <0,0,0>, %s_Radius\n",PeriodicTable[Z].name);
-          fprintf(pov,"    finish { %s }\n  }\n",FINISH);
+          fprintf(pov,"    finish { %s }\n  };\n",FINISH);
         }
       }
       fputs("\n",pov);
@@@@ -1024,7 +1024,7 @@@@
     tag=firstSphereTag;
     nTags=nSphereTags;
     for (i=0;i<nTags;i++) {
-      fprintf(pov,"#declare Atom_%s_Color = color rgb <%.5g, %.5g, %.5g>\n",
+      fprintf(pov,"#declare Atom_%s_Color = color rgb <%.5g, %.5g, %.5g>;\n",
                   tag->name,tag->r,tag->g,tag->b);
       tag=tag->next;
     }
@@@@ -1051,7 +1051,7 @@@@
             fputs(      "      pigment { color All_Atom_Color }\n",pov);
             break;
         }
-        fprintf(pov,"      finish { %s }\n    }\n  }\n",FINISH);
+        fprintf(pov,"      finish { %s }\n    }\n  };\n",FINISH);
       }
     }
 
@@@@ -1060,7 +1060,7 @@@@
     fputs(      "    <0,0,0>, All_Atom_Radius\n",pov);
     fputs(      "    texture {\n",pov);
     fputs(      "      pigment { color All_Atom_Color }\n",pov);
-    fprintf(pov,"      finish { %s }\n    }\n  }\n",FINISH);
+    fprintf(pov,"      finish { %s }\n    }\n  };\n",FINISH);
   }
 
   fputs("\n",pov);
@@@@ -1080,26 +1080,26 @@@@
   factors[4]=HIGH_ORDER_FACTOR;
 
   if (nOrders[H_BOND]) {
-    fprintf(pov,"#declare H_Bond_Radius = %.*g\n",SF,HBondRadius);
-    fprintf(pov,"#declare H_Bond_Color = color rgb <%.5g, %.5g, %.5g>\n",
+    fprintf(pov,"#declare H_Bond_Radius = %.*g;\n",SF,HBondRadius);
+    fprintf(pov,"#declare H_Bond_Color = color rgb <%.5g, %.5g, %.5g>;\n",
                 HBondColor.r,HBondColor.g,HBondColor.b);
     fputs(      "#declare H_Bond =\n  cylinder {\n",pov);
     fputs(      "    <0,0,0>, <1,0,0>, H_Bond_Radius\n",pov);
     fputs(      "    texture {\n",pov);
     fputs(      "      pigment { H_Bond_Color }\n",pov);
-    fprintf(pov,"      finish { %s }\n    }\n  }\n\n",FINISH);
+    fprintf(pov,"      finish { %s }\n    }\n  };\n\n",FINISH);
   }
 
   if (model==CYLINDER) 
-    fputs("#declare All_Bond_Radius = All_Atom_Radius\n\n",pov);
+    fputs("#declare All_Bond_Radius = All_Atom_Radius;\n\n",pov);
   else {
     if (cylinderSizeModel==CONSTANT)
-      fprintf(pov,"#declare All_Bond_Radius = %.*g\n\n",SF,cylinderRadius);
+      fprintf(pov,"#declare All_Bond_Radius = %.*g;\n\n",SF,cylinderRadius);
     else {
-      fprintf(pov,"#declare Single_Bond_Radius = %.*g\n",SF,cylinderRadius);
+      fprintf(pov,"#declare Single_Bond_Radius = %.*g;\n",SF,cylinderRadius);
       for (i=DOUBLE;i<=HIGH_ORDER;i++) {
         if (nOrders[i])
-          fprintf(pov,"#declare %sBond_Radius = Single_Bond_Radius*%.*g\n",
+          fprintf(pov,"#declare %sBond_Radius = Single_Bond_Radius*%.*g;\n",
                      orderTypes[i],SF,factors[i]);
       }
       fputs("\n",pov);
@@@@ -1107,7 +1107,7 @@@@
   }
 
   if (cylinderColorModel==ALL_THE_SAME)
-    fprintf(pov,"#declare All_Bond_Color = color rgb <%.5g, %.5g, %.5g>\n\n",
+    fprintf(pov,"#declare All_Bond_Color = color rgb <%.5g, %.5g, %.5g>;\n\n",
                 allCylinderColor.r,allCylinderColor.g,allCylinderColor.b);
 
   fputs(      "#declare Bond =\n  cylinder {\n",pov);
@@@@ -1124,12 +1124,12 @@@@
   } else
     fprintf(pov,"    finish { %s }\n",FINISH);
     
-  fputs(      "  }\n\n",pov);
+  fputs(      "  };\n\n",pov);
 
   if (cylinderColorModel==BY_PDB && firstCylinderTag!=firstSphereTag) {
     tag=firstCylinderTag;
     for (i=0;i<nCylinderTags;i++) {
-      fprintf(pov,"#declare Bond_%s_Color = color rgb <%.5g, %.5g, %.5g>\n",
+      fprintf(pov,"#declare Bond_%s_Color = color rgb <%.5g, %.5g, %.5g>;\n",
                   tag->name,tag->r,tag->g,tag->b);
       tag=tag->next;
     }
@@@@ -2092,7 +2092,7 @@@@
  * the origin, looking along +Z, sky along +Y.
  */
  
-  fprintf(pov,"#declare Camera_Position = < %.6g, %.6g, %.6g >\n\n",
+  fprintf(pov,"#declare Camera_Position = < %.6g, %.6g, %.6g >;\n\n",
               eye.x,eye.y,eye.z);
 
   fputs(      "camera{\n",pov);
@@@@ -2317,7 +2317,7 @@@@
 
 /*-------------------- the main program body --------------------------*/
 
-void main(int argc, char *argv[])
+int main(int argc, char *argv[])
 {
   char *pdbName, *configName=NULL;
   char *tgaName=NULL, *leftTga=NULL, *rightTga=NULL;
@


1.4
log
@Switch exporter over
@
text
@d2 1
a2 1
$FreeBSD: head/biology/povchem/files/patch-ab 300895 2012-07-14 12:56:14Z beat $
d180 9
@


1.3
log
@Add semi-colons(;) after declare statements that go in the povray scene file
so that povchem works with povray-3.5.

Maintainer prefer not to depend on ImageMagick since users can use their
favorite picture viewer. display isn't the only one choice.

Drop maintainership.

PR:		54397
Submitted by:	Glenn Johnson <gjohnson@@srrc.ars.usda.gov>
Reviewed by:	Chen-hsiung Chan <frankch@@waru.life.nthu.edu.tw>
@
text
@d2 1
a2 1
$FreeBSD$
@


1.2
log
@- Fix MASTER_SITES
- Support CC/LOCALBASE/X11BASE/PREFIX properly

Remove file:
 patches/patch-aa

Approval from MAINTAINER after sending EMail

PR:		21609
Submitted by:	KATO Tsuguru <tkato@@prontomail.ne.jp>
Approved by:	Chen Hsiung Chan <frankch@@waru.life.nthu.edu.tw> MAINTAINER
@
text
@d1 5
a5 2
--- povchem.c.orig	Sat Mar 14 17:19:41 1998
+++ povchem.c	Sat Mar 14 17:20:32 1998
d24 156
@


1.1
log
@Initial revision
@
text
@d8 1
a8 1
+    New_String(fileName,"/usr/local/etc/povchem.cfg");
d17 1
a17 1
+  if (!PERIODIC_TABLE_FILE) New_String(&PERIODIC_TABLE_FILE,"/usr/local/share/periodic.tab");
@


1.1.1.1
log
@Povchem is a tool to generate POV file from a PDB(Protein
DataBank) entry. One can adjust many parameters for a high
quality molecular graphic.
PR:		 ports/6008
Submitted by:	Frank Chen Hsiung Chan <frankch@@waru.life.nthu.edu.tw>
@
text
@@
