openbsd-ports/devel/asp2php/patches/patch-Makefile
avsm 75e95ebcf0 - initial import of asp2php-0.75.12
Based on a tarball by Shell Hung <i@shellhung.org>

--
asp2php is a program which converts Microsoft's ASP code to PHP.
It supports multiple database drivers, sessions, both PHP3 and PHP4,
and also provides a graphical front end to do all this.
2001-03-21 23:28:16 +00:00

27 lines
783 B
Plaintext

--- Makefile.orig Tue Feb 27 08:50:21 2001
+++ Makefile Wed Mar 21 22:48:19 2001
@@ -1,5 +1,7 @@
-CC=gcc
+BINDIR=${PREFIX}/bin
+
+CC+= ${CFLAGS}
default:
$(CC) -c conditionals.c -Wall
@@ -40,10 +42,10 @@ unipiss:
$(CC) -o unipiss unipiss.c html.o general.o -Wall
install:
- @if [ -e asp2php ]; then cp asp2php /usr/local/bin; fi;
- @if [ -e unipiss ]; then cp unipiss /usr/local/bin; fi;
- @if [ -e gtkasp2php ]; then cp gtkasp2php /usr/local/bin; fi;
- @echo "Compiled programs have been installed in /usr/local/bin"
+ @if [ -e asp2php ]; then cp asp2php ${BINDIR}; fi;
+ @if [ -e unipiss ]; then cp unipiss ${BINDIR}; fi;
+ @if [ -e gtkasp2php ]; then cp gtkasp2php ${BINDIR}; fi;
+ @echo "Compiled programs have been installed in ${BINDIR}"
@echo ""
all: default