pkgsrc/x11/hot-babe/patches/patch-ab

54 lines
2.1 KiB
Text

$NetBSD: patch-ab,v 1.3 2016/04/21 12:36:04 jperkin Exp $
--- Makefile.orig 2004-12-04 23:49:30.000000000 +0000
+++ Makefile
@@ -1,13 +1,15 @@
# where to install this program
-PREFIX := /usr/local
+sharedir= share/hot-babe
+docdir= share/doc/hot-babe
+pixmapdir= share/pixmaps
+
VERSION := 0.2.2
# optimization cflags
CFLAGS += -O2 -Wall -g `pkg-config gdk-2.0 gdk-pixbuf-2.0 --cflags` -DPREFIX=\"$(PREFIX)\" -DVERSION=\"$(VERSION)\"
OBJS = hot-babe.o loader.o
-CC = gcc
-LIBS = `pkg-config gdk-2.0 gdk-pixbuf-2.0 --libs`
+LIBS += `pkg-config gdk-2.0 gdk-pixbuf-2.0 --libs`
DOC = ChangeLog NEWS TODO LICENSE CONTRIBUTORS copyright config.example
@@ -22,18 +24,18 @@ clean:
install:
install -d $(DESTDIR)$(PREFIX)/bin
install -m 0755 hot-babe $(DESTDIR)$(PREFIX)/bin
- install -d $(DESTDIR)$(PREFIX)/share/hot-babe/hb01
- install -m 0644 hb01/* $(DESTDIR)$(PREFIX)/share/hot-babe/hb01
- install -d $(DESTDIR)$(PREFIX)/share/doc/hot-babe
- install -m 0644 $(DOC) $(DESTDIR)$(PREFIX)/share/doc/hot-babe
- install -d $(DESTDIR)$(PREFIX)/share/man/man1
- install -m 0644 hot-babe.1 $(DESTDIR)$(PREFIX)/share/man/man1
- install -d $(DESTDIR)$(PREFIX)/share/pixmaps
- install -m 0644 hot-babe.xpm $(DESTDIR)$(PREFIX)/share/pixmaps
+ install -d $(DESTDIR)$(PREFIX)/${sharedir}/hb01
+ install -m 0644 hb01/* $(DESTDIR)$(PREFIX)/${sharedir}/hb01
+ install -d $(DESTDIR)$(PREFIX)/${docdir}
+ install -m 0644 $(DOC) $(DESTDIR)$(PREFIX)/${docdir}
+ install -d $(DESTDIR)$(PREFIX)/${PKGMANDIR}/man1
+ install -m 0644 hot-babe.1 $(DESTDIR)$(PREFIX)/${PKGMANDIR}/man1
+ install -d $(DESTDIR)$(PREFIX)/${pixmapdir}
+ install -m 0644 hot-babe.xpm $(DESTDIR)$(PREFIX)/${pixmapdir}
uninstall:
rm -f $(DESTDIR)$(PREFIX)/bin/hot-babe
- rm -rf $(DESTDIR)$(PREFIX)/share/hot-babe
- rm -rf $(DESTDIR)$(PREFIX)/share/doc/hot-babe
- rm -f $(DESTDIR)$(PREFIX)/share/man/man1/hot-babe.1
- rm -f $(DESTDIR)$(PREFIX)/share/pixmaps/hot-babe.xpm
+ rm -rf $(DESTDIR)$(PREFIX)/${sharedir}
+ rm -rf $(DESTDIR)$(PREFIX)/${docdir}
+ rm -f $(DESTDIR)$(PREFIX)/${PKGMANDIR}/man1/hot-babe.1
+ rm -f $(DESTDIR)$(PREFIX)/${pixmapdir}/hot-babe.xpm