1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-14 23:46:10 +00:00
freebsd-ports/x11-clocks/eyeclock/files/patch-aa
1998-12-09 10:02:58 +00:00

58 lines
1.9 KiB
Plaintext

--- Makefile.orig Wed Dec 9 14:20:29 1998
+++ Makefile Wed Dec 9 14:30:10 1998
@@ -1,31 +1,35 @@
-EYECLOCK_PREFIX = /usr/X11R6
+EYECLOCK_PREFIX = ${PREFIX}
EYECLOCK_BIN = ${EYECLOCK_PREFIX}/bin
EYECLOCK_LIB = ${EYECLOCK_PREFIX}/lib/X11/EyeClock
EYECLOCK_MAN = ${EYECLOCK_PREFIX}/man/man1
EYECLOCK_TARBALL = eyeclock-1.03
+LIBS= -L${PREFIX}/lib -lX11 -lXt -lXmu -lXaw -lXpm -lm
+.if ${PORTOBJFORMAT} == "elf"
+LDFLAGS=-Wl,-rpath,${PREFIX}/lib
+.endif
+CFLAGS+=-I${PREFIX}/include
eyeclock : eyegraph.o eyeinit.o eyemain.o eyequit.o eyestr.o eyetime.o
gcc eyegraph.o eyeinit.o eyemain.o eyequit.o eyestr.o \
eyetime.o \
- -o eyeclock -O -L/usr/X11R6/lib \
- -lm -lX11 -lXt -lXmu -lXaw -lXpm
+ -o eyeclock ${CFLAGS} ${LIBS} ${LDFLAGS}
eyegraph.o : eyegraph.c
- gcc -c eyegraph.c -O -I/usr/X11R6/include \
+ gcc -c eyegraph.c ${CFLAGS} \
-DEYECLOCK_LIB=\"${EYECLOCK_LIB}/\"
eyeinit.o : eyeinit.c
- gcc -c eyeinit.c -O -I/usr/X11R6/include \
+ gcc -c eyeinit.c ${CFLAGS} \
-DEYECLOCK_LIB=\"${EYECLOCK_LIB}/\"
eyemain.o : eyemain.c
- gcc -c eyemain.c -O -I/usr/X11R6/include \
+ gcc -c eyemain.c ${CFLAGS} \
-DEYECLOCK_LIB=\"${EYECLOCK_LIB}/\"
eyequit.o : eyequit.c
- gcc -c eyequit.c -O -I/usr/X11R6/include \
+ gcc -c eyequit.c ${CFLAGS} \
-DEYECLOCK_LIB=\"${EYECLOCK_LIB}/\"
eyestr.o : eyestr.c
- gcc -c eyestr.c -O -I/usr/X11R6/include \
+ gcc -c eyestr.c ${CFLAGS} \
-DEYECLOCK_LIB=\"${EYECLOCK_LIB}/\"
eyetime.o : eyetime.c
- gcc -c eyetime.c -O -I/usr/X11R6/include \
+ gcc -c eyetime.c ${CFLAGS} \
-DEYECLOCK_LIB=\"${EYECLOCK_LIB}/\"
clean :
rm *.o eyeclock
@@ -50,8 +54,7 @@
cp sample3 sample3.bak
cp sample3.xpm sample3.xpm.bak
install :
- cp eyeclock ${EYECLOCK_BIN}
- chmod 0755 ${EYECLOCK_BIN}/eyeclock
+ ${INSTALL} -s eyeclock ${EYECLOCK_BIN}
mkdir -p ${EYECLOCK_LIB}
cp COPYRIGHT.euc Makefile README.euc \
sample1 sample1.xpm sample2 sample2.xpm \