SHA256
1
0
forked from pool/alevt
alevt/alevt-xorg-makefile.diff

45 lines
2.0 KiB
Diff

--- alevt-1.6.1/Makefile.orig 2006-07-28 13:20:39.000000000 +0200
+++ alevt-1.6.1/Makefile 2006-07-28 13:21:18.000000000 +0200
@@ -7,6 +7,8 @@
#FONT=neep9
+ USR_X11R6_DIR=/usr/X11R6
+ MAN_DIR=man
-CFLAGS=$(OPT) -DVERSION=\"$(VER)\" $(DEFS) -I/usr/X11R6/include -I/usr/local/include -W
+CFLAGS=$(OPT) -DVERSION=\"$(VER)\" $(DEFS) -I$(USR_X11R6_DIR)/include -I/usr/local/include -W
EXPOBJS=export.o exp-txt.o exp-html.o exp-gfx.o font.o
OBJS=main.o ui.o xio.o fdset.o vbi.o cache.o help.o edline.o search.o edit.o misc.o hamm.o lang.o $(EXPOBJS)
@@ -22,7 +22,7 @@
: sync
alevt: $(OBJS)
- $(CC) $(OPT) $(OBJS) -o alevt -L/usr/X11R6/lib -L/usr/X11R6/lib64 -lX11 $(EXPLIBS)
+ $(CC) $(OPT) $(OBJS) -o alevt -L$(USR_X11R6_DIR)/lib -L$(USR_X11R6_DIR)/lib64 -lX11 $(EXPLIBS)
alevt-date: $(TOBJS)
$(CC) $(OPT) $(TOBJS) -o alevt-date
@@ -60,14 +60,14 @@
rm -f alevt.html
rpm-install: all
- install -m 0755 alevt ${RPM_BUILD_ROOT}/usr/X11R6/bin
- install -m 0755 alevt-date ${RPM_BUILD_ROOT}/usr/X11R6/bin
- install -m 0755 alevt-cap ${RPM_BUILD_ROOT}/usr/X11R6/bin
- install -m 0644 alevt.1x ${RPM_BUILD_ROOT}/usr/X11R6/man/man1
- install -m 0644 alevt-date.1 ${RPM_BUILD_ROOT}/usr/X11R6/man/man1
- install -m 0644 alevt-cap.1 ${RPM_BUILD_ROOT}/usr/X11R6/man/man1
- install -m 0755 -d ${RPM_BUILD_ROOT}/usr/X11R6/include/X11/pixmaps
- install -m 0644 contrib/mini-alevt.xpm ${RPM_BUILD_ROOT}/usr/X11R6/include/X11/pixmaps
+ install -m 0755 alevt ${RPM_BUILD_ROOT}$(USR_X11R6_DIR)/bin
+ install -m 0755 alevt-date ${RPM_BUILD_ROOT}$(USR_X11R6_DIR)/bin
+ install -m 0755 alevt-cap ${RPM_BUILD_ROOT}$(USR_X11R6_DIR)/bin
+ install -m 0644 alevt.1x ${RPM_BUILD_ROOT}$(USR_X11R6_DIR)/$(MAN_DIR)/man1
+ install -m 0644 alevt-date.1 ${RPM_BUILD_ROOT}$(USR_X11R6_DIR)/$(MAN_DIR)/man1
+ install -m 0644 alevt-cap.1 ${RPM_BUILD_ROOT}$(USR_X11R6_DIR)/$(MAN_DIR)/man1
+ install -m 0755 -d ${RPM_BUILD_ROOT}$(USR_X11R6_DIR)/include/X11/pixmaps
+ install -m 0644 contrib/mini-alevt.xpm ${RPM_BUILD_ROOT}$(USR_X11R6_DIR)/include/X11/pixmaps
# anything below this line is just for me!