Sophie

Sophie

distrib > Mageia > 5 > x86_64 > media > core-release-src > by-pkgid > e1dd72e8ce6c795e8960727948c8924a > files > 5

numptyphysics-0.4-0.git20132002.6.mga5.src.rpm

--- numptyphysics-0.4-git20132002/makefile.orig	2013-02-20 20:20:17.000000000 +0400
+++ numptyphysics-0.4-git20132002/makefile	2014-05-19 14:50:27.000000000 +0400
@@ -2,9 +2,10 @@
 APP = numptyphysics
 
 DESTDIR ?=
-PREFIX = /opt/numptyphysics
+PREFIX = /usr
+BASE_PATH = $(PREFIX)/share/$(APP)/data
 
-CXXFLAGS += -DINSTALL_BASE_PATH=\"$(PREFIX)/data\"
+CXXFLAGS += -DINSTALL_BASE_PATH=\"$(BASE_PATH)\"
 
 SOURCES = $(wildcard *.cpp)
 
@@ -64,8 +65,8 @@
 	install -m 755 $(APP) $(DESTDIR)/$(PREFIX)/bin/
 	mkdir -p $(DESTDIR)/usr/share/applications
 	install -m 644 $(APP).desktop $(DESTDIR)/usr/share/applications/
-	mkdir -p $(DESTDIR)/$(PREFIX)/data
-	cp -rpv data/*.png data/*.ttf data/*.npz $(DESTDIR)/$(PREFIX)/data/
+	mkdir -p $(DESTDIR)/$(BASE_PATH)
+	cp -rpv data/*.png data/*.ttf data/*.npz $(DESTDIR)/$(BASE_PATH)/
 
 
 .PHONY: all clean distclean