1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-04 22:33:27 +00:00
freebsd-ports/x11-clocks/eyeclock/files/patch-aa

58 lines
1.9 KiB
Plaintext
Raw Normal View History

1998-12-09 10:02:58 +00:00
--- 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"
1998-12-09 10:02:58 +00:00
+LDFLAGS=-Wl,-rpath,${PREFIX}/lib
+.endif
1998-12-09 10:02:58 +00:00
+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
1998-12-09 10:02:58 +00:00
- gcc -c eyegraph.c -O -I/usr/X11R6/include \
+ gcc -c eyegraph.c ${CFLAGS} \
-DEYECLOCK_LIB=\"${EYECLOCK_LIB}/\"
eyeinit.o : eyeinit.c
1998-12-09 10:02:58 +00:00
- gcc -c eyeinit.c -O -I/usr/X11R6/include \
+ gcc -c eyeinit.c ${CFLAGS} \
-DEYECLOCK_LIB=\"${EYECLOCK_LIB}/\"
eyemain.o : eyemain.c
1998-12-09 10:02:58 +00:00
- gcc -c eyemain.c -O -I/usr/X11R6/include \
+ gcc -c eyemain.c ${CFLAGS} \
-DEYECLOCK_LIB=\"${EYECLOCK_LIB}/\"
eyequit.o : eyequit.c
1998-12-09 10:02:58 +00:00
- gcc -c eyequit.c -O -I/usr/X11R6/include \
+ gcc -c eyequit.c ${CFLAGS} \
-DEYECLOCK_LIB=\"${EYECLOCK_LIB}/\"
eyestr.o : eyestr.c
1998-12-09 10:02:58 +00:00
- gcc -c eyestr.c -O -I/usr/X11R6/include \
+ gcc -c eyestr.c ${CFLAGS} \
-DEYECLOCK_LIB=\"${EYECLOCK_LIB}/\"
eyetime.o : eyetime.c
1998-12-09 10:02:58 +00:00
- gcc -c eyetime.c -O -I/usr/X11R6/include \
+ gcc -c eyetime.c ${CFLAGS} \
-DEYECLOCK_LIB=\"${EYECLOCK_LIB}/\"
clean :
rm *.o eyeclock
1998-12-09 10:02:58 +00:00
@@ -50,8 +54,7 @@
cp sample3 sample3.bak
cp sample3.xpm sample3.xpm.bak
install :
1998-12-09 10:02:58 +00:00
- 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 \