aboutsummaryrefslogtreecommitdiffstats
path: root/games
diff options
context:
space:
mode:
authordanfe <danfe@FreeBSD.org>2013-11-18 14:00:29 +0800
committerdanfe <danfe@FreeBSD.org>2013-11-18 14:00:29 +0800
commit110328f03bc6aad39ef2b6a08ee15d9c61bdb990 (patch)
tree3acad9d41a9aa99f7edfd7723839a9fa870f0e5f /games
parent88e711a73058beb91d2af718ce9287c1bf5d5e0e (diff)
downloadfreebsd-ports-gnome-110328f03bc6aad39ef2b6a08ee15d9c61bdb990.tar.gz
freebsd-ports-gnome-110328f03bc6aad39ef2b6a08ee15d9c61bdb990.tar.zst
freebsd-ports-gnome-110328f03bc6aad39ef2b6a08ee15d9c61bdb990.zip
- Modernize LIB_DEPENDS syntax, sort the knobs
- Stagify, cleanup patch-Makefile, drop MAKE_ARGS
Diffstat (limited to 'games')
-rw-r--r--games/cake/Makefile17
-rw-r--r--games/cake/files/patch-Makefile6
2 files changed, 8 insertions, 15 deletions
diff --git a/games/cake/Makefile b/games/cake/Makefile
index 1065dfc1768f..ccfe79f7b92a 100644
--- a/games/cake/Makefile
+++ b/games/cake/Makefile
@@ -13,19 +13,18 @@ COMMENT= Quake3 map viewer (and powerful 3D game engine)
LICENSE= GPLv2
-LIB_DEPENDS= jpeg:${PORTSDIR}/graphics/jpeg
+LIB_DEPENDS= libjpeg.so:${PORTSDIR}/graphics/jpeg
-USE_XORG= x11 xext xmu xt xi sm ice
+USES= gmake
USE_GL= glut
+USE_XORG= x11 xext xmu xt xi sm ice
+USE_ZIP= yes
# Need to pass `-l', but PATCH_ARGS+= won't work because of PATCH_ARGS?=
# in bsd.port.mk
PATCH_ARGS= -d ${PATCH_WRKSRC} -N -s -E ${PATCH_STRIP} -l
-USE_GMAKE= yes
-USE_ZIP= yes
ALL_TARGET= main
-MAKE_ARGS+= CXX=${CXX} PTHREAD_LIBS=${PTHREAD_LIBS}
WRKSRC= ${WRKDIR}/cake_src
PLIST_FILES= bin/cake
@@ -46,13 +45,7 @@ post-patch: .SILENT
# Fix for GCC 4.x
${REINPLACE_CMD} -e 's/Mat3x2:://' ${WRKSRC}/cake/math.h
-NO_STAGE= yes
do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/main ${PREFIX}/bin/cake
-
-post-install:
- @${ECHO_MSG}
- @${CAT} ${PKGMESSAGE}
- @${ECHO_MSG}
+ ${INSTALL_PROGRAM} ${WRKSRC}/main ${STAGEDIR}${PREFIX}/bin/cake
.include <bsd.port.mk>
diff --git a/games/cake/files/patch-Makefile b/games/cake/files/patch-Makefile
index 629772c47950..324b380f14bf 100644
--- a/games/cake/files/patch-Makefile
+++ b/games/cake/files/patch-Makefile
@@ -8,12 +8,12 @@
-LDFLAGS += -L/usr/lib -L/usr/local/lib -lglut -lGLU -lGL -L/usr/X11R6/lib -lm -ldl
-LDFLAGS += -lpthread -lX11 -lXext -lXmu -lXt -lXi -lSM -lICE
-LDFLAGS += -lcurses -ljpeg -lz -lfmod-3.63
-+INCLUDES = -I/usr/include -I$(LOCALBASE)/include
++INCLUDES = -I$(LOCALBASE)/include
+CXX ?= g++
+CXXFLAGS += -Wall $(INCLUDES)
+
-+LDFLAGS += -L/usr/lib -L$(LOCALBASE)/lib -lglut -lGLU -lGL
-+LDFLAGS += $(PTHREAD_LIBS) -lX11 -lXext -lXmu -lXt -lXi -lSM -lICE
++LDFLAGS += -L$(LOCALBASE)/lib -lglut -lGLU -lGL
++LDFLAGS += -pthread -lX11 -lXext -lXmu -lXt -lXi -lSM -lICE
+#LDFLAGS += -lcurses -ljpeg -lz -lfmod-3.63
+LDFLAGS += -ljpeg