Sophie

Sophie

distrib > Mageia > 3 > i586 > media > core-release-src > by-pkgid > b9fb5ede9b5e1263a8076c1714f0f32c > files > 2

numptyphysics-0.3.3-2.mga3.src.rpm

--- a/makefile.orig	2012-07-28 01:08:54.294000243 +0200
+++ a/makefile	2012-07-28 03:07:49.068000211 +0200
@@ -2,22 +2,26 @@
 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)
 
 all: $(APP)
 
 # Required modules (uses pkg-config)
-PKGS = sdl SDL_image
+PKGS = sdl SDL_image SDL_ttf zlib x11
 
 CXXFLAGS += $(shell pkg-config --cflags $(PKGS))
 LIBS += $(shell pkg-config --libs $(PKGS))
 
 # There's no pkg-config module for SDL_ttf?
-LIBS += -lSDL_ttf
+# LIBS += -lSDL_ttf
+
+# missing zlib and X11 refs
+# LIBS += -lz -lX11
 
 
 # Box2D Library
@@ -64,8 +68,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