1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-20 04:02:27 +00:00
freebsd-ports/www/wb0/files/patch-Makefile

31 lines
836 B
Plaintext

--- Makefile.orig Mon Dec 6 00:45:08 1999
+++ Makefile Sat Apr 19 16:12:07 2003
@@ -1,16 +1,17 @@
-
-CFLAGS=-O2 -Wall -fomit-frame-pointer -malign-functions=0
-LDFLAGS= -lm -s -lvga -lvgagl -ljpeg -lpng -lz
+PREFIX?= /usr/local
+CFLAGS+= -I${LOCALBASE}/include
+LDFLAGS= -L${LOCALBASE}/lib -lm -s -lvga -lvgagl -ljpeg -lpng -lz
all: wb0
-
+
install:
- mkdir -p /etc/wb0
- cp ./etc/wb0/* /etc/wb0
- cp ./wb0 /usr/local/bin/wb0
- echo "path `pwd`/data/" >>/etc/wb0/wb0.config
- chmod a+s /usr/local/bin/wb0
- chown root:root /usr/local/bin/wb0
+ mkdir -p ${PREFIX}/share/wb0
+ cp ./wb0 ${PREFIX}/bin
+ cp ./etc/wb0/wb0.config ${PREFIX}/etc/
+ cp ./data/* ${PREFIX}/share/wb0/
+ echo "path ${PREFIX}/share/wb0/" >>${PREFIX}/etc/wb0.config
+ chmod u+s ${PREFIX}/bin/wb0
+ chown root:wheel ${LOCALBASE}/bin/wb0
pkfont: pkfont.c