8d5decd5b5
From maintainer (Giovanni Bechis <g.bechis@snb.it>) Corrections, nitpicking and ok, simon@
61 lines
2.1 KiB
Plaintext
61 lines
2.1 KiB
Plaintext
$OpenBSD: patch-Makefile,v 1.3 2007/11/05 22:44:54 kili Exp $
|
|
--- Makefile.orig Fri Oct 19 00:27:00 2007
|
|
+++ Makefile Sun Oct 28 11:02:26 2007
|
|
@@ -1,5 +1,5 @@
|
|
# Other paths are relative to this.
|
|
-PREFIX ?= /usr/local
|
|
+PREFIX ?= ${PREFIX}
|
|
|
|
# Where to install the executable.
|
|
BINPATH ?= $(PREFIX)/bin
|
|
@@ -14,7 +14,7 @@ export ICONPATH ?= $(PREFIX)/share/isomaster/icons
|
|
export LOCALEDIR ?= $(PREFIX)/share/locale
|
|
|
|
# Where to install the man page.
|
|
-MYMANPATH ?= $(PREFIX)/share/man/man1
|
|
+MYMANPATH ?= $(PREFIX)/man/man1
|
|
|
|
# Where to install the .desktop file
|
|
DESKTOPPATH ?= $(PREFIX)/share/applications
|
|
@@ -62,7 +62,7 @@ all: translations isomaster.desktop isomaster
|
|
|
|
isomaster: $(OBJECTS) lib iniparser
|
|
@echo 'Linking isomaster'
|
|
- @$(CC) $(OBJECTS) bk/bk.a iniparser-2.17/libiniparser.a $(CFLAGS) $(CPPFLAGS) `pkg-config --libs gtk+-2.0` -o isomaster
|
|
+ @$(CC) $(OBJECTS) bk/bk.a iniparser-2.17/libiniparser.a $(CFLAGS) $(CPPFLAGS) -lcompat `pkg-config --libs gtk+-2.0` -o isomaster
|
|
|
|
# static pattern rule
|
|
$(OBJECTS): %.o: %.c bk/bk.h Makefile
|
|
@@ -95,22 +95,22 @@ endif
|
|
# for info about DESTDIR see http://www.gnu.org/prep/standards/html_node/DESTDIR.html
|
|
|
|
install: all
|
|
- $(INSTALL) -d $(DESTDIR)$(BINPATH)
|
|
- $(INSTALL) isomaster $(DESTDIR)$(BINPATH)
|
|
+ $(INSTALL) -d $(BINPATH)
|
|
+ $(INSTALL) isomaster $(BINPATH)
|
|
cd icons && $(MAKE) install
|
|
ifndef WITHOUT_NLS
|
|
cd po && $(MAKE) install
|
|
endif
|
|
- $(INSTALL) -d $(DESTDIR)$(MYMANPATH)
|
|
- $(INSTALL) -m 644 isomaster.1 $(DESTDIR)$(MYMANPATH)
|
|
- $(INSTALL) -d $(DESTDIR)$(DESKTOPPATH)
|
|
- $(INSTALL) -m 644 isomaster.desktop $(DESTDIR)$(DESKTOPPATH)
|
|
+ $(INSTALL) -d $(MYMANPATH)
|
|
+ $(INSTALL) -m 644 isomaster.1 $(MYMANPATH)
|
|
+ $(INSTALL) -d $(DESKTOPPATH)
|
|
+ $(INSTALL) -m 644 isomaster.desktop $(DESKTOPPATH)
|
|
|
|
uninstall:
|
|
- $(RM) $(DESTDIR)$(BINPATH)/isomaster
|
|
+ $(RM) $(BINPATH)/isomaster
|
|
cd icons && $(MAKE) uninstall
|
|
ifndef WITHOUT_NLS
|
|
cd po && $(MAKE) uninstall
|
|
endif
|
|
- $(RM) $(DESTDIR)$(MYMANPATH)/isomaster.1
|
|
- $(RM) $(DESTDIR)$(DESKTOPPATH)/isomaster.desktop
|
|
+ $(RM) $(MYMANPATH)/isomaster.1
|
|
+ $(RM) $(DESKTOPPATH)/isomaster.desktop
|