patches/sugar-bounce-01-makefile.diff
author jurikm
Sun, 12 Feb 2012 14:04:10 +0000
changeset 8245 383896da4129
parent 2332 29632a28934d
permissions -rw-r--r--
SFEsauerbraten.spec: add IPS package name
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2332
29632a28934d 2010-02-03 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
     1
--- Bounce-7/Makefile-orig	2010-02-03 11:02:49.131012147 -0600
29632a28934d 2010-02-03 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
     2
+++ Bounce-7/Makefile	2010-02-03 11:03:18.047001248 -0600
29632a28934d 2010-02-03 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
     3
@@ -1,12 +1,13 @@
29632a28934d 2010-02-03 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
     4
-pythondir = $(shell python -c "from distutils import sysconfig; print sysconfig.get_python_lib()")
29632a28934d 2010-02-03 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
     5
+SHELL=/bin/bash
29632a28934d 2010-02-03 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
     6
+pythondir = $(shell python2.6 -c "from distutils import sysconfig; print sysconfig.get_python_lib()")
29632a28934d 2010-02-03 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
     7
 
29632a28934d 2010-02-03 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
     8
 all clean:
29632a28934d 2010-02-03 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
     9
 	$(MAKE) -C pongc $@
29632a28934d 2010-02-03 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    10
 
29632a28934d 2010-02-03 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    11
 install: all
29632a28934d 2010-02-03 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    12
-	./setup.py fix_manifest
29632a28934d 2010-02-03 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    13
+	python2.6 ./setup.py fix_manifest
29632a28934d 2010-02-03 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    14
 	sed -i /^pongc/d MANIFEST
29632a28934d 2010-02-03 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    15
-	./setup.py install --prefix=$(DESTDIR)/usr
29632a28934d 2010-02-03 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    16
+	python2.6 ./setup.py install --prefix=$(DESTDIR)/usr
29632a28934d 2010-02-03 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    17
 	for i in __init__.py _pongc.so pongc.py; do \
29632a28934d 2010-02-03 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    18
 		install -m 644 -D pongc/$$i $(DESTDIR)/$(pythondir)/pongc/$$i; \
29632a28934d 2010-02-03 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    19
 	done