pkgsrc/multimedia/alevt/patches/patch-aa
2008-06-12 02:14:13 +00:00

70 lines
2.7 KiB
Text

$NetBSD: patch-aa,v 1.3 2008/06/12 02:14:38 joerg Exp $
--- Makefile.orig 2002-08-20 05:17:53.000000000 +0200
+++ Makefile 2007-05-29 07:22:30.000000000 +0200
@@ -6,7 +6,7 @@
# a smaller and thinner font
#FONT=neep9
-CFLAGS=$(OPT) -DVERSION=\"$(VER)\" $(DEFS) -I/usr/X11R6/include -I/usr/local/include -W
+CFLAGS=$(OPT) -DVERSION=\"$(VER)\" $(DEFS) -I$(LOCALBASE)/include -I$(X11BASE)/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)
@@ -14,20 +14,20 @@
COBJS=alevt-cap.o vbi.o fdset.o misc.o hamm.o lang.o $(EXPOBJS)
ifneq ($(findstring WITH_PNG,$(DEFS)),)
-EXPLIBS=-L/usr/local/lib -lpng -lz -lm
+EXPLIBS=-L$(LOCALBASE)/lib -L/usr/local/lib -lpng -lz -lm
endif
all: alevt alevt-date alevt-cap alevt.1x alevt-date.1 alevt-cap.1
- sync
+# sync
alevt: $(OBJS)
- $(CC) $(OPT) $(OBJS) -o alevt -L/usr/X11R6/lib -lX11 $(EXPLIBS)
+ $(CC) $(OPT) $(LDFLAGS) $(OBJS) -o alevt -L/usr/X11R6/lib -lX11 $(EXPLIBS)
alevt-date: $(TOBJS)
- $(CC) $(OPT) $(TOBJS) -o alevt-date
+ $(CC) $(OPT) $(LDFLAGS) $(TOBJS) -o alevt-date
alevt-cap: $(COBJS)
- $(CC) $(OPT) $(COBJS) -o alevt-cap $(EXPLIBS)
+ $(CC) $(OPT) $(LDFLAGS) $(COBJS) -o alevt-cap $(EXPLIBS)
font.o: font1.xbm font2.xbm
fontsize.h: font1.xbm font2.xbm
@@ -62,21 +62,21 @@
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.1x ${RPM_BUILD_ROOT}/usr/X11R6/man/man1/alevt.1
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
# anything below this line is just for me!
install: all
- install -m 0755 alevt /usr/local/bin
- install -m 0755 alevt-date /usr/local/bin
- install -m 0755 alevt-cap /usr/local/bin
- install -m 0644 alevt.1x /usr/local/man/man1
- install -m 0644 alevt-date.1 /usr/local/man/man1
- install -m 0644 alevt-cap.1 /usr/local/man/man1
- install -m 0644 contrib/mini-alevt.xpm /usr/include/X11/pixmaps
- sync
+ $(BSD_INSTALL_PROGRAM) alevt ${DESTDIR}$(PREFIX)/bin
+ $(BSD_INSTALL_PROGRAM) alevt-date ${DESTDIR}$(PREFIX)/bin
+ $(BSD_INSTALL_PROGRAM) alevt-cap ${DESTDIR}$(PREFIX)/bin
+ $(BSD_INSTALL_DATA) alevt.1x ${DESTDIR}$(PREFIX)/man/man1
+ $(BSD_INSTALL_DATA) alevt-date.1 ${DESTDIR}$(PREFIX)/man/man1
+ $(BSD_INSTALL_DATA) alevt-cap.1 ${DESTDIR}$(PREFIX)/man/man1
+ $(BSD_INSTALL_DATA) contrib/mini-alevt.xpm ${DESTDIR}$(PREFIX)/share/pixmaps
+# sync
depend:
makedepend -Y -- $(CFLAGS_none) -- *.c 2>/dev/null