Index: head/games/blockout/Makefile =================================================================== --- head/games/blockout/Makefile (revision 442101) +++ head/games/blockout/Makefile (revision 442102) @@ -1,54 +1,52 @@ # Created by: Stas Timokhin # $FreeBSD$ PORTNAME= blockout PORTVERSION= 2.5 -PORTREVISION= 3 +PORTREVISION= 4 CATEGORIES= games MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/BlockOut%20${PORTVERSION}/ \ http://www.stasyan.com/devel/distfiles/ DISTFILES= bl25-src${EXTRACT_SUFX} bl25-linux-x86${EXTRACT_SUFX} MAINTAINER= ports@FreeBSD.org COMMENT= BlockOut II is an adaptation of the original Blockout DOS game LICENSE= GPLv2+ - -LIB_DEPENDS= libasound.so:audio/alsa-lib ONLY_FOR_ARCHS= i386 amd64 USE_SDL= mixer sdl USES= gmake dos2unix DOS2UNIX_FILES= ${WRKSRC}/ImageLib/src/gif/gif.h \ ${WRKSRC}/ImageLib/src/gif/gif.cpp ${WRKSRC}/BlockOut/*.cpp USE_GL= gl glu WRKSRC= ${WRKDIR}/BL_SRC BUILD_WRKSRC= ${WRKSRC}/BlockOut OPTIONS_DEFINE= DOCS DESKTOP_ENTRIES="BlockOut" \ "" \ "${PREFIX}/share/pixmaps/block_icon.ico" \ "${PORTNAME}" \ "" \ "" post-patch: @${REINPLACE_CMD} -e 's|%%DATADIR%%|${DATADIR}|' ${WRKSRC}/BlockOut/Utils.cpp pre-build: cd ${WRKSRC}/ImageLib/src && ${DO_MAKE_BUILD} do-install: ${INSTALL_PROGRAM} ${WRKSRC}/BlockOut/blockout ${STAGEDIR}${PREFIX}/bin cd ${WRKDIR}/blockout && ${COPYTREE_SHARE} "images sounds" ${STAGEDIR}${DATADIR} ${INSTALL_DATA} ${WRKSRC}/BlockOut/block_icon.ico ${STAGEDIR}${PREFIX}/share/pixmaps do-install-DOCS-on: ${MKDIR} ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} ${BUILD_WRKSRC}/README.txt ${STAGEDIR}${DOCSDIR} .include Index: head/games/blockout/files/patch-Makefile =================================================================== --- head/games/blockout/files/patch-Makefile (revision 442101) +++ head/games/blockout/files/patch-Makefile (revision 442102) @@ -1,38 +1,40 @@ ---- BlockOut/Makefile.orig 2014-05-06 13:47:56.000000000 +0400 -+++ BlockOut/Makefile 2016-05-23 20:37:54.725070000 +0300 -@@ -47,27 +47,27 @@ +--- BlockOut/Makefile.orig 2014-05-06 09:47:56 UTC ++++ BlockOut/Makefile +@@ -47,27 +47,27 @@ else SDL_LIBS = /usr/lib/i386-linux-gnu endif -CXX = g++ +#CXX = g++ ifdef _release -CXXFLAGS = -O2 -Dlinux -c \ - -I/usr/include/SDL -I../ImageLib/src -I. +CXXFLAGS += -Dlinux -c \ + -I$(LOCALBASE)/include/SDL -I$(LOCALBASE)/include -I../ImageLib/src -I. LFLAGS = -Wl,--strip-all \ $(ADD_LIBS) \ - -lSDL_mixer -lSDL -lasound \ +- -lSDL_mixer -lSDL -lasound \ - -lGL -lGLU -lpthread -lm -ldl ++ -lSDL_mixer -lSDL \ + -lGL -lGLU -lpthread -lm else -CXXFLAGS = -g -D_DEBUG -Dlinux -c \ - -I/usr/include/SDL -I../ImageLib/src -I. +CXXFLAGS += -D_DEBUG -Dlinux -c \ + -I$(LOCALBASE)/include/SDL -I$(LOCALBASE)/include -I../ImageLib/src -I. -LFLAGS = -L $(SDL_LIBS) \ +LFLAGS = -L $(LOCALBASE)/lib \ $(ADD_LIBS) \ - -lSDL_mixer -lSDL -lasound \ +- -lSDL_mixer -lSDL -lasound \ - -lGL -lGLU -lpthread -lm -ldl ++ -lSDL_mixer -lSDL \ + -lGL -lGLU -lpthread -lm endif