summaryrefslogtreecommitdiff
path: root/audio/csound/files/patch-getstring_c
diff options
context:
space:
mode:
authorTrevor Johnson <trevor@FreeBSD.org>2000-10-12 01:58:05 +0000
committerTrevor Johnson <trevor@FreeBSD.org>2000-10-12 01:58:05 +0000
commitd5001a3969ade0c6f87cbc082c1493ea0bc836cf (patch)
tree9f6de289cfc2604799a880ced4b5f59bef5d08c8 /audio/csound/files/patch-getstring_c
parentTry more hard to find proper nym server when alias@nym form is given - reject (diff)
Add a port for the sound synthesizer Csound. Add a port for its manuals.
Notes
Notes: svn path=/head/; revision=33719
Diffstat (limited to 'audio/csound/files/patch-getstring_c')
-rw-r--r--audio/csound/files/patch-getstring_c49
1 files changed, 49 insertions, 0 deletions
diff --git a/audio/csound/files/patch-getstring_c b/audio/csound/files/patch-getstring_c
new file mode 100644
index 000000000000..ae1e6e6ec8b7
--- /dev/null
+++ b/audio/csound/files/patch-getstring_c
@@ -0,0 +1,49 @@
+--- getstring.c.orig Sat May 13 15:52:27 2000
++++ getstring.c Wed Oct 11 18:21:07 2000
+@@ -75,37 +75,37 @@
+ #endif
+ if (db==NULL)
+ {
+- strcpy(name, "csound.txt");
+- db = fopen("csound.txt", "rb");
++ strcpy(name, "csound.dat");
++ db = fopen("csound.dat", "rb");
+ }
+ if (db == NULL && argv[0] != NULL) {
+ strcpy(name, argv[0]);
+ if ((path = strrchr(name, '/')) != NULL
+ || (path = strrchr(name, '\\')) != NULL) {
+- strcpy(path+1, "csound.txt");
++ strcpy(path+1, "csound.dat");
+ db = fopen(name, "rb");
+ }
+ }
+ if (db == NULL && (path=getenv("SSDIR")) != NULL) {
+- sprintf(name, "%s/csound.txt", path);
++ sprintf(name, "%s/csound.dat", path);
+ db = fopen(name, "rb");
+ }
+ if (db == NULL && (path=getenv("SFDIR")) != NULL) {
+- sprintf(name, "%s/csound.txt", path);
++ sprintf(name, "%s/csound.dat", path);
+ db = fopen(name, "rb");
+ }
+ if (db == NULL && (path=getenv("SADIR")) != NULL) {
+- sprintf(name, "%s/csound.txt", path);
++ sprintf(name, "%s/csound.dat", path);
+ db = fopen(name, "rb");
+ }
+ if (db == NULL) {
+- strcpy(name, "/usr/local/lib/csound.txt");
+- db = fopen("/usr/local/lib/csound.txt", "rb");
++ strcpy(name, "PREFIX/share/csound/csound.dat");
++ db = fopen("PREFIX/share/csound/csound.dat", "rb");
+ }
+ if (db == NULL) {
+ fprintf(stderr, "failed to find Strings DataBase file.\n"
+ "Use the CSSTRNGS environment variable or you must put the \n"
+- "file \"csound.txt\" in your local, SFDIR, SADIR, SSDIR or \n"
++ "file \"csound.dat\" in your local, SFDIR, SADIR, SSDIR or \n"
+ "system directories for csound to work\n");
+ exit(1);
+ }