openbsd-ports/games/xminehunter/patches/patch-Makefile

34 lines
995 B
Plaintext
Raw Normal View History

2007-10-26 17:19:16 -04:00
$OpenBSD: patch-Makefile,v 1.1 2007/10/26 21:19:16 ajacoutot Exp $
--- Makefile.orig Mon Jul 22 08:11:34 1996
2007-10-26 17:19:16 -04:00
+++ Makefile Fri Oct 26 23:08:54 2007
@@ -1,14 +1,13 @@
-INSTALL_BIN_PATH = /usr/local/bin
-INSTALL_SCORE_PATH = /usr/local/lib/xminehunter
+INSTALL_BIN_PATH = ${LOCALBASE}/bin
+INSTALL_SCORE_PATH = ${LOCALBASE}/lib/X11/xminehunter
-INCLUDES = -I/usr/local/X11R5/include
-LIBS = -L/usr/local/X11R5/lib -lXm -lXt -lXpm -lXext -lX11
+INCLUDES = -I${LOCALBASE}/include -I${X11BASE}/include
+LIBS = -L${LOCALBASE}/lib -L${X11BASE}/lib ${MOTIFLIB} -lXt -lXpm -lXext -lX11
2001-03-17 10:33:56 -05:00
+CC = ${CXX}
2001-03-17 10:33:56 -05:00
-CC = g++
+CFLAGS += -DMINE_SCORE_PATH=\"${INSTALL_SCORE_PATH}\"
2007-10-26 17:19:16 -04:00
-CFLAGS = -DMINE_SCORE_PATH=\"${INSTALL_SCORE_PATH}\"
-
2001-03-17 10:33:56 -05:00
# no need to change anything below this line
2007-10-26 17:19:16 -04:00
PGM = xminehunter
2001-03-17 10:33:56 -05:00
@@ -50,7 +49,7 @@ bitmap.o: ${HEADERS} bitmap.cc
2000-06-02 15:41:58 -04:00
install:
mkdir -p ${INSTALL_SCORE_PATH}
- chmod 333 ${INSTALL_SCORE_PATH}
+ chmod 666 ${INSTALL_SCORE_PATH}
cp xminehunter ${INSTALL_BIN_PATH}
clean: