--- Makefile.orig 2013-06-30 18:47:46.000000000 +0200
+++ Makefile 2013-07-02 13:13:04.000000000 +0200
-CFLAGS=-Wall -Wno-pointer-sign -g $(CLCFLAGS) -DGSEAL_ENABLE
+CFLAGS=-Wall -Wno-pointer-sign -g $(CLCFLAGS) -DGSEAL_ENABLE $(EXTRACFLAGS)
# these locations seem to work for SuSE and Fedora
+#prefix = $(DESTDIR)/usr
DATADIR = $(prefix)/share
DESKTOPDIR = $(DATADIR)/applications
LIBDIVECOMPUTERINCLUDES = $(shell $(PKGCONFIG) --cflags libdivecomputer)
LIBDIVECOMPUTERARCHIVE = $(shell $(PKGCONFIG) --libs libdivecomputer)
-libdc-local := $(wildcard /usr/local/lib/libdivecomputer.a)
-libdc-local64 := $(wildcard /usr/local/lib64/libdivecomputer.a)
+libdc-local := $(wildcard $(prefix)/lib/libdivecomputer.a)
+libdc-local64 := $(wildcard $prefix)/lib64/libdivecomputer.a)
libdc-usr := $(wildcard /usr/lib/libdivecomputer.a)
libdc-usr64 := $(wildcard /usr/lib64/libdivecomputer.a)
else ifeq ($(UNAME), darwin)
OSSUPPORT_CFLAGS = $(GTKCFLAGS)
- MACOSXINSTALL = /Applications/$(CAPITALIZED_NAME).app
+ MACOSXINSTALL = ${mpappdir}/$(CAPITALIZED_NAME).app
MACOSXFILES = packaging/macosx
MACOSXSTAGING = $(MACOSXFILES)/$(CAPITALIZED_NAME).app
INFOPLIST = $(MACOSXFILES)/Info.plist