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

28 lines
723 B
Plaintext
Raw Normal View History

2008-09-16 15:41:35 -04:00
$OpenBSD: patch-Makefile,v 1.6 2008/09/16 19:41:35 jasper Exp $
2002-06-05 22:24:20 -04:00
2008-09-16 15:41:35 -04:00
--- Makefile.orig Tue Sep 16 21:31:39 2008
+++ Makefile Tue Sep 16 21:32:32 2008
2002-09-15 07:01:25 -04:00
@@ -1,7 +1,7 @@
-CC=gcc
2002-06-05 22:24:20 -04:00
+CC+=${CFLAGS}
+BINDIR=${PREFIX}/bin
LD=ld
2002-09-15 07:01:25 -04:00
-CFLAGS=-Wall
default:
2002-09-15 07:01:25 -04:00
cd src && make
2008-09-16 15:41:35 -04:00
@@ -20,9 +20,9 @@ gui:
2002-06-05 22:24:20 -04:00
@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"
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-09-15 07:01:25 -04:00
+ @echo "Compiled programs have been installed in ${BINDIR}"
@echo ""
2002-06-05 22:24:20 -04:00
uninstall: