From 1cf3b6123a79e95c57f01ade87b08b95a5870f93 Mon Sep 17 00:00:00 2001 From: Marcus Alves Grando Date: Sat, 29 Oct 2005 19:26:52 +0000 Subject: [PATCH] Respect LOCALBASE/X11BASE PR: 88149 Notified by: kris Submitted by: Jose Alonso Cardenas Marquez (maintainer) --- audio/py-sdl_mixer/Makefile | 4 ++++ audio/py-sdl_mixer/files/patch-setup.py | 19 +++++++++++++++++++ 2 files changed, 23 insertions(+) create mode 100644 audio/py-sdl_mixer/files/patch-setup.py diff --git a/audio/py-sdl_mixer/Makefile b/audio/py-sdl_mixer/Makefile index 5615c3dfc024..ca977e9eac89 100644 --- a/audio/py-sdl_mixer/Makefile +++ b/audio/py-sdl_mixer/Makefile @@ -30,6 +30,10 @@ EXAMPLESDIR= ${PREFIX}/share/examples/py-sdl-mixer post-patch: @${REINPLACE_CMD} -e 's,"SDL","SDL-1.1",g' ${WRKSRC}/setup.py @${REINPLACE_CMD} -e 's,SDL/SDL,SDL11/SDL,g' ${WRKSRC}/sdl_mixer.c + @${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|g' \ + ${WRKSRC}/setup.py + @${REINPLACE_CMD} -e 's|%%X11BASE%%|${X11BASE}|g' \ + ${WRKSRC}/setup.py post-install: .if !defined(NOPORTDOCS) diff --git a/audio/py-sdl_mixer/files/patch-setup.py b/audio/py-sdl_mixer/files/patch-setup.py new file mode 100644 index 000000000000..2825bbe40d53 --- /dev/null +++ b/audio/py-sdl_mixer/files/patch-setup.py @@ -0,0 +1,19 @@ +--- setup.py.orig Fri Oct 28 00:13:10 2005 ++++ setup.py Fri Oct 28 00:14:18 2005 +@@ -17,12 +17,14 @@ + + INCDIR = [ + "/usr/include", +- "/usr/local/include", ++ "%%LOCALBASE%%/include", ++ "%%X11BASE%%/include", + "/sw/include", # For Mac OS X + ] + LIBDIR = [ + "/usr/lib", +- "/usr/local/lib", ++ "%%LOCALBASE%%/lib", ++ "%%X11BASE%%/lib", + "/sw/lib/", # For Mac OS X + ] +