summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-php/asp2php/files/asp2php-0.76.17-makefile.patch')
-rw-r--r--dev-php/asp2php/files/asp2php-0.76.17-makefile.patch49
1 files changed, 49 insertions, 0 deletions
diff --git a/dev-php/asp2php/files/asp2php-0.76.17-makefile.patch b/dev-php/asp2php/files/asp2php-0.76.17-makefile.patch
new file mode 100644
index 000000000000..9e6e68fc6975
--- /dev/null
+++ b/dev-php/asp2php/files/asp2php-0.76.17-makefile.patch
@@ -0,0 +1,49 @@
+--- Makefile.orig 2003-08-02 09:38:53.000000000 +0800
++++ Makefile 2003-08-02 09:42:05.000000000 +0800
+@@ -1,7 +1,4 @@
+-
+-CC=gcc
+-LD=ld
+-CFLAGS=-Wall
++DESTDIR=
+
+ default:
+ cd src && make
+@@ -18,9 +15,10 @@
+ @mv src/gtkasp2php .
+
+ install:
+- @if [ -e asp2php ]; then install asp2php /usr/local/bin; fi;
+- @if [ -e gtkasp2php ]; then install gtkasp2php /usr/local/bin; fi;
+- @echo "Compiled programs have been installed in /usr/local/bin"
++ @mkdir -p $(DESTDIR)/bin;
++ @if [ -e asp2php ]; then install asp2php $(DESTDIR)/bin; fi;
++ @if [ -e gtkasp2php ]; then install gtkasp2php $(DESTDIR)/bin; fi;
++ @echo "Compiled programs have been installed in $(DESTDIR)/bin"
+ @echo ""
+
+ uninstall:
+--- src/Makefile.orig 2003-08-02 09:48:07.000000000 +0800
++++ src/Makefile 2003-08-02 09:48:20.000000000 +0800
+@@ -1,9 +1,3 @@
+-
+-CC=gcc
+-LD=ld
+-#FLAGS=-DDEBUG
+-CFLAGS=-Wall
+-
+ default:
+ @cd jscript && make
+ $(CC) -c class.c $(CFLAGS) $(FLAGS)
+--- src/jscript/Makefile.orig 2003-08-02 09:49:43.000000000 +0800
++++ src/jscript/Makefile 2003-08-02 09:49:46.000000000 +0800
+@@ -1,9 +1,3 @@
+-
+-CC=gcc
+-LD=ld
+-#FLAGS=-DDEBUG
+-CFLAGS=-Wall
+-
+ default:
+ $(CC) -c conditionals_j.c $(CFLAGS) $(FLAGS)
+ $(CC) -c eval_expression_j.c $(CFLAGS) $(FLAGS)