Index: head/games/tomenet/Makefile =================================================================== --- head/games/tomenet/Makefile (revision 384051) +++ head/games/tomenet/Makefile (revision 384052) @@ -1,40 +1,46 @@ # Created by: Frederic Culot # $FreeBSD$ PORTNAME= tomenet PORTVERSION= 4.5.9 CATEGORIES= games MASTER_SITES= http://tomenet.eu/downloads/ MAINTAINER= culot@FreeBSD.org COMMENT= Online multiplayer rogue-like role-playing game WRKSRC= ${WRKDIR}/${DISTNAME}/src MAKEFILE= makefile USES= gmake ncurses tar:bzip2 CFLAGS+= -DDEFAULT_PATH="\\\"${DATADIR}/lib/\\\"" MAKE_JOBS_UNSAFE= yes SUB_FILES= pkg-message do-install: .for f in tomenet tomenet.server accedit ${INSTALL_PROGRAM} ${WRKSRC}/${f} ${STAGEDIR}${PREFIX}/bin .endfor ${MKDIR} ${STAGEDIR}${DATADIR} (cd ${WRKDIR}/${DISTNAME} && ${COPYTREE_SHARE} lib ${STAGEDIR}${DATADIR}) ${MKDIR} ${STAGEDIR}${ETCDIR} ${INSTALL_DATA} ${WRKDIR}/${DISTNAME}/.tomenetrc ${STAGEDIR}${ETCDIR}/tomenetrc OPTIONS_DEFINE= DOCS .include +.if ${OSVERSION} < 1000000 +LIB_DEPENDS+= libexecinfo.so:${PORTSDIR}/devel/libexecinfo +CFLAGS+= -I${LOCALBASE}/include +LIBS+= -L${LOCALBASE}/lib +.endif + post-install: .if ${PORT_OPTIONS:MDOCS} ${MKDIR} ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} ${WRKDIR}/${DISTNAME}/TomeNET-Guide.txt ${STAGEDIR}${DOCSDIR} .endif .include Index: head/games/tomenet/files/patch-makefile =================================================================== --- head/games/tomenet/files/patch-makefile (revision 384051) +++ head/games/tomenet/files/patch-makefile (revision 384052) @@ -1,33 +1,33 @@ --- makefile.orig 2015-02-01 11:19:25.000000000 +0100 +++ makefile 2015-04-08 15:13:59.866757474 +0200 @@ -203,7 +203,7 @@ # # This is my compiler of choice, it seems to work most everywhere # -CC = gcc -+CC = cc ++CC ?= cc # For allowing #if..#else..#endif constructs in LUA files - C. Blue # Note: The flags must contain @@ -256,8 +256,8 @@ # attempt to "guess" at many of these flags based on your system. # ## With SDL -CFLAGS = -g -pipe -Wall -DUSE_X11 -DUSE_GCU -I${X11BASE}/include -D_XOPEN_SOURCE -D_BSD_SOURCE -DMEXP=19937 -DSOUND_SDL `sdl-config --cflags` -D_DEFAULT_SOURCE -DACC32 -LIBS = -L${X11BASE}/lib -L/usr/pkg/lib -lX11 -lncurses -lcrypt -lm `sdl-config --libs` -lSDL_mixer +#CFLAGS = -g -pipe -Wall -DUSE_X11 -DUSE_GCU -I${X11BASE}/include -D_XOPEN_SOURCE -D_BSD_SOURCE -DMEXP=19937 -DSOUND_SDL `sdl-config --cflags` -D_DEFAULT_SOURCE -DACC32 +#LIBS = -L${X11BASE}/lib -L/usr/pkg/lib -lX11 -lncurses -lcrypt -lm `sdl-config --libs` -lSDL_mixer ## ## Without SDL #CFLAGS = -g -pipe -Wall -DUSE_X11 -DUSE_GCU -I${X11BASE}/include -D_XOPEN_SOURCE -D_BSD_SOURCE -DMEXP=19937 @@ -304,8 +304,8 @@ #LDFLAGS = -Wl,-rpath,\$$ORIGIN ## ## Without SDL -#CFLAGS = -g -pipe -Wall -DUSE_X11 -DUSE_GCU -I${X11BASE}/include -D_XOPEN_SOURCE -D_BSD_SOURCE -DMEXP=19937 -#LIBS = -L${X11BASE}/lib -L/usr/pkg/lib -lX11 -lncurses -lcrypt -lm +CFLAGS += -g -pipe -Wall -DUSE_GCU -D_XOPEN_SOURCE -D_BSD_SOURCE -DMEXP=19937 +LIBS += -lncurses -lcrypt -lm -lexecinfo ## Added by thaler, 6/28/97