another /usr/local, this time should be TRUEPREFIX. pointed out by aja@.

This one may change the package (rather than just result in the build
failing as with the previous LOCALBASE subst) so do bump.
This commit is contained in:
sthen 2012-02-28 12:42:44 +00:00
parent 995bcbc512
commit c7277bbbb4
2 changed files with 7 additions and 3 deletions

View File

@ -1,7 +1,8 @@
# $OpenBSD: Makefile,v 1.2 2012/02/28 10:11:43 sthen Exp $
# $OpenBSD: Makefile,v 1.3 2012/02/28 12:42:44 sthen Exp $
COMMENT= 2D puzzle-platformer game
DISTNAME= beret-1.2.1
REVISION= 0
CATEGORIES= games x11
HOMEPAGE= http://kiwisauce.com/beret/
@ -31,6 +32,9 @@ CFLAGS+= -I${LOCALBASE}/include \
-I${LOCALBASE}/include/SDL -Wall
LDFLAGS+= -pthread -L${LOCALBASE}/lib -L${X11BASE}/lib
do-configure:
${SUBST_CMD} ${WRKSRC}/game.c
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/beret ${PREFIX}/bin
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/beret

View File

@ -1,4 +1,4 @@
$OpenBSD: patch-game_c,v 1.1.1.1 2012/02/27 22:07:49 schwarze Exp $
$OpenBSD: patch-game_c,v 1.2 2012/02/28 12:42:44 sthen Exp $
--- game.c.orig Tue Jan 10 01:55:02 2012
+++ game.c Thu Jan 12 11:33:20 2012
@@ -95,7 +95,7 @@
@ -6,7 +6,7 @@ $OpenBSD: patch-game_c,v 1.1.1.1 2012/02/27 22:07:49 schwarze Exp $
#else
#define SUPPORT_PATH ".beret/"
-#define RESOURCE_PATH ""
+#define RESOURCE_PATH "/usr/local/share/beret/"
+#define RESOURCE_PATH "${TRUEPREFIX}/share/beret/"
#endif
#define QUITMOD_WIN KMOD_ALT