openbsd-ports/devel/asp2php/patches/patch-Makefile

27 lines
701 B
Plaintext
Raw Normal View History

2002-06-05 22:24:20 -04:00
$OpenBSD: patch-Makefile,v 1.4 2002/06/06 02:24:20 shell Exp $
--- Makefile.orig Thu Jun 6 10:18:43 2002
+++ Makefile Thu Jun 6 10:19:55 2002
2001-07-09 23:48:54 -04:00
@@ -1,5 +1,6 @@
-CC=gcc
2002-06-05 22:24:20 -04:00
+CC+=${CFLAGS}
+BINDIR=${PREFIX}/bin
LD=ld
default:
2002-06-05 22:24:20 -04:00
@@ -16,10 +17,9 @@
@mv src/gtkasp2php .
install:
2001-07-09 23:48:54 -04:00
- @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"
2002-06-05 22:24:20 -04:00
- @echo ""
2001-07-09 23:48:54 -04:00
+ @if [ -e asp2php ]; then install asp2php ${BINDIR}; fi;
+ @if [ -e gtkasp2php ]; then install gtkasp2php ${BINDIR}; fi;
2002-06-05 22:24:20 -04:00
+
2002-06-05 22:24:20 -04:00
uninstall:
@if [ -e /usr/local/bin/asp2php ]; then rm /usr/local/bin/asp2php; fi;