From bce9b81f9d6099820f3839d7809d6b08c1d2ae7b Mon Sep 17 00:00:00 2001 From: miwi Date: Sat, 19 Apr 2008 17:56:05 +0000 Subject: - Remove unneeded dependency from gtk12/gtk20 [1] - Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG - Remove X11BASE support in favor of LOCALBASE or PREFIX - Use USE_LDCONFIG instead of INSTALLS_SHLIB - Remove unneeded USE_GCC 3.4+ Thanks to all Helpers: Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr, ehaupt, nox, itetcu, flz, pav PR: 116263 Tested on: pointyhat Approved by: portmgr (pav) --- games/3dc/Makefile | 2 +- games/3dc/files/patch-aa | 4 ++-- games/3dpong/Makefile | 4 ++-- games/BillardGL/Makefile | 8 +++----- games/BillardGL/files/patch-Makefile | 4 ++-- games/BillardGL/files/patch-Namen.h | 2 +- games/CaribbeanStud/files/patch-Xmakefile | 4 ++-- games/KnightCap/files/patch-aa | 6 +++--- games/abuse_sdl/Makefile | 6 +++--- games/actx/Makefile | 2 +- games/adom/Makefile | 2 +- games/affenspiel/Makefile | 4 ++-- games/airrox/files/patch-Makefile | 4 ++-- games/alephone/Makefile | 7 +++---- games/amphetamine/files/patch-aa | 6 +++--- games/annelid/Makefile | 4 ++-- games/annelid/files/patch-Makefile | 4 ++-- games/apoolGL/Makefile | 2 +- games/aqbubble/Makefile | 4 ++-- games/armagetron/Makefile | 7 +++---- games/atitd/Makefile | 2 +- games/atomix/Makefile | 3 +-- games/atr3d/Makefile | 6 +++--- games/barrage/Makefile | 5 ++--- games/battalion/files/patch-aa | 4 ++-- games/battleball/Makefile | 6 +++--- games/bfm/files/patch-Rules.make.in | 2 +- games/blobandconquer/files/patch-makefile | 4 ++-- games/bloboats/files/patch-Makefile | 4 ++-- games/blockade/files/patch-aa | 4 ++-- games/blokish/Makefile | 6 +++--- games/bloodfrontier/files/patch-src_Makefile | 4 ++-- games/bogged/Makefile | 3 +-- games/bomb/Makefile | 4 ++-- games/bomberclone/Makefile | 5 ++--- games/bombermaze/Makefile | 6 ++---- games/boswars/Makefile | 6 +++--- games/bubbros/Makefile | 2 +- games/bumprace/Makefile | 4 ++-- games/burgerspace/Makefile | 4 ++-- games/bygfoot/Makefile | 5 ++--- games/cake/files/patch-Makefile | 4 ++-- games/ceferino/Makefile | 4 ++-- games/cgoban2/Makefile | 3 +-- games/chanta/Makefile | 4 ++-- games/chromium-bsu/Makefile | 10 +++++----- games/chromium/Makefile | 10 +++++----- games/clanbomber/Makefile | 6 ++---- games/cleanq3/files/patch-code-unix-Makefile | 4 ++-- games/columns/Makefile | 3 +-- games/connectfive/Makefile | 9 ++++----- games/construo/Makefile | 6 +++--- games/crack-attack/Makefile | 8 +++----- games/criticalmass/Makefile | 9 ++++----- games/crossfire-client/Makefile | 6 +++--- games/cube/files/patch-Makefile | 4 ++-- games/cultivation/files/patch-Makefile.GnuLinux | 4 ++-- games/d2x/Makefile | 4 ++-- games/daimonin-client/Makefile | 6 ++---- games/daimonin/Makefile | 6 ++---- games/dangerdeep/Makefile | 2 ++ games/deng/Makefile | 4 ++-- games/diameter/Makefile | 6 +++--- games/djgame2/Makefile | 4 ++-- games/doom/Makefile | 9 ++++----- games/doom/files/patch-ab | 4 ++-- games/doomlegacy/Makefile | 2 +- games/dopewars/Makefile | 3 +-- games/dsnake/Makefile | 2 +- games/duel/Makefile | 8 ++++---- games/eboard/Makefile | 4 ++-- games/eduke32/Makefile | 4 ++-- games/egl/files/patch-makefile | 8 ++++---- games/el/files/patch-Makefile.bsdg | 4 ++-- games/ember/Makefile | 6 +++--- games/enigma/Makefile | 2 +- games/ensemblist/files/patch-Makefile | 4 ++-- games/etuxracer/Makefile | 9 ++++----- games/evq3/Makefile | 6 +++--- games/excido/files/patch-Makefile | 4 ++-- games/exult/Makefile | 8 +++----- games/ezquake/files/patch-Makefile | 2 +- games/falconseye/Makefile | 5 ++--- games/falconseye/files/patch-sys_unix_Makefile_src | 4 ++-- games/falconseye/files/x-config | 4 ++-- games/fgfs-base/Makefile | 3 +-- games/fgsd/Makefile | 18 ++++++++--------- games/fkiss/Makefile | 4 ++-- games/flightgear-aircraft/Makefile | 5 ++--- games/flightgear-aircrafts/Makefile | 5 ++--- games/flightgear-atlas/Makefile | 21 ++++++++++---------- games/flightgear-atlas/pkg-plist | 1 - games/flightgear-data/Makefile | 3 +-- games/flightgear-mb339-pan/Makefile | 4 ++-- games/flightgear/Makefile | 18 ++++++++--------- games/foobillard/Makefile | 6 +++--- games/freeciv/Makefile | 2 +- games/freesci/Makefile | 3 +-- games/fuhquake/Makefile | 6 +++--- games/fuhquake/files/Makefile | 8 ++++---- games/fuhquake/files/patch-mp3_player.c | 2 +- games/galaxymage/Makefile | 2 +- games/galaxymage/files/patch-src_Translate.py | 2 +- games/gcompris/Makefile | 7 +++---- games/geki2/Makefile | 7 ++----- games/geki3/Makefile | 7 ++----- games/gemdropx/Makefile | 3 +-- games/ggz-sdl-games/Makefile | 6 +++--- games/gillo/Makefile | 11 +++++------ games/gillo/files/patch-Jamrules | 2 +- games/gillo/files/patch-src_Jamfile | 2 +- games/gl-117/Makefile | 12 +++-------- games/glasteroids/Makefile | 7 ++----- games/glasteroids/files/Makefile.FreeBSD | 4 ++-- games/glaxium/Makefile | 2 +- games/glbsp/files/patch-GUI_unx.mak | 4 ++-- games/glife/Makefile | 6 ++---- games/glmaze/files/patch-Makefile | 4 ++-- games/glob2/Makefile | 6 +++--- games/glpuzzle/Makefile | 6 +++--- games/gltron/Makefile | 9 ++++----- games/gnmm/Makefile | 6 ++---- games/gno3dtet/Makefile | 3 +-- games/gnome-games-extra-data/Makefile | 2 +- games/gnome-games/Makefile | 2 +- games/gnomeattacks/Makefile | 6 ++---- games/gnomebreakout/Makefile | 3 +-- games/gnomechess/Makefile | 3 +-- games/gnomermind/Makefile | 6 ++---- games/gnomesudoku/Makefile | 12 +++++------ games/gnurobots/Makefile | 5 ++--- games/golddig/files/patch-ad | 4 ++-- games/goonies/files/patch-build-linux-Makefile | 4 ++-- games/gracer/Makefile | 15 +++++++------- games/grande/Makefile | 7 +++---- games/gretools/Makefile | 3 +-- games/gtetrinet/Makefile | 3 +-- games/gtkabale/Makefile | 3 +-- games/gtkatlantic/Makefile | 3 +-- games/gtkpool/Makefile | 3 +-- games/gtkradiant/files/patch-SConstruct | 6 +++--- games/gtktetcolor/Makefile | 3 +-- games/gturing/Makefile | 3 +-- games/gweled/Makefile | 3 +-- games/heretic/files/patch-aa | 4 ++-- games/heroes/Makefile | 3 +-- games/hex/Makefile | 3 +-- games/hexxagon/Makefile | 3 +-- games/hohlin/Makefile | 2 +- games/icbm3d/Makefile | 4 ++-- games/icbm3d/files/patch-aa | 6 +++--- games/imaze/Makefile | 5 ++--- games/ioquake3/files/patch-Makefile | 4 ++-- games/iourbanterror/files/patch-Makefile | 2 +- games/jfduke3d/Makefile | 5 ++--- games/jigzo/Makefile | 6 +++--- games/joequake/files/patch-Makefile.linux | 12 +++++------ games/kiki/Makefile | 12 +++++------ games/kmquake2/files/patch-Makefile | 4 ++-- games/libdungeonmaker/Makefile | 5 ++--- games/libfov/Makefile | 5 ++--- games/libmaitretarot/Makefile | 2 +- games/libmt_client/Makefile | 2 +- games/libshhcards/Makefile | 5 ++--- games/libshhcards/files/Makefile.lib | 2 +- games/lincity-ng/Makefile | 3 +-- games/linux-goodway/Makefile | 10 +++++----- games/linux-ssamtse/Makefile | 4 ++-- games/linux-steam/Makefile | 2 +- games/linux-ut2003-demo/Makefile | 2 +- games/linux-ut2004-demo/Makefile | 2 +- games/linux-virtual-jay-peak/Makefile | 2 +- games/linux-x-plane-net-installer/Makefile | 2 +- games/linux-x-plane/Makefile | 2 +- games/macopix/Makefile | 2 +- games/maelstrom/Makefile | 5 ++--- games/maelstrom/files/Makeflags | 4 ++-- games/mangband/files/patch-ab | 4 ++-- games/marsnomercy/Makefile | 2 +- games/marsnomercy/files/patch-SConstruct | 6 +++--- games/merlin/Makefile | 3 +-- games/mindfocus/Makefile | 2 +- games/mindguard/Makefile | 10 +++++----- games/mindguard/files/patch-aa | 2 +- games/mindguard/files/patch-ab | 2 +- games/mirrormagic/Makefile | 2 +- games/monster-masher/Makefile | 3 +-- games/nehquake/files/patch-Makefile | 4 ++-- games/nethack32/files/patch-ab | 4 ++-- games/nethack33/files/patch-ad | 4 ++-- games/nethack34/files/patch-ad | 4 ++-- games/netrek-BRMH-bin/Makefile | 3 +-- games/netrek-COW3-bin/Makefile | 3 +-- games/newvox/Makefile | 3 +-- games/nexuiz/Makefile | 9 +++++---- games/nighthawk/Makefile | 4 ++-- .../files/noegnud-littlehack.patch | 4 ++-- .../files/noegnud-nethack-deet.patch | 4 ++-- games/noegnud-nethack/files/noegnud-nethack.patch | 4 ++-- games/noegnud-slashem/files/noegnud-slashem.patch | 8 ++++---- games/oolite/files/patch-makefile | 6 +++--- games/oonsoo/Makefile | 8 ++++---- games/openarena/files/patch-Makefile | 4 ++-- games/openglad/Makefile | 5 ++--- games/palomino/Makefile | 6 ++---- games/pets/Makefile | 3 +-- games/pinball/Makefile | 11 +++++------ games/planeshift/Makefile | 4 ++-- games/pmars/Makefile | 11 +++++------ games/pongix/Makefile | 4 ++-- games/pouetchess/Makefile | 6 +++--- games/ppracer/Makefile | 4 ++-- games/q2p/files/patch-Makefile | 2 +- games/q2pro/files/patch-build__pre.mk | 4 ++-- games/q3base/Makefile | 2 +- games/q3cellshading/files/patch-code-unix-Makefile | 4 ++-- games/qgo/Makefile | 3 ++- games/qix/Makefile | 10 ++++++---- games/quake2forge/Makefile | 2 +- games/quake2lnx/Makefile | 4 ++-- games/quake2lnx/files/patch-Makefile | 10 +++++----- games/quake3/files/patch-code-unix-Makefile | 4 ++-- games/quakeforge/Makefile | 2 +- games/quetoo/Makefile | 4 ++-- games/race/Makefile | 6 +++--- games/redeclipse/files/patch-src_Makefile | 4 ++-- games/ri-li/Makefile | 2 +- games/robocode/Makefile | 5 ++--- games/rocksndiamonds/Makefile | 7 +++---- games/rtb/Makefile | 7 ++----- games/rubix/Makefile | 6 +++--- games/sarien/Makefile | 7 +++---- games/sauerbraten/files/patch-src_Makefile | 4 ++-- games/scare/Makefile | 4 ++-- games/scare/files/xglk.patch | 4 ++-- games/scid/files/patch-Makefile | 4 ++-- games/scorched3d/Makefile | 2 +- games/scourge/Makefile | 6 +++--- games/sdb/Makefile | 4 ++-- games/sdlquake2/files/patch-Makefile | 6 +++--- games/shaaft/Makefile | 5 ++--- games/shootingstar/Makefile | 6 +++--- games/sol/Makefile | 4 ++-- games/sol/files/patch-aa | 4 ++-- games/solarconquest/files/patch-makefile | 4 ++-- games/spacearyarya/Makefile | 7 +++---- games/spellcast/Makefile | 4 ++-- games/spellcast/files/patch-aa | 4 ++-- games/speyes/Makefile | 2 +- games/ssamtse/Makefile | 4 ++-- games/ssc/Makefile | 9 ++++----- games/stratagus/Makefile | 5 ++--- games/stvef-paks/Makefile | 4 ++-- games/stvef-server/Makefile | 2 +- games/sxsame/Makefile | 2 +- games/tank/Makefile | 2 +- games/tank/files/patch-Makefile.Linux.Mesa | 4 ++-- .../tenebrae/files/patch-linux__Makefile.i386linux | 4 ++-- games/thevalley/Makefile | 2 +- games/tomatoes/Makefile | 6 +++--- games/tome/Makefile | 8 ++++---- games/toycars/Makefile | 4 ++-- games/trackballs/Makefile | 9 ++++----- games/tremor/Makefile | 7 +++---- games/tremor/files/patch-Makefile | 21 ++++++++++++-------- games/tremulous/Makefile | 6 +++--- games/tremulous/files/patch-Makefile | 4 ++-- games/tux-aqfh/Makefile | 14 ++++++------- games/tuxkart/Makefile | 13 ++++++------ games/tuxracer/Makefile | 9 ++++----- games/tvp/Makefile | 8 +++----- games/uqm/Makefile | 2 +- .../files/patch-build-unix-config_proginfo_host | 4 ++-- games/vamos/Makefile | 3 +-- games/vectoroids/Makefile | 3 +-- games/warsow/files/patch-Makefile | 10 ++++++---- games/wmeyes/Makefile | 2 +- games/wmfortune/Makefile | 5 ++--- games/wmfortune/files/patch-Makefile | 4 ++-- games/wmminichess/Makefile | 5 ++--- games/wmpuzzle/Makefile | 9 ++++----- games/wmqstat/Makefile | 2 +- games/wmqstat/files/patch-Makefile | 23 +++++++++++----------- games/wmshuffle/Makefile | 5 ++--- games/wmshuffle/files/patch-aa | 4 ++-- games/wmtictactoe/Makefile | 5 ++--- games/wmtictactoe/files/patch-aa | 4 ++-- games/wmtimebomb/files/patch-aa | 4 ++-- games/wolf3d/files/patch-Makefile | 4 ++-- games/worldofpadman/files/patch-Makefile | 4 ++-- games/xarchon/Makefile | 5 ++--- games/xataxx/files/patch-aa | 2 +- games/xbl/Makefile | 6 +++--- games/xblood/Makefile | 5 ++--- games/xboard/Makefile | 3 --- games/xboing/files/patch-ac | 4 ++-- games/xbomb/Makefile | 2 +- games/xbomb/files/patch-hiscore.c | 6 +++--- games/xbomber/Makefile | 4 ++-- games/xbomber/files/patch-aa | 4 ++-- games/xbubble/Makefile | 4 ++-- games/xcheckers/Makefile | 2 +- .../files/patch-xcheckers.src_xcheckers.man | 8 ++++---- games/xcogitate/Makefile | 7 +++---- games/xdeblock/Makefile | 2 +- games/xdemineur/Makefile | 2 +- games/xdesktopwaves/Makefile | 8 +++----- games/xdesktopwaves/files/patch-makefile | 8 ++++---- games/xevil/Makefile | 5 ++--- games/xevil/files/patch-aa | 2 +- games/xeyesplus/Makefile | 9 ++++----- games/xfireworks/Makefile | 5 ++--- games/xfireworks/files/patch-aa | 19 ++++++++++-------- games/xfrisk/Makefile | 4 +--- games/xgalaga/Makefile | 11 ++++------- games/xglk/files/patch-Makefile | 4 ++-- games/xgospel/Makefile | 5 ++--- games/xinvaders/Makefile | 4 ++-- games/xinvaders3d/Makefile | 7 +++---- games/xinvaders3d/files/patch-aa | 2 +- games/xjewel/Makefile | 7 ++++--- games/xjig/Makefile | 4 ++-- games/xjig/files/patch-aa | 4 ++-- games/xjump/Makefile | 7 +++---- games/xjumpx/Makefile | 5 ++--- games/xlines/Makefile | 3 +-- games/xlines/files/patch-aa | 8 ++++---- games/xmastermind/Makefile | 4 ++-- games/xmastermind/files/patch-aa | 8 ++++---- games/xmemory/Makefile | 6 +++--- games/xminehunter/files/patch-aa | 10 +++++----- games/xmines/Makefile | 4 ++-- games/xmines/files/patch-aa | 4 ++-- games/xmoto/Makefile | 6 +++--- games/xmris/Makefile | 2 +- games/xoids/Makefile | 2 +- games/xoj/Makefile | 2 +- games/xonix/Makefile | 2 +- games/xonotic/Makefile | 9 +++++---- games/xosmulti/Makefile | 5 ++--- games/xosmulti/files/patch-aa | 4 ++-- games/xpat2/Makefile | 2 +- games/xpilot-ng-server/Makefile | 11 ++++------- games/xpuzzletama/Makefile | 2 +- games/xquarto/Makefile | 2 +- games/xracer/Makefile | 4 ++-- games/xrally/Makefile | 11 +++++------ games/xroach/Makefile | 4 ++-- games/xroach/files/patch-aa | 10 +++++----- games/xroads/files/patch-aa | 6 +++--- games/xrot/Makefile | 2 +- games/xsc/Makefile | 8 ++++---- games/xscorch/Makefile | 5 ++--- games/xscrabble/Makefile | 2 +- games/xshisen/Makefile | 5 ++--- games/xshogi/Makefile | 4 ++-- games/xsokoban/Makefile | 2 +- games/xteddy/Makefile | 4 ++-- games/xtic/Makefile | 4 ++-- games/xtic/files/patch-aa | 2 +- games/xtrojka/Makefile | 4 ++-- games/xtrojka/files/patch-aa | 4 ++-- games/xtron/files/patch-aa | 4 ++-- games/xtruco/Makefile | 4 ++-- games/xtruco/files/patch-aa | 4 ++-- games/xtux/Makefile | 10 ++++------ games/xvmahjongg/Makefile | 3 +-- games/xvmahjongg/files/patch-ab | 4 ++-- games/xvmines/files/patch-aa | 2 +- games/xworm/Makefile | 8 ++++---- games/xzip/files/patch-aa | 4 ++-- games/yadex/Makefile | 4 ++-- games/yadex/files/patch-GNUmakefile | 4 ++-- 373 files changed, 861 insertions(+), 1002 deletions(-) (limited to 'games') diff --git a/games/3dc/Makefile b/games/3dc/Makefile index 0a06ec4..37b5de4 100644 --- a/games/3dc/Makefile +++ b/games/3dc/Makefile @@ -16,7 +16,7 @@ DISTNAME= 3Dc-${PORTVERSION} MAINTAINER= adam-ports@blacktabby.org COMMENT= 3-Dimensional Chess for X Window System -LIB_DEPENDS= Xaw3d.${XAWVER}:${PORTSDIR}/x11-toolkits/Xaw3d +LIB_DEPENDS= Xaw3d.${XAWVER}:${PORTSDIR}/x11-toolkits/Xaw3d USE_PERL5_BUILD=yes USE_XORG= xpm diff --git a/games/3dc/files/patch-aa b/games/3dc/files/patch-aa index 5ab8f9a..791668f 100644 --- a/games/3dc/files/patch-aa +++ b/games/3dc/files/patch-aa @@ -21,7 +21,7 @@ +COPTIONS=-DVERSION=\"${VERSION}\" -CFLAGS=${COPTIONS} ${DEBUG} ${CONFIGS} ${PREFS} -I../include -+CFLAGS+=${COPTIONS} ${DEBUG} ${CONFIGS} ${PREFS} -I../include -I${X11BASE}/include ++CFLAGS+=${COPTIONS} ${DEBUG} ${CONFIGS} ${PREFS} -I../include -I${LOCALBASE}/include LDOPTIONS= # LDLIBS should include the name of your X library path if not /usr/lib; @@ -29,7 +29,7 @@ # appear much but it looks much better when it does. # Linux -LDLIBS=-L/usr/X11R6/lib -lXpm -lXaw3d -lXmu -lXext -lXt -lX11 -+LDLIBS=-L${X11BASE}/lib -lXpm -lXaw3d -lXmu -lXext -lXt -lX11 -Wl,-rpath,${X11BASE}/lib ++LDLIBS=-L${LOCALBASE}/lib -lXpm -lXaw3d -lXmu -lXext -lXt -lX11 -Wl,-rpath,${LOCALBASE}/lib # Sun #LDLIBS=-lXpm -lXaw -lXmu -lXext -lXt -lX11 -lm diff --git a/games/3dpong/Makefile b/games/3dpong/Makefile index e3e77b3..81d82aa 100644 --- a/games/3dpong/Makefile +++ b/games/3dpong/Makefile @@ -16,8 +16,8 @@ COMMENT= X Window 3D Pong game for 1 or 2 players with a ball and paddles USE_XORG= x11 USE_GMAKE= yes -MAKE_ARGS= CC="${CC}" CFLAGS="${CFLAGS} -I${X11BASE}/include" \ - XLIB="-L${X11BASE}/lib -lX11" +MAKE_ARGS= CC="${CC}" CFLAGS="${CFLAGS} -I${LOCALBASE}/include" \ + XLIB="-L${LOCALBASE}/lib -lX11" post-patch: @${REINPLACE_CMD} -e \ diff --git a/games/BillardGL/Makefile b/games/BillardGL/Makefile index 40f4c53..08e6092 100644 --- a/games/BillardGL/Makefile +++ b/games/BillardGL/Makefile @@ -7,7 +7,7 @@ PORTNAME= BillardGL PORTVERSION= 1.75 -PORTREVISION= 4 +PORTREVISION= 5 CATEGORIES= games MASTER_SITES= SF MASTER_SITE_SUBDIR= billardgl @@ -15,16 +15,14 @@ MASTER_SITE_SUBDIR= billardgl MAINTAINER= ports@FreeBSD.org COMMENT= An OpenGL billiard simulator -LIB_DEPENDS= glut.4:${PORTSDIR}/graphics/libglut - WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}/src USE_GMAKE= yes -USE_GL= gl +USE_GL= gl glut post-patch: @${REINPLACE_CMD} -e 's|%%PORTNAME%%|${PORTNAME}|; \ - s|%%X11BASE%%|${X11BASE}|' ${WRKSRC}/Namen.h + s|%%LOCALBASE%%|${LOCALBASE}|' ${WRKSRC}/Namen.h do-install: ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin diff --git a/games/BillardGL/files/patch-Makefile b/games/BillardGL/files/patch-Makefile index fadeee5..0f85127 100644 --- a/games/BillardGL/files/patch-Makefile +++ b/games/BillardGL/files/patch-Makefile @@ -14,11 +14,11 @@ +CXX ?= g++ +CFLAGS += -pipe -Wall -W -DNO_DEBUG -g +CXXFLAGS+= -pipe -Wall -W -DNO_DEBUG -g -+INCPATH = -I${X11BASE}/include ++INCPATH = -I${LOCALBASE}/include +LINK = ${CXX} LFLAGS = -LIBS = -L/usr/X11R6/lib -lGL -lGLU -lglut -lXmu -lXext -lX11 -lm -lXi -+LIBS = -L${X11BASE}/lib -lGL -lGLU -lglut -lXmu -lXext -lX11 -lm -lXi ++LIBS = -L${LOCALBASE}/lib -lGL -lGLU -lglut -lXmu -lXext -lX11 -lm -lXi ## -lqgl -lGLU diff --git a/games/BillardGL/files/patch-Namen.h b/games/BillardGL/files/patch-Namen.h index b42a532..425f7f9 100644 --- a/games/BillardGL/files/patch-Namen.h +++ b/games/BillardGL/files/patch-Namen.h @@ -5,7 +5,7 @@ #ifndef _WIN32 -#define PFAD "/usr/share/BillardGL/" -+#define PFAD "%%X11BASE%%/share/%%PORTNAME%%/" ++#define PFAD "%%LOCALBASE%%/share/%%PORTNAME%%/" #endif #ifndef PFAD diff --git a/games/CaribbeanStud/files/patch-Xmakefile b/games/CaribbeanStud/files/patch-Xmakefile index 617ce93..cb17200 100644 --- a/games/CaribbeanStud/files/patch-Xmakefile +++ b/games/CaribbeanStud/files/patch-Xmakefile @@ -6,11 +6,11 @@ +## FreeBSD +## -+XINCLUDES=-I$(X11BASE)/include ++XINCLUDES=-I$(LOCALBASE)/include +UILFLAGS= +CFLAGS+= -fhandle-exceptions -fno-for-scope +CXXFLAGS+= $(XINCLUDES) -+LDFLAGS+=-L$(X11BASE)/lib ++LDFLAGS+=-L$(LOCALBASE)/lib +LDLIBS= +MOTIFLIBS=-lXm -lXmu -lXt -lX11 ${MOTIFLIB} + diff --git a/games/KnightCap/files/patch-aa b/games/KnightCap/files/patch-aa index 5c8749b..3a4bc2c 100644 --- a/games/KnightCap/files/patch-aa +++ b/games/KnightCap/files/patch-aa @@ -23,9 +23,9 @@ -X11 = /usr/X11R6 -GLUT_LIBS = -L$(GLUT)/lib/glut -lglut -MESA_LIBS = -L$(MESA)/lib -lMesaGLU -lMesaGL -lm -+MESA = ${X11BASE} -+GLUT = ${X11BASE} -+X11 = ${X11BASE} ++MESA = ${LOCALBASE} ++GLUT = ${LOCALBASE} ++X11 = ${LOCALBASE} +GLUT_LIBS = -L$(GLUT)/lib -lglut +MESA_LIBS = -L$(MESA)/lib -lGLU -lGL -lm XLIBS = -L$(X11)/lib -lXmu -lXt -lXext -lX11 -lXi diff --git a/games/abuse_sdl/Makefile b/games/abuse_sdl/Makefile index 821dd80..437ecc3 100644 --- a/games/abuse_sdl/Makefile +++ b/games/abuse_sdl/Makefile @@ -15,12 +15,12 @@ MAINTAINER= ports@FreeBSD.org COMMENT= An SDL port of the Abuse game engine USE_BZIP2= yes -USE_GL= yes +USE_GL= gl USE_SDL= sdl USE_GMAKE= yes GNU_CONFIGURE= yes -CONFIGURE_ENV= CPPFLAGS="-I${X11BASE}/include" \ - LDFLAGS="-L${X11BASE}/lib" +CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \ + LDFLAGS="-L${LOCALBASE}/lib" CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL} MAN6= abuse-sdl.6 diff --git a/games/actx/Makefile b/games/actx/Makefile index e188118..5ac45b1 100644 --- a/games/actx/Makefile +++ b/games/actx/Makefile @@ -17,7 +17,7 @@ COMMENT= Window sitter for X11 NO_CDROM= 'contains commercial character data' USE_IMAKE= yes -USE_XPM= yes +USE_XORG= xpm MAN1= actx.1 MANLANG= "" ja diff --git a/games/adom/Makefile b/games/adom/Makefile index 136ae45..3ffc9f1 100644 --- a/games/adom/Makefile +++ b/games/adom/Makefile @@ -19,7 +19,7 @@ NO_CDROM= Copy of CD must be sent to author ONLY_FOR_ARCHS= i386 USE_LINUX= yes -USE_X_PREFIX= yes +USE_XLIB= yes WRKSRC= ${WRKDIR}/adom NO_BUILD= yes diff --git a/games/affenspiel/Makefile b/games/affenspiel/Makefile index 2bb1a46..4c08c565 100644 --- a/games/affenspiel/Makefile +++ b/games/affenspiel/Makefile @@ -18,8 +18,8 @@ WRKSRC= ${WRKDIR}/${PORTNAME} USE_XORG= x11 xt -MAKE_ARGS= CC="${CC}" LIBS="-L${X11BASE}/lib -lX11" \ - DEBUG="${CFLAGS} -I${X11BASE}/include" \ +MAKE_ARGS= CC="${CC}" LIBS="-L${LOCALBASE}/lib -lX11" \ + DEBUG="${CFLAGS} -I${LOCALBASE}/include" \ FILE_CONFIG=-DSAVED_GAME_NAME='\"affenspiel.saved\"' PORTDOCS= COPYRIGHT README diff --git a/games/airrox/files/patch-Makefile b/games/airrox/files/patch-Makefile index f0ffd88..cd5e690 100644 --- a/games/airrox/files/patch-Makefile +++ b/games/airrox/files/patch-Makefile @@ -9,7 +9,7 @@ + # bibliotecas para Linux -LIBSLINUX = -L/usr/X11R6/lib -lGL -lGLU -lglut -L/usr/lib -lSDL_mixer -lSDL -lpthread `sdl-config --cflags --libs` -lSDL_net -+LIBSLINUX = -L$(X11BASE)/lib -lGL -lGLU -lglut `sdl-config --libs` -lSDL_mixer -lSDL_net ++LIBSLINUX = -L$(LOCALBASE)/lib -lGL -lGLU -lglut `sdl-config --libs` -lSDL_mixer -lSDL_net # bibliotecas para Windows LIBSWIN = -lopengl32 -lglu32 -lglut32 -lmingw32 -lSDLmain -lSDL -lSDL_mixer -mwindows -L$(DEVCPP_PATH)\lib -lSDL_net @@ -22,7 +22,7 @@ # flags (otimizacao e nao exibir warnings) -FLAGS = -O2 -DREENTRANT -DHAVE_OPENGL #-g -+FLAGS = $(CFLAGS) -DREENTRANT -DHAVE_OPENGL -I$(X11BASE)/include `sdl-config --cflags` ++FLAGS = $(CFLAGS) -DREENTRANT -DHAVE_OPENGL -I$(LOCALBASE)/include `sdl-config --cflags` + +ifdef OPTIMIZED_CFLAGS +FLAGS += -O2 diff --git a/games/alephone/Makefile b/games/alephone/Makefile index c189a3d..b25add8 100644 --- a/games/alephone/Makefile +++ b/games/alephone/Makefile @@ -9,8 +9,7 @@ PORTNAME= alephone PORTVERSION= 20070525 PORTREVISION= 2 CATEGORIES= games -MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} -MASTER_SITE_SUBDIR= marathon +MASTER_SITES= SF/marathon DISTNAME= AlephOne-${PORTVERSION} MAINTAINER= ray@cultofray.net @@ -26,8 +25,8 @@ USE_LUA= 5.0 USE_SDL= image net sdl sound GNU_CONFIGURE= yes CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}" -CPPFLAGS= -I${LOCALBASE}/include -I${X11BASE}/include -I${LUA_INCDIR} -LDFLAGS= -L${LOCALBASE}/lib -L${X11BASE}/lib -L${LUA_LIBDIR} +CPPFLAGS= -I${LOCALBASE}/include -I${LUA_INCDIR} +LDFLAGS= -L${LOCALBASE}/lib -L${LUA_LIBDIR} DATADIR= ${PREFIX}/share/AlephOne diff --git a/games/amphetamine/files/patch-aa b/games/amphetamine/files/patch-aa index a8279ff..82c3d68 100644 --- a/games/amphetamine/files/patch-aa +++ b/games/amphetamine/files/patch-aa @@ -25,7 +25,7 @@ $FreeBSD$ # Directories to search for header files -SEARCHDIRS := -I${MYCODEDIR} ${SDL_HEADERS} -+SEARCHDIRS := -I${MYCODEDIR} ${SDL_HEADERS} -I ${X11BASE}/include ++SEARCHDIRS := -I${MYCODEDIR} ${SDL_HEADERS} -I ${LOCALBASE}/include # makemake variables @@ -56,7 +56,7 @@ $FreeBSD$ endif -LDFLAGS = -L/usr/lib -L/usr/local/lib -L/usr/X11R6/lib -+LDFLAGS = -L$(X11BASE)/lib ++LDFLAGS = -L$(LOCALBASE)/lib .PHONY : default default : amph @@ -78,7 +78,7 @@ $FreeBSD$ ./src/Surface.o: ./src/AmpHead.hpp ./src/Clut.hpp ./src/ConstVal.hpp ./src/Graphfil.hpp ./src/Shape.hpp ./src/ShapeLd.hpp ./src/Surface.hpp ./src/System.hpp /usr/include/limits.h /usr/include/math.h /usr/include/stdio.h /usr/include/stdlib.h -./src/System.o: ./src/AmpHead.hpp ./src/Graphfil.hpp ./src/System.hpp /usr/include/X11/xpm.h /usr/include/fcntl.h /usr/include/limits.h /usr/include/math.h /usr/include/stdio.h /usr/include/stdlib.h /usr/include/string.h /usr/include/sys/stat.h /usr/include/sys/time.h /usr/include/sys/types.h /usr/include/unistd.h -+./src/System.o: ./src/AmpHead.hpp ./src/Graphfil.hpp ./src/System.hpp ${X11BASE}/include/X11/xpm.h /usr/include/fcntl.h /usr/include/limits.h /usr/include/math.h /usr/include/stdio.h /usr/include/stdlib.h /usr/include/string.h /usr/include/sys/stat.h /usr/include/sys/time.h /usr/include/sys/types.h /usr/include/unistd.h ++./src/System.o: ./src/AmpHead.hpp ./src/Graphfil.hpp ./src/System.hpp ${LOCALBASE}/include/X11/xpm.h /usr/include/fcntl.h /usr/include/limits.h /usr/include/math.h /usr/include/stdio.h /usr/include/stdlib.h /usr/include/string.h /usr/include/sys/stat.h /usr/include/sys/time.h /usr/include/sys/types.h /usr/include/unistd.h ./src/Thing.o: ./src/AmpHead.hpp ./src/Appl.hpp ./src/Bullet.hpp ./src/ConstVal.hpp ./src/Element.hpp ./src/File.hpp ./src/Graphfil.hpp ./src/Level.hpp ./src/ObjInfo.hpp ./src/Object.hpp ./src/Pltform.hpp ./src/Shape.hpp ./src/ShapeLd.hpp ./src/Surface.hpp ./src/System.hpp ./src/Thing.hpp /usr/include/limits.h /usr/include/math.h /usr/include/stdio.h /usr/include/stdlib.h diff --git a/games/annelid/Makefile b/games/annelid/Makefile index f6627cf..838e5db 100644 --- a/games/annelid/Makefile +++ b/games/annelid/Makefile @@ -23,7 +23,7 @@ RESTRICTED= No redistribution allowed USE_ZIP= yes USE_GMAKE= yes USE_SDL= sdl -USE_GL= yes +USE_GL= gl NO_WRKSUBDIR= yes OPTIONS= OPTIMIZED_CFLAGS "Enable compilation optimizations" on @@ -40,7 +40,7 @@ DATAFILES= annelid.dat apple.tga apple.wav backd.tga backn.tga font.dat \ post-patch: # Fix Makefile. @${REINPLACE_CMD} -e 's|%%CFLAGS%%|${CFLAGS}| ; \ - s|%%X11BASE%%|${X11BASE}| ; \ + s|%%LOCALBASE%%|${LOCALBASE}| ; \ s|sdl-config|${SDL_CONFIG}|' \ ${WRKSRC}/${MAKEFILE} diff --git a/games/annelid/files/patch-Makefile b/games/annelid/files/patch-Makefile index 1409572..6bb19c1 100644 --- a/games/annelid/files/patch-Makefile +++ b/games/annelid/files/patch-Makefile @@ -16,7 +16,7 @@ -CCC=g++ -CFLAGS=-I. `sdl-config --cflags` -c -Wall -ggdb -fomit-frame-pointer -O3 +CCC=$(CXX) -+CFLAGS=%%CFLAGS%% -I. -I%%X11BASE%%/include `sdl-config --cflags` -c -Wall $(OPT) ++CFLAGS=%%CFLAGS%% -I. -I%%LOCALBASE%%/include `sdl-config --cflags` -c -Wall $(OPT) +OPT = -fomit-frame-pointer -O3 -LD=g++ @@ -26,7 +26,7 @@ LIBS=-lopengl32 `sdl-config --libs` else -LIBS=-L/usr/X11R6/lib -lGL `sdl-config --libs` -+LIBS=-L%%X11BASE%%/lib -lGL `sdl-config --libs` ++LIBS=-L%%LOCALBASE%%/lib -lGL `sdl-config --libs` endif all: $(NAME) diff --git a/games/apoolGL/Makefile b/games/apoolGL/Makefile index aaf4148..0182f57 100644 --- a/games/apoolGL/Makefile +++ b/games/apoolGL/Makefile @@ -27,7 +27,7 @@ post-patch: do-build: ${CC} ${CFLAGS} -DDATADIR="\"${DATADIR}\"" \ `${SDL_CONFIG} --cflags --libs` \ - -I${X11BASE}/include -L${X11BASE}/lib -lGL -lGLU \ + -I${LOCALBASE}/include -L${LOCALBASE}/lib -lGL -lGLU \ -o ${WRKSRC}/apool ${WRKSRC}/*.c do-install: diff --git a/games/aqbubble/Makefile b/games/aqbubble/Makefile index d634b04..e945df0 100644 --- a/games/aqbubble/Makefile +++ b/games/aqbubble/Makefile @@ -17,8 +17,8 @@ COMMENT= Game similar to snow bros USE_SDL= sdl mixer image GNU_CONFIGURE= yes USE_GMAKE= yes -CPPFLAGS+= -I${LOCALBASE}/include -I${X11BASE}/include -LDFLAGS+= -L${LOCALBASE}/lib -L${X11BASE}/lib ${PTHREAD} +CPPFLAGS+= -I${LOCALBASE}/include +LDFLAGS+= -L${LOCALBASE}/lib ${PTHREAD} CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL} CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}" diff --git a/games/armagetron/Makefile b/games/armagetron/Makefile index eb4d0b9..1a44612 100644 --- a/games/armagetron/Makefile +++ b/games/armagetron/Makefile @@ -10,18 +10,17 @@ PORTNAME= armagetron PORTVERSION= 0.2.7.1 PORTREVISION= 3 CATEGORIES= games -MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} -MASTER_SITE_SUBDIR= armagetronad +MASTER_SITES= SF/armagetronad DISTNAME= armagetronad-${PORTVERSION} MAINTAINER= ports@FreeBSD.org COMMENT= A multiplayer networked Tron clone in 3D -USE_GL= yes +USE_GL= gl USE_SDL= sdl image USE_GMAKE= yes GNU_CONFIGURE= yes -CONFIGURE_ENV= CXXFLAGS="${CFLAGS} -I${X11BASE}/include" +CONFIGURE_ENV= CXXFLAGS="${CFLAGS} -I${LOCALBASE}/include" LIB_DEPENDS+= jpeg.9:${PORTSDIR}/graphics/jpeg \ png.5:${PORTSDIR}/graphics/png diff --git a/games/atitd/Makefile b/games/atitd/Makefile index 097acdf..1a181c5 100644 --- a/games/atitd/Makefile +++ b/games/atitd/Makefile @@ -17,7 +17,7 @@ EXTRACT_ONLY= MAINTAINER= ports@FreeBSD.org COMMENT= The Linux "A Tale in the Desert" (ATITD) client -RUN_DEPENDS= ${X11BASE}/bin/xhost:${X_CLIENTS_PORT} +RUN_DEPENDS= ${LOCALBASE}/bin/xhost:${PORTSDIR}/x11/xhost .include diff --git a/games/atomix/Makefile b/games/atomix/Makefile index bb0a2eb..023506a 100644 --- a/games/atomix/Makefile +++ b/games/atomix/Makefile @@ -8,7 +8,7 @@ PORTNAME= atomix PORTVERSION= 2.14.0 -PORTREVISION= 3 +PORTREVISION= 4 CATEGORIES= games gnome MASTER_SITES= ${MASTER_SITE_GNOME} MASTER_SITE_SUBDIR= sources/${PORTNAME}/${PORTVERSION:C/^([0-9]+\.[0-9]+).*/\1/} @@ -17,7 +17,6 @@ DIST_SUBDIR= gnome2 MAINTAINER= gnome@FreeBSD.org COMMENT= A yet another little mind game -USE_X_PREFIX= yes USE_GMAKE= yes USE_BZIP2= yes USE_GETTEXT= yes diff --git a/games/atr3d/Makefile b/games/atr3d/Makefile index 01af905..c164128 100644 --- a/games/atr3d/Makefile +++ b/games/atr3d/Makefile @@ -33,8 +33,8 @@ CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}" \ SDL_CONFIG="${SDL_CONFIG}" USE_AUTOTOOLS= automake:19 autoconf:261 -CPPFLAGS= -I${LOCALBASE}/include -I${X11BASE}/include ${PTHREAD_CFLAGS} -LDFLAGS= -L${LOCALBASE}/lib -L${X11BASE}/lib ${PTHREAD_LIBS} +CPPFLAGS= -I${LOCALBASE}/include -I${LOCALBASE}/include ${PTHREAD_CFLAGS} +LDFLAGS= -L${LOCALBASE}/lib -L${LOCALBASE}/lib ${PTHREAD_LIBS} .include @@ -53,7 +53,7 @@ pre-patch: @${REINPLACE_CMD} -e 's|-lopenal|& -lalut|' ${WRKSRC}/Makefile.am post-patch: - @${REINPLACE_CMD} -e 's|/usr/X11R6|${X11BASE}|g' ${WRKSRC}/Makefile.am + @${REINPLACE_CMD} -e 's|/usr/X11R6|${LOCALBASE}|g' ${WRKSRC}/Makefile.am pre-configure: cd ${WRKSRC}; ${SH} autogen.sh diff --git a/games/barrage/Makefile b/games/barrage/Makefile index 2b21d10..2a0c9d2 100644 --- a/games/barrage/Makefile +++ b/games/barrage/Makefile @@ -9,8 +9,7 @@ PORTNAME= barrage PORTVERSION= 1.0.2 PORTREVISION= 3 CATEGORIES= games -MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} -MASTER_SITE_SUBDIR= lgames +MASTER_SITES= SF/lgames DISTNAME= ${PORTNAME}-${PORTVERSION} MAINTAINER= az@FreeBSD.org @@ -21,7 +20,7 @@ USE_SDL= sdl mixer GNU_CONFIGURE= yes CONFIGURE_ARGS= --with-profile-path=/var/games -CONFIGURE_ENV= CPPFLAGS="-I${X11BASE}/include" +CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" post-patch: @${REINPLACE_CMD} -e 's|applications|applnk/Applications|g' \ diff --git a/games/battalion/files/patch-aa b/games/battalion/files/patch-aa index fe1e950..cda0266 100644 --- a/games/battalion/files/patch-aa +++ b/games/battalion/files/patch-aa @@ -37,7 +37,7 @@ # STEP 7: CHOOSE ANY OPTIMIZATIONS OR ADD ANY SPECIAL INCLUSIONS # ------------------------------------------------------------ -CFLAGS = -O -I/usr/local/X11/include -I/usr/demo/SOUND/ -I./. -+CFLAGS+= -I${X11BASE}/include -DPREFIX=\"${PREFIX}\" ++CFLAGS+= -I${LOCALBASE}/include -DPREFIX=\"${PREFIX}\" # STEP 8: ADD ANY SPECIAL LIBRARY PATHS @@ -46,7 +46,7 @@ OBJ = battalion.o audio.o net.o gprim.o graphics.o objects.o text.o update.o tk.o font.o -LIBS = -L./. -L/usr/X11R6/lib -lm -lX11 -lXext -+LIBS = -L./. -L${X11BASE}/lib -lm -lX11 -lXext -lcompat $(PTHREAD_LIBS) ++LIBS = -L./. -L${LOCALBASE}/lib -lm -lX11 -lXext -lcompat $(PTHREAD_LIBS) all: $(TARGET) diff --git a/games/battleball/Makefile b/games/battleball/Makefile index 5dcf4b1..03b55e4 100644 --- a/games/battleball/Makefile +++ b/games/battleball/Makefile @@ -19,10 +19,10 @@ USE_GL= glu gl WRKSRC= ${WRKDIR}/battleball-2.1-src CFLAGS+= -Wno-deprecated ${PTHREAD_CFLAGS} MAKE_ARGS= CXX="${CXX}" CXXFLAGS="${CXXFLAGS}" \ - XLIBS="-L${X11BASE}/lib -lX11" \ + XLIBS="-L${LOCALBASE}/lib -lX11" \ LIBS="-lm ${XLIBS} ${PTHREAD_LIBS}" \ - GLINCS="-I${X11BASE}/include" \ - GLLIBS="-lXi -lXmu -lXext -L${X11BASE}/lib -lGL" + GLINCS="-I${LOCALBASE}/include" \ + GLLIBS="-lXi -lXmu -lXext -L${LOCALBASE}/lib -lGL" PLIST_FILES= bin/battleball .if !defined(NOPORTDOCS) diff --git a/games/bfm/files/patch-Rules.make.in b/games/bfm/files/patch-Rules.make.in index 4b009d5..82c31f0 100644 --- a/games/bfm/files/patch-Rules.make.in +++ b/games/bfm/files/patch-Rules.make.in @@ -42,7 +42,7 @@ @LUA_CFLAGS@ $(CCL) $(VERSION) $(COMP_CFLAGS) @SOUND_CFLAGS@ @PLATFORM@ \ - $(DATADIR) \ - -I/usr/local/include $(ARTSC) -+ $(DATADIR) $(ARTSC) -I$(LOCALBASE)/include -I$(X11BASE)/include ++ $(DATADIR) $(ARTSC) -I$(LOCALBASE)/include CTAGSFLAGS=-i defptvS -a -f diff --git a/games/blobandconquer/files/patch-makefile b/games/blobandconquer/files/patch-makefile index 251ab44..430a09f 100644 --- a/games/blobandconquer/files/patch-makefile +++ b/games/blobandconquer/files/patch-makefile @@ -17,12 +17,12 @@ CXXFLAGS += -Wmissing-format-attribute -Wmissing-noreturn CXXFLAGS += -Wdisabled-optimization -CXXFLAGS += `sdl-config --cflags` -DVERSION=$(VERSION) -DRELEASE=$(RELEASE) -DUSEPAK=$(USEPAK) -DDEV=$(DEV) -+CXXFLAGS += -I$(X11BASE)/include `$(SDL_CONFIG) --cflags` -DVERSION=$(VERSION) -DRELEASE=$(RELEASE) -DUSEPAK=$(USEPAK) -DDEV=$(DEV) ++CXXFLAGS += -I$(LOCALBASE)/include `$(SDL_CONFIG) --cflags` -DVERSION=$(VERSION) -DRELEASE=$(RELEASE) -DUSEPAK=$(USEPAK) -DDEV=$(DEV) CXXFLAGS += -DPAKNAME=\"$(PAKNAME)\" -DPAKLOCATION=\"$(DATADIR)\" -DGAMEPLAYMANUAL=\"$(DOCDIR)/index.html\" -Wall -pedantic CXXFLAGS += -DLOCALEDIR=\"$(LOCALEDIR)\" -LIBPATH = -L/usr/X11/lib -L/usr/X11R6/lib -LIBS = -lGL -lGLU `sdl-config --libs` -lSDL_mixer -lSDL_image -lSDL_ttf -lz -+LIBPATH = -L$(X11BASE)/lib ++LIBPATH = -L$(LOCALBASE)/lib +LIBS = -lGL -lGLU `$(SDL_CONFIG) --libs` -lSDL_mixer -lSDL_image -lSDL_ttf -lz -lintl # Yes, it means compiling is a little slower... but it's less hassle diff --git a/games/bloboats/files/patch-Makefile b/games/bloboats/files/patch-Makefile index 22e6282..dd7ad61 100644 --- a/games/bloboats/files/patch-Makefile +++ b/games/bloboats/files/patch-Makefile @@ -49,7 +49,7 @@ ### Libs LIBS_DEFAULT = `$(SDLCONFIG) --libs` -lSDL_image -lSDL_mixer -lSDL_net -lGL -lGLU -LIBS_FREEBSD = `$(SDLCONFIG) --libs` -lSDL_image -lSDL_mixer -lSDL_net -L/usr/X11R6/lib -lGL -lGLU -+LIBS_FREEBSD = `$(SDLCONFIG) --libs` -lSDL_image -lSDL_mixer -lSDL_net -L$(X11BASE)/lib -lGL -lGLU ++LIBS_FREEBSD = `$(SDLCONFIG) --libs` -lSDL_image -lSDL_mixer -lSDL_net -L$(LOCALBASE)/lib -lGL -lGLU LIBS_NETBSD = `$(SDLCONFIG) --libs` -lSDL_image -lSDL_mixer -lSDL_net -lGL -lGLU -L/usr/pkg/lib LIBS_MACOSX = `$(SDLCONFIG) --libs` -lSDL_image -lSDL_mixer -lSDL_net -framework OpenGL LIBS_CROSS = `$(SDLCONFIG) --libs` -lSDL_image -lSDL_mixer -lSDL_net -lopengl32 -lglu32 @@ -67,7 +67,7 @@ BINARY_ = $(BINARY_$(TARGET)_) CXXFLAGS_DEFAULT_ = -g `$(SDLCONFIG) --cflags` -o bin/$(BINARY_) -O2 -CXXFLAGS_FREEBSD_ = -g `$(SDLCONFIG) --cflags` -I/usr/X11R6/include -o bin/$(BINARY_) -O2 -+CXXFLAGS_FREEBSD_ = `$(SDLCONFIG) --cflags` -I$(X11BASE)/include -o bin/$(BINARY_) -O2 ++CXXFLAGS_FREEBSD_ = `$(SDLCONFIG) --cflags` -I$(LOCALBASE)/include -o bin/$(BINARY_) -O2 CXXFLAGS_NETBSD = -g `$(SDLCONFIG) --cflags` -O2 -I/usr/pkg/include CXXFLAGS_MACOSX_ = -g `$(SDLCONFIG) --cflags` -o bin/$(BINARY_) -O2 CXXFLAGS_CROSS_ = -g `$(SDLCONFIG) --cflags` -o bin/$(BINARY_) -O2 diff --git a/games/blockade/files/patch-aa b/games/blockade/files/patch-aa index 5493fbd..7c2444b 100644 --- a/games/blockade/files/patch-aa +++ b/games/blockade/files/patch-aa @@ -15,8 +15,8 @@ # Linux -CFLAGS = -DSYSV -I/usr/include/X11 -Wall -LDFLAGS = -L/usr/X11R6/lib -lX11 -+CFLAGS += -I$(X11BASE)/include -+LDFLAGS = -L$(X11BASE)/lib -lX11 ++CFLAGS += -I$(LOCALBASE)/include ++LDFLAGS = -L$(LOCALBASE)/lib -lX11 SOUND = blockade-snd.o SOUNDH = blockade-snd.h diff --git a/games/blokish/Makefile b/games/blokish/Makefile index 6cc004d..b8080b8 100644 --- a/games/blokish/Makefile +++ b/games/blokish/Makefile @@ -18,11 +18,11 @@ COMMENT= Clone of the strategy board game 'Blokus' GNU_CONFIGURE= yes USE_GMAKE= yes -USE_GL= yes +USE_GL= gl USE_WX= 2.6 -CONFIGURE_ENV= LDFLAGS="-L${LOCALBASE}/lib -L${X11BASE}/lib" \ - CPPFLAGS="-I${LOCALBASE}/include -I${X11BASE}/include" +CONFIGURE_ENV= LDFLAGS="-L${LOCALBASE}/lib" \ + CPPFLAGS="-I${LOCALBASE}/include" MAKEFILE= makefile diff --git a/games/bloodfrontier/files/patch-src_Makefile b/games/bloodfrontier/files/patch-src_Makefile index d7c8164..bbef901 100644 --- a/games/bloodfrontier/files/patch-src_Makefile +++ b/games/bloodfrontier/files/patch-src_Makefile @@ -4,14 +4,14 @@ -CXXOPTFLAGS= -O3 -fomit-frame-pointer -INCLUDES= -Ishared -Iengine -Ifpsgame -Irpggame -Ienet/include -I/usr/X11R6/include `sdl-config --cflags` -CXXFLAGS= -w -fsigned-char $(CXXOPTFLAGS) $(INCLUDES) -+INCLUDES= -Ishared -Iengine -Ifpsgame -Irpggame -Ienet/include -I$(X11BASE)/include `$(SDL_CONFIG) --cflags` ++INCLUDES= -Ishared -Iengine -Ifpsgame -Irpggame -Ienet/include -I$(LOCALBASE)/include `$(SDL_CONFIG) --cflags` +CXXFLAGS+= -Wall -fsigned-char $(INCLUDES) -PLATFORM_PREFIX=native +PLATFORM_PREFIX=FreeBSD -CLIENT_LIBS=-Lenet -lenet -L/usr/X11R6/lib `sdl-config --libs` -lSDL_image -lSDL_mixer -lz -lGL -lGLU -+CLIENT_LIBS=-Lenet -lenet `$(SDL_CONFIG) --libs` -lSDL_image -lSDL_mixer -lz -L$(X11BASE)/lib -lGL -lGLU ++CLIENT_LIBS=-Lenet -lenet `$(SDL_CONFIG) --libs` -lSDL_image -lSDL_mixer -lz -L$(LOCALBASE)/lib -lGL -lGLU CLIENT_OBJS= \ shared/tools.o \ shared/geom.o \ diff --git a/games/bogged/Makefile b/games/bogged/Makefile index c538be5..d537111 100644 --- a/games/bogged/Makefile +++ b/games/bogged/Makefile @@ -7,7 +7,7 @@ PORTNAME= bogged PORTVERSION= 1.0.0 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= games MASTER_SITES= ${MASTER_SITE_SUNSITE} MASTER_SITE_SUBDIR= games/strategy @@ -25,7 +25,6 @@ EXTRACT_AFTER_ARGS= ${WRKDIR} NO_WRKSUBDIR= yes NO_BUILD= yes PLIST_FILES= bin/bogged -USE_X_PREFIX= yes post-extract: @ ${GUNZIP_CMD} ${WRKDIR}/${DISTNAME}${EXTRACT_SUFX} diff --git a/games/bomb/Makefile b/games/bomb/Makefile index 3ab7a3d..b838149 100644 --- a/games/bomb/Makefile +++ b/games/bomb/Makefile @@ -19,7 +19,7 @@ LIB_DEPENDS= esd.2:${PORTSDIR}/audio/esound \ vga.1:${PORTSDIR}/graphics/svgalib \ quicktime.0:${PORTSDIR}/multimedia/libquicktime -MAKE_ENV= SCM_CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS} -I${X11BASE}/include -I${LOCALBASE}/include" +MAKE_ENV= SCM_CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS} -I${LOCALBASE}/include" ALL_TARGET= ${PORTNAME} PORTDOCS= README bomb.lsm guile.txt manual.txt notes.txt @@ -29,7 +29,7 @@ pre-configure: ${REINPLACE_CMD} -e 's|/usr/lib/bomb|${DATADIR}|; \ s|/home/spot/src/quicktime4linux-1.1.9/quicktime|${LOCALBASE}/lib|; \ s|..QTDIR./libquicktime.a|-lquicktime|; \ - s|/usr/X11R6/lib|${X11BASE}/lib -L${LOCALBASE}/lib|; \ + s|/usr/X11R6/lib|${LOCALBASE}/lib -L${LOCALBASE}/lib|; \ s|-lpthread|${PTHREAD_LIBS}|; \ s|/usr/bin/bomb|${PREFIX}/bin/bomb|; \ s|/usr/share/control-center/.data|${DATADIR}/.data|; \ diff --git a/games/bomberclone/Makefile b/games/bomberclone/Makefile index 4d68298..f8888ff 100644 --- a/games/bomberclone/Makefile +++ b/games/bomberclone/Makefile @@ -9,8 +9,7 @@ PORTNAME= bomberclone PORTVERSION= 0.11.8 PORTREVISION= 2 CATEGORIES= games -MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} -MASTER_SITE_SUBDIR= ${PORTNAME} +MASTER_SITES= SF MAINTAINER= edwin@mavetju.org COMMENT= Reimplementation of Atomic Bomber Man @@ -21,7 +20,7 @@ USE_BZIP2= yes USE_GMAKE= yes CONFIGURE_ARGS= --target="" CONFIGURE_ENV= LDFLAGS="-L${LOCALBASE}/lib ${PTHREAD_LIBS}" \ - CXXFLAGS="${PTHREAD_CFLAGS} -I${X11BASE}/include" + CXXFLAGS="${PTHREAD_CFLAGS} -I${LOCALBASE}/include" post-extract: ${FIND} ${WRKSRC} -type d -name CVS | ${XARGS} ${RM} -rf ; diff --git a/games/bombermaze/Makefile b/games/bombermaze/Makefile index a539271..372eb5a 100644 --- a/games/bombermaze/Makefile +++ b/games/bombermaze/Makefile @@ -7,15 +7,13 @@ PORTNAME= bombermaze PORTVERSION= 0.6.6 -PORTREVISION= 4 +PORTREVISION= 5 CATEGORIES= games gnome -MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} -MASTER_SITE_SUBDIR= ${PORTNAME} +MASTER_SITES= SF MAINTAINER= gnome@FreeBSD.org COMMENT= A multiplayer game, strategy place bombs to kill enemies and obstacles -USE_X_PREFIX= yes USE_GMAKE= yes USE_GNOME= gnomeprefix gnomehack gnomelibs gdkpixbuf USE_GETTEXT= yes diff --git a/games/boswars/Makefile b/games/boswars/Makefile index a552fa3..c0f3be3 100644 --- a/games/boswars/Makefile +++ b/games/boswars/Makefile @@ -7,7 +7,7 @@ PORTNAME= boswars PORTVERSION= 2.4.1 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= games MASTER_SITES= http://boswars.org:8001/bos/releases/ DISTNAME= ${PORTNAME}-${PORTVERSION}-src @@ -34,8 +34,8 @@ OPTIONS= GL "Enable OpenGL support" on \ .if !defined(WITHOUT_GL) USE_GL= yes SCONS_ARGS+= opengl=1 -CPPPATH+= ${X11BASE}/include -LIBPATH+= ${X11BASE}/lib +CPPPATH+= ${LOCALBASE}/include +LIBPATH+= ${LOCALBASE}/lib .endif .if !defined(WITH_OPTIMIZED_CFLAGS) diff --git a/games/bubbros/Makefile b/games/bubbros/Makefile index fe89fcb..5d1054f 100644 --- a/games/bubbros/Makefile +++ b/games/bubbros/Makefile @@ -22,7 +22,7 @@ USE_PYTHON= yes USE_BZIP2= yes post-patch: - @${REINPLACE_CMD} -e 's|/usr/X11R6|${X11BASE}|g' \ + @${REINPLACE_CMD} -e 's|/usr/X11R6|${LOCALBASE}|g' \ ${WRKSRC}/display/setup.py do-build: diff --git a/games/bumprace/Makefile b/games/bumprace/Makefile index 0fe330e..03bdc64 100644 --- a/games/bumprace/Makefile +++ b/games/bumprace/Makefile @@ -19,8 +19,8 @@ GNU_CONFIGURE= yes USE_GMAKE= yes USE_SDL= sdl mixer image -CONFIGURE_ENV= LDFLAGS="-L${LOCALBASE}/lib -L${X11BASE}/lib" \ - CPPFLAGS="-I${LOCALBASE}/include -I${X11BASE}/include" +CONFIGURE_ENV= LDFLAGS="-L${LOCALBASE}/lib" \ + CPPFLAGS="-I${LOCALBASE}/include" CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL} PORTDOCS= FAQ README diff --git a/games/burgerspace/Makefile b/games/burgerspace/Makefile index dfd824a..2c2b7f9 100644 --- a/games/burgerspace/Makefile +++ b/games/burgerspace/Makefile @@ -19,10 +19,10 @@ LIB_DEPENDS= gengameng.4:${PORTSDIR}/devel/gengameng \ GNU_CONFIGURE= yes SDL_CONFIG?= ${LOCALBASE}/bin/sdl-config -CPPFLAGS= -I${X11BASE}/include -I${LOCALBASE}/include +CPPFLAGS= -I${LOCALBASE}/include LDFLAGS= -L${LOCALBASE}/lib CCONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}" -CONFIGURE_ARGS+= --with-gengameng-prefix="${X11BASE}" +CONFIGURE_ARGS+= --with-gengameng-prefix="${LOCALBASE}" MAN6= burgerspace.6 PLIST_FILES= bin/burgerspace diff --git a/games/bygfoot/Makefile b/games/bygfoot/Makefile index 4feab03..18c9051 100644 --- a/games/bygfoot/Makefile +++ b/games/bygfoot/Makefile @@ -7,9 +7,9 @@ PORTNAME= bygfoot PORTVERSION= 2.2.1 +PORTREVISION= 1 CATEGORIES= games -MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} -MASTER_SITE_SUBDIR= ${PORTNAME} +MASTER_SITES= SF DISTNAME= ${PORTNAME}-${PORTVERSION}-source MAINTAINER= pav@FreeBSD.org @@ -18,7 +18,6 @@ COMMENT= Football (soccer) management game GNU_CONFIGURE= yes USE_BZIP2= yes USE_GNOME= gtk20 gnometarget -USE_XLIB= yes CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" LDFLAGS="-L${LOCALBASE}/lib ${PTHREAD_LIBS}" .include diff --git a/games/cake/files/patch-Makefile b/games/cake/files/patch-Makefile index 020889d..629772c 100644 --- a/games/cake/files/patch-Makefile +++ b/games/cake/files/patch-Makefile @@ -8,11 +8,11 @@ -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 -I$(X11BASE)/include ++INCLUDES = -I/usr/include -I$(LOCALBASE)/include +CXX ?= g++ +CXXFLAGS += -Wall $(INCLUDES) + -+LDFLAGS += -L/usr/lib -L$(LOCALBASE)/lib -L$(X11BASE)/lib -lglut -lGLU -lGL ++LDFLAGS += -L/usr/lib -L$(LOCALBASE)/lib -lglut -lGLU -lGL +LDFLAGS += $(PTHREAD_LIBS) -lX11 -lXext -lXmu -lXt -lXi -lSM -lICE +#LDFLAGS += -lcurses -ljpeg -lz -lfmod-3.63 +LDFLAGS += -ljpeg diff --git a/games/ceferino/Makefile b/games/ceferino/Makefile index 0d7decb..669101f 100644 --- a/games/ceferino/Makefile +++ b/games/ceferino/Makefile @@ -17,8 +17,8 @@ COMMENT= Game similar to Super Pang USE_SDL= sdl mixer image GNU_CONFIGURE= yes USE_GMAKE= yes -CPPFLAGS+= -I${LOCALBASE}/include -I${X11BASE}/include -LDFLAGS+= -L${LOCALBASE}/lib -L${X11BASE}/lib ${PTHREAD} +CPPFLAGS+= -I${LOCALBASE}/include +LDFLAGS+= -L${LOCALBASE}/lib ${PTHREAD} CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL} CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}" diff --git a/games/cgoban2/Makefile b/games/cgoban2/Makefile index 3d97e32..d42325d 100644 --- a/games/cgoban2/Makefile +++ b/games/cgoban2/Makefile @@ -7,7 +7,7 @@ PORTNAME= cgoban2 PORTVERSION= 2.6.12 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= games java MASTER_SITES= http://kgs.kiseido.com/ DISTNAME= cgoban-unix-${PORTVERSION} @@ -20,7 +20,6 @@ RUN_DEPENDS= java:${PORTSDIR}/java/javavmwrapper WRKSRC= ${WRKDIR}/cgoban -USE_X_PREFIX= yes USE_JAVA= yes JAVA_VERSION= 1.3+ NO_BUILD= yes diff --git a/games/chanta/Makefile b/games/chanta/Makefile index a81576f..a8103c1 100644 --- a/games/chanta/Makefile +++ b/games/chanta/Makefile @@ -17,8 +17,8 @@ COMMENT= Free 2D jump and run game USE_SDL= sdl image mixer USE_GMAKE= yes GNU_CONFIGURE= yes -CPPFLAGS+= -I${LOCALBASE}/include -I${X11BASE}/include -LDFLAGS+= -L${LOCALBASE}/lib -L${X11BASE}/lib ${PTHREAD} +CPPFLAGS+= -I${LOCALBASE}/include +LDFLAGS+= -L${LOCALBASE}/lib ${PTHREAD} CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL} CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}" diff --git a/games/chromium-bsu/Makefile b/games/chromium-bsu/Makefile index d67106b..1b0dda4 100644 --- a/games/chromium-bsu/Makefile +++ b/games/chromium-bsu/Makefile @@ -22,16 +22,16 @@ LIB_DEPENDS= vorbis.4:${PORTSDIR}/audio/libvorbis \ openal.0:${PORTSDIR}/audio/openal \ alut.1:${PORTSDIR}/audio/freealut -USE_GL= yes +USE_GL= glu USE_GMAKE= yes WRKSRC= ${WRKDIR}/Chromium-0.9 post-patch: @${REINPLACE_CMD} -e 's|-lopenal|& -lalut|g' \ - -e 's|/usr/X11R6|${X11BASE}|g' ${WRKSRC}/configure - @${REINPLACE_CMD} -e 's|/usr/X11R6|${X11BASE}|g' ${WRKSRC}/src/Makefile - @${REINPLACE_CMD} -e 's|/usr/X11R6|${X11BASE}|g' ${WRKSRC}/src-setup/Makefile - @${REINPLACE_CMD} -e 's|/usr/X11R6|${X11BASE}|g' ${WRKSRC}/support/glpng/src/Makefile + -e 's|/usr/X11R6|${LOCALBASE}|g' ${WRKSRC}/configure + @${REINPLACE_CMD} -e 's|/usr/X11R6|${LOCALBASE}|g' ${WRKSRC}/src/Makefile + @${REINPLACE_CMD} -e 's|/usr/X11R6|${LOCALBASE}|g' ${WRKSRC}/src-setup/Makefile + @${REINPLACE_CMD} -e 's|/usr/X11R6|${LOCALBASE}|g' ${WRKSRC}/support/glpng/src/Makefile do-install: ${INSTALL_PROGRAM} ${WRKSRC}/bin/chromium ${PREFIX}/bin diff --git a/games/chromium/Makefile b/games/chromium/Makefile index d67106b..1b0dda4 100644 --- a/games/chromium/Makefile +++ b/games/chromium/Makefile @@ -22,16 +22,16 @@ LIB_DEPENDS= vorbis.4:${PORTSDIR}/audio/libvorbis \ openal.0:${PORTSDIR}/audio/openal \ alut.1:${PORTSDIR}/audio/freealut -USE_GL= yes +USE_GL= glu USE_GMAKE= yes WRKSRC= ${WRKDIR}/Chromium-0.9 post-patch: @${REINPLACE_CMD} -e 's|-lopenal|& -lalut|g' \ - -e 's|/usr/X11R6|${X11BASE}|g' ${WRKSRC}/configure - @${REINPLACE_CMD} -e 's|/usr/X11R6|${X11BASE}|g' ${WRKSRC}/src/Makefile - @${REINPLACE_CMD} -e 's|/usr/X11R6|${X11BASE}|g' ${WRKSRC}/src-setup/Makefile - @${REINPLACE_CMD} -e 's|/usr/X11R6|${X11BASE}|g' ${WRKSRC}/support/glpng/src/Makefile + -e 's|/usr/X11R6|${LOCALBASE}|g' ${WRKSRC}/configure + @${REINPLACE_CMD} -e 's|/usr/X11R6|${LOCALBASE}|g' ${WRKSRC}/src/Makefile + @${REINPLACE_CMD} -e 's|/usr/X11R6|${LOCALBASE}|g' ${WRKSRC}/src-setup/Makefile + @${REINPLACE_CMD} -e 's|/usr/X11R6|${LOCALBASE}|g' ${WRKSRC}/support/glpng/src/Makefile do-install: ${INSTALL_PROGRAM} ${WRKSRC}/bin/chromium ${PREFIX}/bin diff --git a/games/clanbomber/Makefile b/games/clanbomber/Makefile index 27df294..36e2a46 100644 --- a/games/clanbomber/Makefile +++ b/games/clanbomber/Makefile @@ -7,10 +7,9 @@ PORTNAME= clanbomber PORTVERSION= 1.05 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= games -MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} -MASTER_SITE_SUBDIR= ${PORTNAME} +MASTER_SITES= SF MAINTAINER= ports@FreeBSD.org COMMENT= A bomberman-like multiplayer game @@ -19,7 +18,6 @@ LIB_DEPENDS= clanCore-0.8:${PORTSDIR}/devel/clanlib BROKEN= Does not compile with the newer clanCore -USE_XLIB= yes GNU_CONFIGURE= yes USE_GMAKE= yes CONFIGURE_ENV= LIBS="${PTHREAD_LIBS} -L${LOCALBASE}/lib" \ diff --git a/games/cleanq3/files/patch-code-unix-Makefile b/games/cleanq3/files/patch-code-unix-Makefile index 4906133..ac3078f 100644 --- a/games/cleanq3/files/patch-code-unix-Makefile +++ b/games/cleanq3/files/patch-code-unix-Makefile @@ -52,7 +52,7 @@ -endif #alpha test +BASE_CFLAGS = $(CFLAGS) -DDATADIR='\"$(Q3DIR)\"' -DLIBDIR='\"$(LIBDIR)\"' -pipe -+GL_CFLAGS = -I$(X11BASE)/include ++GL_CFLAGS = -I$(LOCALBASE)/include -BASE_CFLAGS = -pipe +DEBUG_CFLAGS=$(BASE_CFLAGS) -g -Wall -Werror @@ -94,7 +94,7 @@ #GLLDFLAGS=-L/usr/X11R6/lib -L$(MESADIR)/lib -lGL -lX11 -lXext -lXxf86dga -lXxf86vm #GLLDFLAGS=-L/usr/X11/lib -lGL -lX11 -lXext -lm -GLLDFLAGS=-L/usr/X11R6/lib -lGL -lX11 -lXext -lXxf86dga -lXxf86vm -+GLLDFLAGS=-L$(X11BASE)/lib -lGL -lX11 -lXext -lXxf86dga -lXxf86vm ++GLLDFLAGS=-L$(LOCALBASE)/lib -lGL -lX11 -lXext -lXxf86dga -lXxf86vm -ifeq ($(ARCH),axp) -TARGETS=\ diff --git a/games/columns/Makefile b/games/columns/Makefile index 9117781..6453b47 100644 --- a/games/columns/Makefile +++ b/games/columns/Makefile @@ -7,7 +7,7 @@ PORTNAME= columns PORTVERSION= 1.2b -PORTREVISION= 4 +PORTREVISION= 5 CATEGORIES= games # mastersite disappeared in December 2000 MASTER_SITES= ${MASTER_SITE_LOCAL} @@ -18,7 +18,6 @@ MAINTAINER= ports@FreeBSD.org COMMENT= Nice little implementation of columns game for X Window System USE_SDL= sdl -USE_X_PREFIX= yes GNU_CONFIGURE= yes DATADIR= ${PREFIX}/share/Columns diff --git a/games/connectfive/Makefile b/games/connectfive/Makefile index 24d6866..3660a5e 100644 --- a/games/connectfive/Makefile +++ b/games/connectfive/Makefile @@ -9,8 +9,7 @@ PORTNAME= connectfive PORTVERSION= 1.0.2 PORTREVISION= 3 CATEGORIES= games -MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} -MASTER_SITE_SUBDIR= connectfive +MASTER_SITES= SF/connectfive DISTNAME= connectFive MAINTAINER= amdmi3@amdmi3.ru @@ -18,12 +17,12 @@ COMMENT= Place five pieces in a row on a 3d board MAKEFILE= Makefile.linux MAKE_ENV= CXX="${CXX}" CXXFLAGS="${CXXFLAGS}" \ - CPPFLAGS="-I${LOCALBASE}/include -I${X11BASE}/include" \ - LDFLAGS="-L${LOCALBASE}/lib -L${X11BASE}/lib" + CPPFLAGS="-I${LOCALBASE}/include" \ + LDFLAGS="-L${LOCALBASE}/lib" ALL_TARGET= default USE_SDL= sdl -USE_GL= yes +USE_GL= gl USE_GMAKE= yes WRKSRC= ${WRKDIR}/connectFive diff --git a/games/construo/Makefile b/games/construo/Makefile index 381e98e..73ee9cb 100644 --- a/games/construo/Makefile +++ b/games/construo/Makefile @@ -20,8 +20,8 @@ USE_GMAKE= yes USE_XORG= sm ice x11 xext xxf86vm CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL} -CONFIGURE_ENV= LDFLAGS="-L${LOCALBASE}/lib -L${X11BASE}/lib" \ - CPPFLAGS="-I${LOCALBASE}/include -I${X11BASE}/include" +CONFIGURE_ENV= LDFLAGS="-L${LOCALBASE}/lib" \ + CPPFLAGS="-I${LOCALBASE}/include" CONFIGURE_ARGS= --bindir=${PREFIX}/bin --datadir=${DATADIR} OPTIONS= GLUT "Use glut" on @@ -29,7 +29,7 @@ OPTIONS= GLUT "Use glut" on .include .if defined(WITH_GLUT) -LIB_DEPENDS= glut.4:${PORTSDIR}/graphics/libglut +USE_GL= glut PLIST_SUB+= GLUTBIN:="" .else PLIST_SUB+= GLUTBIN:="@comment " diff --git a/games/crack-attack/Makefile b/games/crack-attack/Makefile index 5779046..bc30083 100644 --- a/games/crack-attack/Makefile +++ b/games/crack-attack/Makefile @@ -6,7 +6,7 @@ PORTNAME= crack-attack PORTVERSION= 1.1.14 -PORTREVISION= 3 +PORTREVISION= 4 CATEGORIES= games MASTER_SITES= ${MASTER_SITE_SAVANNAH} MASTER_SITE_SUBDIR= ${PORTNAME} @@ -14,12 +14,10 @@ MASTER_SITE_SUBDIR= ${PORTNAME} MAINTAINER= pav@FreeBSD.org COMMENT= OpenGL game based on Super Nintendo classic Tetris Attack -LIB_DEPENDS= glut.4:${PORTSDIR}/graphics/libglut - -USE_X_PREFIX= yes +USE_GL= glut USE_GNOME= gtk20 GNU_CONFIGURE= yes -CONFIGURE_ENV= CPPFLAGS="-I${X11BASE}/include" CXXFLAGS="${CFLAGS}" +CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" CXXFLAGS="${CFLAGS}" MAN6= crack-attack.6 diff --git a/games/criticalmass/Makefile b/games/criticalmass/Makefile index a00c58a..7ff651e 100644 --- a/games/criticalmass/Makefile +++ b/games/criticalmass/Makefile @@ -7,11 +7,10 @@ PORTNAME= criticalmass PORTVERSION= 1.0.0 -PORTREVISION= 4 +PORTREVISION= 5 PORTEPOCH= 1 CATEGORIES= games -MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} -MASTER_SITE_SUBDIR= ${PORTNAME} +MASTER_SITES= SF DISTNAME= CriticalMass-${PORTVERSION} MAINTAINER= acm@FreeBSD.org @@ -21,7 +20,7 @@ CONFLICTS= shaaft-[0-9]* USE_BZIP2= yes USE_SDL= image mixer sdl -USE_GL= yes +USE_GL= gl USE_XORG= x11 GNU_CONFIGURE= yes CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL} @@ -41,7 +40,7 @@ post-patch: 's|SDL/SDL|SDL|g' @${REINPLACE_CMD} -e 's|sdl-config|${SDL_CONFIG:T}|g ; \ s|^CXXFLAGS|#CXXFLAGS|g ; \ - s|/usr/X11R6|${X11BASE}|g ; \ + s|/usr/X11R6|${LOCALBASE}|g ; \ s|-lSDL | |g ; \ s|-lpng12|-lpng|g' ${WRKSRC}/configure @${REINPLACE_CMD} -e 's|and def|\&\& def|g' ${WRKSRC}/utils/OSName.hpp diff --git a/games/crossfire-client/Makefile b/games/crossfire-client/Makefile index 70c262a..6678165 100644 --- a/games/crossfire-client/Makefile +++ b/games/crossfire-client/Makefile @@ -9,7 +9,7 @@ PORTNAME= crossfire-client PORTVERSION= 1.8.0 PORTREVISION= 3 CATEGORIES= games -MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} \ +MASTER_SITES= SF \ ftp://ftp.ifi.uio.no/pub/crossfire/ \ ftp://ftp.real-time.com/pub/games/crossfire/ MASTER_SITE_SUBDIR= ${PORTNAME:S/-client//} @@ -27,8 +27,8 @@ USE_GNOME= gnometarget USE_GMAKE= yes USE_SDL= image sdl GNU_CONFIGURE= yes -CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include -I${X11BASE}/include" \ - LDFLAGS="-L${LOCALBASE}/lib -L${X11BASE}/lib" +CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \ + LDFLAGS="-L${LOCALBASE}/lib" CONFIGURE_ARGS= --with-sound-dir=${DATADIR}/sounds MAN6= cfclient.6 diff --git a/games/cube/files/patch-Makefile b/games/cube/files/patch-Makefile index 6bc72191d..4717ba6 100644 --- a/games/cube/files/patch-Makefile +++ b/games/cube/files/patch-Makefile @@ -6,10 +6,10 @@ -CXXFLAGS=$(CXXOPTFLAGS) -I../enet/include `sdl-config --cflags` +CXX?=g++ +CXXOPTFLAGS=-Wall -+CXXFLAGS+=$(CXXOPTFLAGS) -I$(LOCALBASE)/include `$(SDL_CONFIG) --cflags` -I$(X11BASE)/include ++CXXFLAGS+=$(CXXOPTFLAGS) -I$(LOCALBASE)/include `$(SDL_CONFIG) --cflags` -CLIENT_LIBS=-L../enet -lenet `sdl-config --libs` -lSDL_image -lSDL_mixer -lz -lGL -lGLU -+CLIENT_LIBS=-L$(LOCALBASE)/lib -lenet `$(SDL_CONFIG) --libs` -lSDL_image -lSDL_mixer -lz -L$(X11BASE)/lib -lGL -lGLU ++CLIENT_LIBS=-L$(LOCALBASE)/lib -lenet `$(SDL_CONFIG) --libs` -lSDL_image -lSDL_mixer -lz -lGL -lGLU CLIENT_OBJS= \ client.o \ clientextras.o \ diff --git a/games/cultivation/files/patch-Makefile.GnuLinux b/games/cultivation/files/patch-Makefile.GnuLinux index 3afa4bf..2282fe9 100644 --- a/games/cultivation/files/patch-Makefile.GnuLinux +++ b/games/cultivation/files/patch-Makefile.GnuLinux @@ -5,13 +5,13 @@ -PLATFORM_COMPILE_FLAGS = -DLINUX -+PLATFORM_COMPILE_FLAGS = ${CXXFLAGS} -I${LOCALBASE}/include -I${X11BASE}/include -DLINUX ++PLATFORM_COMPILE_FLAGS = ${CXXFLAGS} -I${LOCALBASE}/include -I${LOCALBASE}/include -DLINUX # various GL and X windows librariesneeded for linux # also need portaudio library (which in turn needs pthreads) -PLATFORM_LINK_FLAGS = -L/usr/X11R6/lib -lGL -lglut -lGLU -lX11 ${PORT_AUDIO_PATH}/lib/libportaudio.a -lpthread -+PLATFORM_LINK_FLAGS = -L${LOCALBASE}/lib -L${X11BASE}/lib -lGL -lglut -lGLU -lX11 -lXi -lXext -lXmu -pthread -lportaudio ++PLATFORM_LINK_FLAGS = -L${LOCALBASE}/lib -L${LOCALBASE}/lib -lGL -lglut -lGLU -lX11 -lXi -lXext -lXmu -pthread -lportaudio # All platforms but OSX support g++ and need no linker hacks diff --git a/games/d2x/Makefile b/games/d2x/Makefile index b2d15dd..df9f5aa 100644 --- a/games/d2x/Makefile +++ b/games/d2x/Makefile @@ -25,9 +25,9 @@ PORTDOCS= README TODO NEWS AUTHORS readme.txt installation.txt PLIST_FILES= bin/d2x .ifdef(WITH_OPENGL) -USE_GL= yes +USE_GL= glut CONFIGURE_ARGS+=--with-opengl -CONFIGURE_ENV=LDFLAGS=-L${X11BASE}/lib CPPFLAGS=-I${X11BASE}/include +CONFIGURE_ENV=LDFLAGS=-L${LOCALBASE}/lib CPPFLAGS=-I${LOCALBASE}/include .endif pre-everything:: diff --git a/games/daimonin-client/Makefile b/games/daimonin-client/Makefile index a1f315b..c511d9a 100644 --- a/games/daimonin-client/Makefile +++ b/games/daimonin-client/Makefile @@ -7,10 +7,9 @@ PORTNAME= daimonin_client PORTVERSION= 0.9.7 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= games -MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} -MASTER_SITE_SUBDIR= daimonin +MASTER_SITES= SF/daimonin EXTRACT_SUFX= .tgz MAINTAINER= pav@FreeBSD.org @@ -20,7 +19,6 @@ HAS_CONFIGURE= yes CONFIGURE_ARGS= --prefix=${PREFIX}/share CONFIGURE_ENV= CFLAGS="-pipe" USE_SDL= mixer image -USE_XLIB= yes SUB_FILES= daimonin.sh SUB_LIST= PORTVERSION=${PORTVERSION} PLIST_SUB= PORTVERSION=${PORTVERSION} diff --git a/games/daimonin/Makefile b/games/daimonin/Makefile index a1f315b..c511d9a 100644 --- a/games/daimonin/Makefile +++ b/games/daimonin/Makefile @@ -7,10 +7,9 @@ PORTNAME= daimonin_client PORTVERSION= 0.9.7 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= games -MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} -MASTER_SITE_SUBDIR= daimonin +MASTER_SITES= SF/daimonin EXTRACT_SUFX= .tgz MAINTAINER= pav@FreeBSD.org @@ -20,7 +19,6 @@ HAS_CONFIGURE= yes CONFIGURE_ARGS= --prefix=${PREFIX}/share CONFIGURE_ENV= CFLAGS="-pipe" USE_SDL= mixer image -USE_XLIB= yes SUB_FILES= daimonin.sh SUB_LIST= PORTVERSION=${PORTVERSION} PLIST_SUB= PORTVERSION=${PORTVERSION} diff --git a/games/dangerdeep/Makefile b/games/dangerdeep/Makefile index c6da1bb..38a6ba8 100644 --- a/games/dangerdeep/Makefile +++ b/games/dangerdeep/Makefile @@ -43,6 +43,8 @@ SCONS_ARGS+= usex86sse=-1 # disable MMX/SSE on the build cluster post-patch: @${REINPLACE_CMD} -e 's|/usr/share/games/dangerdeep|${DATADIR}|; \ s|Linux|"Danger from the Deep"|' ${WRKSRC}/doc/man/dangerdeep.6 + @${REINPLACE_CMD} -e 's|/usr/X11BASE|${LOCALBASE}|g' \ + ${WRKSRC}/SConstruct do-build: @cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} scons ${SCONS_ARGS} diff --git a/games/deng/Makefile b/games/deng/Makefile index 87e9184..b67004d 100644 --- a/games/deng/Makefile +++ b/games/deng/Makefile @@ -19,11 +19,11 @@ BUILD_DEPENDS= zip:${PORTSDIR}/archivers/zip LIB_DEPENDS= png.5:${PORTSDIR}/graphics/png RUN_DEPENDS= timidity:${PORTSDIR}/audio/timidity -USE_GL= yes +USE_GL= gl USE_LDCONFIG= yes USE_SDL= sdl mixer net GNU_CONFIGURE= yes -CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include -I${X11BASE}/include \ +CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include \ `${SDL_CONFIG} --cflags`" CONFIGURE_SCRIPT= ../configure CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL} diff --git a/games/diameter/Makefile b/games/diameter/Makefile index a5e7039..9e37f7f 100644 --- a/games/diameter/Makefile +++ b/games/diameter/Makefile @@ -21,14 +21,14 @@ RUN_DEPENDS:= ${BUILD_DEPENDS} USE_BZIP2= yes GNU_CONFIGURE= yes USE_GMAKE= yes -USE_GL= yes +USE_GL= gl USE_SDL= sdl mixer image USE_PYTHON= yes WRKSRC= ${WRKDIR}/gamediameter -CONFIGURE_ENV= CPPFLAGS="`${SDL_CONFIG} --cflags` -I${X11BASE}/include" \ - LDFLAGS="`${SDL_CONFIG} --libs` -L${X11BASE}/lib" +CONFIGURE_ENV= CPPFLAGS="`${SDL_CONFIG} --cflags` -I${LOCALBASE}/include" \ + LDFLAGS="`${SDL_CONFIG} --libs` -L${LOCALBASE}/lib" DATADIR= ${PREFIX}/share/gamediameter diff --git a/games/djgame2/Makefile b/games/djgame2/Makefile index 2fda9aa..7d4667c 100644 --- a/games/djgame2/Makefile +++ b/games/djgame2/Makefile @@ -45,9 +45,9 @@ post-patch: ${WRKSRC}/makelinux @${REINPLACE_CMD} -e 's|qmake|${QMAKE}|' \ ${WRKSRC}/makelinux - @${ECHO_CMD} "INCLUDEPATH += ${X11BASE}/include" \ + @${ECHO_CMD} "INCLUDEPATH += ${LOCALBASE}/include" \ >> ${WRKSRC}/Base/Base.pro - @${ECHO_CMD} "INCLUDEPATH += ${X11BASE}/include" \ + @${ECHO_CMD} "INCLUDEPATH += ${LOCALBASE}/include" \ >> ${WRKSRC}/Hall/Hall.pro @${CHMOD} a+x ${WRKSRC}/makelinux diff --git a/games/doom/Makefile b/games/doom/Makefile index ac5bdd2..b5706e1 100644 --- a/games/doom/Makefile +++ b/games/doom/Makefile @@ -7,10 +7,9 @@ PORTNAME= doom PORTVERSION= 1.10 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= games -MASTER_SITES= ${MASTER_SITE_IDSOFTWARE} -MASTER_SITE_SUBDIR= source +MASTER_SITES= SF/source DISTNAME= doomsrc MAINTAINER= jmz@FreeBSD.org @@ -21,8 +20,8 @@ NO_CDROM= requested by IDsoftware ONLY_FOR_ARCHS= i386 USE_GMAKE= yes -USE_XLIB= yes USE_ZIP= yes +USE_XORG= x11 NO_WRKSUBDIR= yes DATADIR= ${DMDIR} @@ -35,7 +34,7 @@ post-patch: -E -e 's|#include +|#include |g' do-build: - @cd ${WRKDIR}/linuxdoom-1.10 && ${GMAKE} X11BASE=${X11BASE} + @cd ${WRKDIR}/linuxdoom-1.10 && ${GMAKE} X11BASE=${LOCALBASE} @cd ${WRKDIR}/sndserv && ${GMAKE} do-install: diff --git a/games/doom/files/patch-ab b/games/doom/files/patch-ab index c5e6617..65a772b 100644 --- a/games/doom/files/patch-ab +++ b/games/doom/files/patch-ab @@ -11,8 +11,8 @@ -LDFLAGS=-L/usr/X11R6/lib -LIBS=-lXext -lX11 -lnsl -lm +CFLAGS?= -O -+CFLAGS+=-g -I${X11BASE}/include -Wall -DNORMALUNIX -DSNDSERV -DSNDSRV # -DUSEASM -+LDFLAGS=-L${X11BASE}/lib ++CFLAGS+=-g -I${LOCALBASE}/include -Wall -DNORMALUNIX -DSNDSERV -DSNDSRV # -DUSEASM ++LDFLAGS=-L${LOCALBASE}/lib +LIBS=-lXext -lX11 -lm # subdirectory for objects diff --git a/games/doomlegacy/Makefile b/games/doomlegacy/Makefile index 7a3eea0..7d07fae 100644 --- a/games/doomlegacy/Makefile +++ b/games/doomlegacy/Makefile @@ -50,7 +50,7 @@ post-patch: 's|-I/usr/local/include/SDL11|`${SDL_CONFIG} --cflags`|; \ s|-lSDL-1\.1|`${SDL_CONFIG} --libs`|; \ s|/usr/local|${LOCALBASE}|; \ - s|/usr/X11R6|${X11BASE}|' \ + s|/usr/X11R6|${LOCALBASE}|' \ ${WRKSRC}/${MAKEFILE} pre-build: diff --git a/games/dopewars/Makefile b/games/dopewars/Makefile index 21ea97b..bf4d08d 100644 --- a/games/dopewars/Makefile +++ b/games/dopewars/Makefile @@ -7,7 +7,7 @@ PORTNAME= dopewars PORTVERSION= 1.5.12 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= games MASTER_SITES= SF @@ -18,7 +18,6 @@ USE_GETTEXT= yes USE_GMAKE= yes GNU_CONFIGURE= yes USE_GNOME= gtk12 -USE_X_PREFIX= yes CONFIGURE_ARGS= --enable-networking --disable-plugins --localstatedir=${DATADIR} CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \ diff --git a/games/dsnake/Makefile b/games/dsnake/Makefile index 28cb870..a971c01 100644 --- a/games/dsnake/Makefile +++ b/games/dsnake/Makefile @@ -21,7 +21,7 @@ RESTRICTED= Licence forbids any repacking and reselling ONLY_FOR_ARCHS= i386 amd64 USE_LINUX= yes -USE_X_PREFIX= yes +USE_XLIB= yes WRKSRC= ${WRKDIR}/DeluxeSnake SUB_FILES= pkg-install pkg-deinstall diff --git a/games/duel/Makefile b/games/duel/Makefile index f91a9d3..19d8b09 100644 --- a/games/duel/Makefile +++ b/games/duel/Makefile @@ -16,16 +16,16 @@ DISTNAME= lin${PORTNAME} MAINTAINER= alepulver@FreeBSD.org COMMENT= An overhead, OpenGL space shooter -BUILD_DEPENDS= ${X11BASE}/lib/libftgl.a:${PORTSDIR}/graphics/ftgl +BUILD_DEPENDS= ${LOCALBASE}/lib/libftgl.a:${PORTSDIR}/graphics/ftgl LIB_DEPENDS= freetype.9:${PORTSDIR}/print/freetype2 USE_AUTOTOOLS= libtool:15 USE_BZIP2= yes -USE_GL= yes +USE_GL= gl USE_SDL= sdl GNU_CONFIGURE= yes -CONFIGURE_ENV= CPPFLAGS="`${SDL_CONFIG} --cflags` `freetype-config --cflags` -I${X11BASE}/include -I${X11BASE}/include/FTGL" \ - LDFLAGS="`${SDL_CONFIG} --libs` -L${X11BASE}/lib" +CONFIGURE_ENV= CPPFLAGS="`${SDL_CONFIG} --cflags` `freetype-config --cflags` -I${LOCALBASE}/include -I${LOCALBASE}/include/FTGL" \ + LDFLAGS="`${SDL_CONFIG} --libs` -L${LOCALBASE}/lib" WRKSRC= ${WRKDIR}/${PORTNAME} SUB_FILES= ${PORTNAME}-sh diff --git a/games/eboard/Makefile b/games/eboard/Makefile index 0322e4b..a07f07d 100644 --- a/games/eboard/Makefile +++ b/games/eboard/Makefile @@ -24,8 +24,8 @@ USE_PERL5_BUILD=yes USE_GNOME= gtk20 CONFIGURE_ARGS= --prefix=${PREFIX} \ - --extra-inc=${LOCALBASE}/include:${X11BASE}/include \ - --extra-ld=${LOCALBASE}/lib:${X11BASE}/lib \ + --extra-inc=${LOCALBASE}/include \ + --extra-ld=${LOCALBASE}/lib \ --disable-dgt INSTALL_TARGET= install install-man diff --git a/games/eduke32/Makefile b/games/eduke32/Makefile index 7dadaa8..bd2298c 100644 --- a/games/eduke32/Makefile +++ b/games/eduke32/Makefile @@ -16,7 +16,7 @@ COMMENT= Duke Nukem 3D Port based on JFDuke and EDuke USE_ZIP= yes USE_GMAKE= yes -USE_GL= yes +USE_GL= gl USE_GNOME= gtk20 USE_SDL= mixer sdl WRKSRC= ${WRKDIR}/${PORTNAME}_src_${PORTVERSION}/${PORTNAME} @@ -42,7 +42,7 @@ post-patch: @${REINPLACE_CMD} -Ee \ 's|^(CC=).*|\1${CC}|; \ s|^(CXX=).*|\1${CXX}|; \ - s|/usr/X11R6|${X11BASE}|; \ + s|/usr/X11R6|${LOCALBASE}|; \ s|sdl-config|${SDL_CONFIG}|' \ ${WRKSRC}/Makefile \ ${WRKSRC}/../build/Makefile \ diff --git a/games/egl/files/patch-makefile b/games/egl/files/patch-makefile index 50fdb2e..54716e5 100644 --- a/games/egl/files/patch-makefile +++ b/games/egl/files/patch-makefile @@ -57,9 +57,9 @@ + +ifeq ($(OSTYPE),FreeBSD) +# These variables are defined from the port, and passed by the environment. -+SHARED_FLAGS+= -I$(LOCALBASE)/include -I$(X11BASE)/include \ ++SHARED_FLAGS+= -I$(LOCALBASE)/include \ + -DDATADIR='\"$(Q2DIR)\"' -DLIBDIR='\"$(LIBDIR)\"' -+LDFLAGS+= -L$(LOCALBASE)/lib -L$(X11BASE)/lib ++LDFLAGS+= -L$(LOCALBASE)/lib +X11_LDFLAGS+= $(PTHREAD_LIBS) +endif @@ -87,13 +87,13 @@ +SHARED_FLAGS += -DHOMEDIR +endif + -+ifeq ($(wildcard $(X11BASE)/include/X11/extensions/xf86vmode.h),/usr/include/X11/extensions/xf86vmode.h) ++ifeq ($(wildcard $(LOCALBASE)/include/X11/extensions/xf86vmode.h),/usr/include/X11/extensions/xf86vmode.h) SHARED_FLAGS += -DXF86VMODE X11_LDFLAGS += -lXxf86vm endif -ifeq ($(wildcard /usr/include/X11/extensions/xf86dga.h),/usr/include/X11/extensions/xf86dga.h) -+ifeq ($(wildcard $(X11BASE)/include/X11/extensions/xf86dga.h),/usr/include/X11/extensions/xf86dga.h) ++ifeq ($(wildcard $(LOCALBASE)/include/X11/extensions/xf86dga.h),/usr/include/X11/extensions/xf86dga.h) SHARED_FLAGS += -DXF86DGA X11_LDFLAGS += -lXxf86dga endif diff --git a/games/el/files/patch-Makefile.bsdg b/games/el/files/patch-Makefile.bsdg index 281882f..3a5baed 100644 --- a/games/el/files/patch-Makefile.bsdg +++ b/games/el/files/patch-Makefile.bsdg @@ -15,7 +15,7 @@ -PLATFORM=-march=i686 -XDIR=-L/usr/X11R6/lib -+XDIR=-L$(X11BASE)/lib -L$(LOCALBASE)/lib ++XDIR=-L$(LOCALBASE)/lib CWARN= #-Wdeclaration-after-statement -Wall -Werror CPPWARN= @@ -28,7 +28,7 @@ -_CXXFLAGS=$(PLATFORM) -O3 -fomit-frame-pointer -ffast-math -pipe $(OPTIONS) +CFLAGS+=$(OPTIONS) $(shell sdl-config --cflags) $(shell xml2-config --cflags) -I/usr/X11R6/include/ +_CFLAGS=$(CFLAGS) $(OPTIONS) $(shell sdl-config --cflags) $(shell xml2-config --cflags) -+CXXFLAGS+=-I$(LOCALBASE)/include -I$(X11BASE)/include $(OPTIONS) ++CXXFLAGS+=-I$(LOCALBASE)/include $(OPTIONS) +_CXXFLAGS=$(CXXFLAGS) -fomit-frame-pointer -ffast-math -pipe $(OPTIONS) -LDFLAGS=$(shell sdl11-config --libs) $(shell xml2-config --libs) -lSDL_net -lSDL_image -lopenal $(XDIR) -lGL -lGLU -lvorbis -lvorbisfile -lcal3d -lm -lpng diff --git a/games/ember/Makefile b/games/ember/Makefile index fe8597b..8020a28 100644 --- a/games/ember/Makefile +++ b/games/ember/Makefile @@ -9,7 +9,7 @@ PORTNAME= ember PORTVERSION= 0.5.1 PORTREVISION= 2 CATEGORIES= games -MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} \ +MASTER_SITES= SF \ http://amber.worldforge.org/ember/releases/stable/ MASTER_SITE_SUBDIR=worldforge DISTFILES+= ${DISTNAME}${EXTRACT_SUFX} \ @@ -49,9 +49,9 @@ post-patch: @${REINPLACE_CMD} -e '\ s|sdl-config|${SDL_CONFIG}|g; \ s|"-lIL|"-L${LOCALBASE}/lib -lIL|g; \ - s|-lGL|-L${X11BASE}/lib -lGL|g' \ + s|-lGL|-L${LOCALBASE}/lib -lGL|g' \ ${WRKSRC}/configure - @${REINPLACE_CMD} -e 's|^CFLAGS =.*|& $${SDL_CFLAGS} -I${X11BASE}/include|g' \ + @${REINPLACE_CMD} -e 's|^CFLAGS =.*|& $${SDL_CFLAGS} -I${LOCALBASE}/include|g' \ ${WRKSRC}/src/framework/Makefile.in @${REINPLACE_CMD} -e 's| diff --git a/games/flightgear-atlas/pkg-plist b/games/flightgear-atlas/pkg-plist index bcde4d7..d7a1656 100644 --- a/games/flightgear-atlas/pkg-plist +++ b/games/flightgear-atlas/pkg-plist @@ -2,5 +2,4 @@ bin/Atlas bin/Map bin/MapPS bin/buildmaps.sh -@cwd %%X11BASE%% share/FlightGear/AtlasPalette diff --git a/games/flightgear-data/Makefile b/games/flightgear-data/Makefile index 068873e..c6b1056 100644 --- a/games/flightgear-data/Makefile +++ b/games/flightgear-data/Makefile @@ -7,7 +7,7 @@ PORTNAME= fgfs-base PORTVERSION= 0.9.10 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= games MASTER_SITES= ftp://ftp.flightgear.org/pub/fgfs/Shared/ \ ftp://ftp.de.flightgear.org/pub/fgfs/Shared/ @@ -15,7 +15,6 @@ MASTER_SITES= ftp://ftp.flightgear.org/pub/fgfs/Shared/ \ MAINTAINER= jylefort@FreeBSD.org COMMENT= FlightGear scenery, textures and aircraft models -PREFIX?= ${X11BASE} # USE_X_PREFIX would pull in USE_XLIB NO_BUILD= yes USE_BZIP2= yes WRKSRC= ${WRKDIR}/data diff --git a/games/flightgear-mb339-pan/Makefile b/games/flightgear-mb339-pan/Makefile index 459739c..89ba82f 100644 --- a/games/flightgear-mb339-pan/Makefile +++ b/games/flightgear-mb339-pan/Makefile @@ -7,6 +7,7 @@ PORTNAME= flightgear-mb339-pan PORTVERSION= 1.2 +PORTREVISION= 1 CATEGORIES= games MASTER_SITES= http://hcilab.uniud.it/pan/downloads/ DISTNAME= MB339-PAN @@ -14,11 +15,10 @@ DISTNAME= MB339-PAN MAINTAINER= jylefort@FreeBSD.org COMMENT= A simulation of the MB-339 PAN aerobatic jet -RUN_DEPENDS= ${X11BASE}/share/FlightGear/version:${PORTSDIR}/games/fgfs-base +RUN_DEPENDS= ${LOCALBASE}/share/FlightGear/version:${PORTSDIR}/games/fgfs-base BROKEN= Size mismatch -PREFIX?= ${X11BASE} # USE_X_PREFIX would pull in USE_XLIB USE_ZIP= yes NO_WRKSUBDIR= yes NO_BUILD= yes diff --git a/games/flightgear/Makefile b/games/flightgear/Makefile index 600d737..67b007d 100644 --- a/games/flightgear/Makefile +++ b/games/flightgear/Makefile @@ -18,20 +18,20 @@ COMMENT?= The FlightGear flight simulator LIB_DEPENDS= glut:${PORTSDIR}/graphics/libglut \ openal.0:${PORTSDIR}/audio/openal -BUILD_DEPENDS= ${X11BASE}/lib/libplibsl.a:${PORTSDIR}/x11-toolkits/plib \ - ${X11BASE}/lib/libsgmisc.a:${PORTSDIR}/devel/simgear -RUN_DEPENDS= ${X11BASE}/lib/libplibsl.a:${PORTSDIR}/x11-toolkits/plib \ - ${X11BASE}/lib/libsgmisc.a:${PORTSDIR}/devel/simgear \ - ${X11BASE}/share/FlightGear/version:${PORTSDIR}/games/fgfs-base +BUILD_DEPENDS= ${LOCALBASE}/lib/libplibsl.a:${PORTSDIR}/x11-toolkits/plib \ + ${LOCALBASE}/lib/libsgmisc.a:${PORTSDIR}/devel/simgear +RUN_DEPENDS= ${LOCALBASE}/lib/libplibsl.a:${PORTSDIR}/x11-toolkits/plib \ + ${LOCALBASE}/lib/libsgmisc.a:${PORTSDIR}/devel/simgear \ + ${LOCALBASE}/share/FlightGear/version:${PORTSDIR}/games/fgfs-base FGVERSION= 0.9.10 -USE_GL= yes +USE_GL= gl USE_GMAKE= yes GNU_CONFIGURE= yes -CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include -I${X11BASE}/include" \ - LDFLAGS="-L${LOCALBASE}/lib -L${X11BASE}/lib ${PTHREAD_LIBS}" -CONFIGURE_ARGS= --datadir=${X11BASE}/share # location of fgfs-base +CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include -I${LOCALBASE}/include" \ + LDFLAGS="-L${LOCALBASE}/lib -L${LOCALBASE}/lib ${PTHREAD_LIBS}" +CONFIGURE_ARGS= --datadir=${LOCALBASE}/share # location of fgfs-base CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL} .if ${PORTNAME} == FlightGear diff --git a/games/foobillard/Makefile b/games/foobillard/Makefile index 18614aa..839558a 100644 --- a/games/foobillard/Makefile +++ b/games/foobillard/Makefile @@ -28,9 +28,9 @@ USE_GMAKE= yes GNU_CONFIGURE= yes USE_XORG= xaw ice -CPPFLAGS= -I${X11BASE}/include -CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include -I${X11BASE}/include" \ - LDFLAGS="-L${LOCALBASE}/lib -L${X11BASE}/lib" +CPPFLAGS= -I${LOCALBASE}/include +CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include -I${LOCALBASE}/include" \ + LDFLAGS="-L${LOCALBASE}/lib -L${LOCALBASE}/lib" .if defined(WITH_SDL) USE_SDL= yes diff --git a/games/freeciv/Makefile b/games/freeciv/Makefile index 9013527..94716b0 100644 --- a/games/freeciv/Makefile +++ b/games/freeciv/Makefile @@ -38,7 +38,7 @@ LIB_DEPENDS= tiff.4:${PORTSDIR}/graphics/tiff \ ggz-gtk.1:${PORTSDIR}/games/ggz-gtk-client \ ggzcore.9:${PORTSDIR}/games/ggz-client-libs \ ggzmod.5:${PORTSDIR}/games/ggz-client-libs -USE_XPM= yes +USE_XORG= xpm USE_SDL= mixer USE_GNOME= gtk20 CONFIGURE_ARGS+=--enable-client=gtk diff --git a/games/freesci/Makefile b/games/freesci/Makefile index 5e994b1..5447a76 100644 --- a/games/freesci/Makefile +++ b/games/freesci/Makefile @@ -7,7 +7,7 @@ PORTNAME= freesci PORTVERSION= 0.3.5 -PORTREVISION= 3 +PORTREVISION= 4 CATEGORIES= games emulators MASTER_SITES= http://www-plan.cs.colorado.edu/creichen/${PORTNAME}/ \ http://teksolv.de/~jameson/ @@ -17,7 +17,6 @@ MAINTAINER= ports@FreeBSD.org COMMENT= A portable interpreter for SCI games, such as the Space Quest series USE_BZIP2= yes -USE_XLIB= yes GNU_CONFIGURE= yes WANT_SDL= yes INSTALLS_ICONS= yes diff --git a/games/fuhquake/Makefile b/games/fuhquake/Makefile index 461eca7..5e91fe3 100644 --- a/games/fuhquake/Makefile +++ b/games/fuhquake/Makefile @@ -7,7 +7,7 @@ PORTNAME= fuhquake PORTVERSION= 0.31 -PORTREVISION= 3 +PORTREVISION= 4 CATEGORIES= games MASTER_SITES= http://www.fuhquake.net/files/releases/v${PORTVERSION}/ \ ftp://gibbage.mine.nu/clients/fuhquake/releases/v${PORTVERSION}/ \ @@ -69,14 +69,14 @@ MAKE_ARGS+= -DWITHOUT_${f} .endfor .if defined(WITH_X11) -USE_XLIB= yes +USE_XORG= x11 xxf86dga PLIST_SUB+= X11="" CLIENTS+= x11 .else PLIST_SUB+= X11="@comment " .endif -.if (defined(WITH_XMMS) || exists(${X11BASE}/lib/libxmms.so.4)) && \ +.if (defined(WITH_XMMS) || exists(${LOCALBASE}/lib/libxmms.so.4)) && \ defined(CLIENTS) LIB_DEPENDS+= xmms.4:${PORTSDIR}/multimedia/xmms MAKE_ARGS+= -DWITH_XMMS \ diff --git a/games/fuhquake/files/Makefile b/games/fuhquake/files/Makefile index e1bb027..c9d31b2 100644 --- a/games/fuhquake/files/Makefile +++ b/games/fuhquake/files/Makefile @@ -11,7 +11,7 @@ # $FreeBSD$ # -DO_CFLAGS = ${CFLAGS} -funsigned-char -I${LOCALBASE}/include -I${X11BASE}/include -DDATADIR='"${DATADIR}"' -DX11BASE='"${X11BASE}"' +DO_CFLAGS = ${CFLAGS} -funsigned-char -I${LOCALBASE}/include -I${LOCALBASE}/include -DDATADIR='"${DATADIR}"' -DLOCALBASE='"${LOCALBASE}"' .if ${MACHINE_ARCH} == "i386" && !defined(WITHOUT_X86_ASM) DO_CFLAGS += -Did386 @@ -28,7 +28,7 @@ DO_CFLAGS += -O -pipe -s -ffast-math -funroll-loops -fomit-frame-pointer -fexpen .if defined(WITH_XMMS) XMMS_CFLAGS != glib-config --cflags DO_CFLAGS += -D__XMMS__ ${XMMS_CFLAGS} ${PTHREAD_CFLAGS} -XMMS_LIBS = -L${X11BASE}/lib -lxmms ${PTHREAD_LIBS} +XMMS_LIBS = -L${LOCALBASE}/lib -lxmms ${PTHREAD_LIBS} .endif ######################################################################## @@ -186,8 +186,8 @@ CL_GLX_OBJS = \ vid_glx.o CL_COMMON_LIBS = -lm -CL_X11_LIBS = -L${X11BASE}/lib -lX11 -lXext -CL_GLX_LIBS = -L${LOCALBASE}/lib -lpng -ljpeg -L${X11BASE}/lib -lGL -lXxf86dga -lXxf86vm +CL_X11_LIBS = -L${LOCALBASE}/lib -lX11 -lXext +CL_GLX_LIBS = -L${LOCALBASE}/lib -lpng -ljpeg -L${LOCALBASE}/lib -lGL -lXxf86dga -lXxf86vm .c.o: ${CC} ${DO_CFLAGS} -c $< -o $*.o diff --git a/games/fuhquake/files/patch-mp3_player.c b/games/fuhquake/files/patch-mp3_player.c index 76f5918..93b58cb 100644 --- a/games/fuhquake/files/patch-mp3_player.c +++ b/games/fuhquake/files/patch-mp3_player.c @@ -8,7 +8,7 @@ #include -cvar_t mp3_dir = {"mp3_xmms_dir", "/usr/local/bin"}; -+cvar_t mp3_dir = {"mp3_xmms_dir", X11BASE "/bin"}; ++cvar_t mp3_dir = {"mp3_xmms_dir", LOCALBASE "/bin"}; cvar_t mp3_xmms_session = {"mp3_xmms_session", "0"}; #endif diff --git a/games/galaxymage/Makefile b/games/galaxymage/Makefile index fdaeb97..53b55e2 100644 --- a/games/galaxymage/Makefile +++ b/games/galaxymage/Makefile @@ -33,7 +33,7 @@ RUN_DEPENDS+= ${PYTHON_SITELIBDIR}/psyco/_psyco.so:${PORTSDIR}/devel/py-psyco post-configure: @${REINPLACE_CMD} -e 's@%%DATADIR%%@${DATADIR}@g' ${WRKSRC}/GalaxyMage.py ${WRKSRC}/src/Resources.py - @${REINPLACE_CMD} -e 's@%%X11BASE%%@${X11BASE}@g' ${WRKSRC}/src/Translate.py + @${REINPLACE_CMD} -e 's@%%LOCALBASE%%@${LOCALBASE}@g' ${WRKSRC}/src/Translate.py do-install: @${INSTALL_SCRIPT} ${WRKSRC}/GalaxyMage.py ${PREFIX}/bin/GalaxyMage diff --git a/games/galaxymage/files/patch-src_Translate.py b/games/galaxymage/files/patch-src_Translate.py index dce3e47..f6d7d0e 100644 --- a/games/galaxymage/files/patch-src_Translate.py +++ b/games/galaxymage/files/patch-src_Translate.py @@ -5,7 +5,7 @@ def getLanguageDict(self,lang): - return gettext.translation('GalaxyMage',os.path.join(os.getcwd(),'locale'), languages=[lang]) -+ return gettext.translation('GalaxyMage',os.path.join('%%X11BASE%%/share/locale'), languages=[lang]) ++ return gettext.translation('GalaxyMage',os.path.join('%%LOCALBASE%%/share/locale'), languages=[lang]) def __init__(self): #fill our language dictionnary with each language diff --git a/games/gcompris/Makefile b/games/gcompris/Makefile index fd78e68..c14a23b 100644 --- a/games/gcompris/Makefile +++ b/games/gcompris/Makefile @@ -1,3 +1,4 @@ + # New ports collection makefile for: gcompris2 # Date created: 23 April 2003 # Whom: Martin Klaffenboeck @@ -7,10 +8,9 @@ PORTNAME= gcompris DISTVERSION= 8.3.2-2 -PORTREVISION= 4 +PORTREVISION= 5 CATEGORIES= games gnome -MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} -MASTER_SITE_SUBDIR= gcompris +MASTER_SITES= SF/gcompris MAINTAINER= gnome@FreeBSD.org COMMENT= Gnome2 educational games and activities for kids ages 2 to 10 @@ -26,7 +26,6 @@ RUN_DEPENDS= gnuchess:${PORTSDIR}/games/gnuchess \ ${PYTHON_SITELIBDIR}/pysqlite2/__init__.py:${PORTSDIR}/databases/py-pysqlite20 WRKSRC= ${WRKDIR}/${PORTNAME}-8.3.2 -USE_X_PREFIX= yes USE_GMAKE= yes USE_GETTEXT= yes GNU_CONFIGURE= yes diff --git a/games/geki2/Makefile b/games/geki2/Makefile index daaa559..dbf67d6 100644 --- a/games/geki2/Makefile +++ b/games/geki2/Makefile @@ -16,12 +16,9 @@ DISTNAME= ${PORTNAME}-KXL-${PORTVERSION} MAINTAINER= edwin@mavetju.org COMMENT= 2D length scroll shooting game -BUILD_DEPENDS= ${X11BASE}/include/KXL.h:${PORTSDIR}/devel/kxl -RUN_DEPENDS= ${X11BASE}/lib/libKXL-1.1.7.so:${PORTSDIR}/devel/kxl +BUILD_DEPENDS= ${LOCALBASE}/include/KXL.h:${PORTSDIR}/devel/kxl +RUN_DEPENDS= ${LOCALBASE}/lib/libKXL-1.1.7.so:${PORTSDIR}/devel/kxl GNU_CONFIGURE= yes -CONFIGURE_ARGS= --x-includes=${X11BASE}/include \ - --x-libraries=${X11BASE}/lib - .include diff --git a/games/geki3/Makefile b/games/geki3/Makefile index 43fa1a2..484d231 100644 --- a/games/geki3/Makefile +++ b/games/geki3/Makefile @@ -16,12 +16,9 @@ DISTNAME= ${PORTNAME}-KXL-${PORTVERSION} MAINTAINER= edwin@mavetju.org COMMENT= 2D horizontal scroll shooting game -BUILD_DEPENDS= ${X11BASE}/include/KXL.h:${PORTSDIR}/devel/kxl -RUN_DEPENDS= ${X11BASE}/lib/libKXL-1.1.7.so:${PORTSDIR}/devel/kxl +BUILD_DEPENDS= ${LOCALBASE}/include/KXL.h:${PORTSDIR}/devel/kxl +RUN_DEPENDS= ${LOCALBASE}/lib/libKXL-1.1.7.so:${PORTSDIR}/devel/kxl GNU_CONFIGURE= yes -CONFIGURE_ARGS= --x-includes=${X11BASE}/include \ - --x-libraries=${X11BASE}/lib - .include diff --git a/games/gemdropx/Makefile b/games/gemdropx/Makefile index c16a042..5b0761e 100644 --- a/games/gemdropx/Makefile +++ b/games/gemdropx/Makefile @@ -7,7 +7,7 @@ PORTNAME= gemdropx PORTVERSION= 0.9 -PORTREVISION= 5 +PORTREVISION= 6 CATEGORIES= games MASTER_SITES= ftp://ftp.billsgames.com/unix/x/gemdropx/src/ @@ -16,7 +16,6 @@ COMMENT= An interesting one-player puzzle game for X USE_SDL= mixer USE_GMAKE= yes -USE_X_PREFIX= yes MAKE_ENV= JOY=NO \ SDL_CONFIG="${SDL_CONFIG}" diff --git a/games/ggz-sdl-games/Makefile b/games/ggz-sdl-games/Makefile index 91a569b..49e1d8a 100644 --- a/games/ggz-sdl-games/Makefile +++ b/games/ggz-sdl-games/Makefile @@ -13,15 +13,15 @@ CATEGORIES= games MAINTAINER= yinjieh@csie.nctu.edu.tw COMMENT= The GGZ Gaming Zone - SDL-based games -USE_GL= yes +USE_GL= gl USE_SDL= image mixer sdl ttf GNU_CONFIGURE= yes CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}" CONFIGURE_ARGS= --disable-debug USE_GGZ= client -CPPFLAGS= -I${LOCALBASE}/include -I${X11BASE}/include ${PTHREAD_CFLAGS} -LDFLAGS= -L${LOCALBASE}/lib -L${X11BASE}/lib ${PTHREAD_LIBS} +CPPFLAGS= -I${LOCALBASE}/include ${PTHREAD_CFLAGS} +LDFLAGS= -L${LOCALBASE}/lib ${PTHREAD_LIBS} post-install: ${INSTALL_DATA} ${WRKSRC}/geekgame/module.dsc ${PREFIX}/share/ggz/geekgame.dsc diff --git a/games/gillo/Makefile b/games/gillo/Makefile index b4b0e8e..c24ef87 100644 --- a/games/gillo/Makefile +++ b/games/gillo/Makefile @@ -9,19 +9,18 @@ PORTNAME= gillo DISTVERSION= 1.0beta1 PORTREVISION= 3 CATEGORIES= games -MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} -MASTER_SITE_SUBDIR= ${PORTNAME} +MASTER_SITES= SF DISTNAME= ${PORTNAME}-${DISTVERSION}-src MAINTAINER= ports@FreeBSD.org COMMENT= Players are cars throwing a magnetic fuzzy ball into a goal BUILD_DEPENDS= ${JAM}:${PORTSDIR}/devel/jam \ - ${X11BASE}/lib/libode.a:${PORTSDIR}/devel/ode \ - ${X11BASE}/lib/libplibsg.a:${PORTSDIR}/x11-toolkits/plib + ${LOCALBASE}/lib/libode.a:${PORTSDIR}/devel/ode \ + ${LOCALBASE}/lib/libplibsg.a:${PORTSDIR}/x11-toolkits/plib USE_BZIP2= yes -USE_GL= yes +USE_GL= gl USE_SDL= yes WRKSRC= ${WRKDIR}/${PORTNAME} @@ -35,7 +34,7 @@ post-patch: ${WRKSRC}/src/Jamfile do-build: - cd ${WRKSRC} && ${SETENV} "C++=${CC}" "X11BASE=${X11BASE}" \ + cd ${WRKSRC} && ${SETENV} "C++=${CC}" "LOCALBASE=${LOCALBASE}" \ "CFLAGS=${CFLAGS} -DDATADIR=\\\"${PREFIX}/share\\\"" \ ${JAM} -dx -sPREFIX=${PREFIX} diff --git a/games/gillo/files/patch-Jamrules b/games/gillo/files/patch-Jamrules index 195a5d6..e7e8e2c 100644 --- a/games/gillo/files/patch-Jamrules +++ b/games/gillo/files/patch-Jamrules @@ -8,7 +8,7 @@ -if $(DEBUG) { CCFLAGS += -g -O0 -DDEBUG ; } -else CCFLAGS += -O3 ; +CCFLAGS += $(CFLAGS) %%SDL_CFLAGS%% ; -+HDRS = $(X11BASE)/include ; ++HDRS = $(LOCALBASE)/include ; +#if $(DEBUG) { CCFLAGS += -g -O0 -DDEBUG ; } +#else CCFLAGS += -O3 ; C++FLAGS += $(CCFLAGS) ; diff --git a/games/gillo/files/patch-src_Jamfile b/games/gillo/files/patch-src_Jamfile index c81bffa..0b9f4e2 100644 --- a/games/gillo/files/patch-src_Jamfile +++ b/games/gillo/files/patch-src_Jamfile @@ -5,6 +5,6 @@ Main gillo3 : camera.cpp cameraball.cpp cameratrack.cpp car.cpp context.cpp cube.cpp entity.cpp event.cpp field.cpp game.cpp goal.cpp goalkeeper.cpp img.cpp main.cpp menu.cpp omnicar.cpp overlay.cpp player.cpp pwrup.cpp rect.cpp simpleball.cpp sound.cpp video.cpp viewport.cpp prefix.c iballpicker.cpp ; -LINKLIBS on gillo3 = -lpthread -lGL -lGLU -lSDL -lode -lplibssgaux -lplibssg -lplibsg -lplibul -lplibsl ; -+LINKLIBS on gillo3 = -lGL -lGLU -lode -lplibssgaux -lplibssg -lplibsg -lplibul -lplibsl -L$(X11BASE)/lib %%SDL_LDFLAGS%% ; ++LINKLIBS on gillo3 = -lGL -lGLU -lode -lplibssgaux -lplibssg -lplibsg -lplibul -lplibsl -L$(LOCALBASE)/lib %%SDL_LDFLAGS%% ; InstallBin $(BINDIR) : gillo3$(SUFEXE) ; diff --git a/games/gl-117/Makefile b/games/gl-117/Makefile index 8ee4bf9..f6159dc 100644 --- a/games/gl-117/Makefile +++ b/games/gl-117/Makefile @@ -10,22 +10,16 @@ PORTNAME= gl-117 PORTVERSION= 1.3.2 PORTREVISION= 4 CATEGORIES= games -MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} -MASTER_SITE_SUBDIR= ${PORTNAME} +MASTER_SITES= SF DISTVERSIONSUFFIX= -src MAINTAINER= erik@smluc.org COMMENT= An OpenGL & SDL action flight simulator -LIB_DEPENDS= glut.4:${PORTSDIR}/graphics/libglut - -USE_SDL= mixer sdl -USE_GL= yes +USE_GL= glut USE_BZIP2= yes GNU_CONFIGURE= yes -CONFIGURE_ARGS= --x-include=${X11BASE}/include \ - --x-libraries=${X11BASE}/lib \ - --with-opengl-dir=${X11BASE} +CONFIGURE_ARGS= --with-opengl-dir=${LOCALBASE} CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \ LDFLAGS="-L${LOCALBASE}/lib ${PTHREAD_LIBS}" diff --git a/games/glasteroids/Makefile b/games/glasteroids/Makefile index 5c4e326..8fa2331 100644 --- a/games/glasteroids/Makefile +++ b/games/glasteroids/Makefile @@ -7,7 +7,7 @@ PORTNAME= glasteroids PORTVERSION= 1.0 -PORTREVISION= 4 +PORTREVISION= 5 CATEGORIES= games MASTER_SITES= http://www.honors.montana.edu/~jjc/Glasteroids/ DISTNAME= Glasteriods @@ -15,12 +15,9 @@ DISTNAME= Glasteriods MAINTAINER= ports@FreeBSD.org COMMENT= 3D Asteroids game for X Window System -LIB_DEPENDS= glut.4:${PORTSDIR}/graphics/libglut - WRKSRC= ${WRKDIR}/Glasteroids -USE_X_PREFIX= yes -USE_GL= yes +USE_GL= glut MAKE_ENV= PTHREAD_CFLAGS="${PTHREAD_CFLAGS}" \ PTHREAD_LIBS="${PTHREAD_LIBS}" MAKEFILE= ${FILESDIR}/Makefile.FreeBSD diff --git a/games/glasteroids/files/Makefile.FreeBSD b/games/glasteroids/files/Makefile.FreeBSD index 73f971e..b023c00 100644 --- a/games/glasteroids/files/Makefile.FreeBSD +++ b/games/glasteroids/files/Makefile.FreeBSD @@ -10,8 +10,8 @@ PROG = Glasteroids LIBS = -lglut -lGLU -lGL -lXmu -lX11 -lXext -lm -lXi ${PTHREAD_LIBS} -INCDIR = -I${X11BASE}/include -LIBDIR = -L${X11BASE}/lib +INCDIR = -I${LOCALBASE}/include +LIBDIR = -L${LOCALBASE}/lib PREFIX ?= /usr/X11R6 X11BASE ?= /usr/X11R6 diff --git a/games/glaxium/Makefile b/games/glaxium/Makefile index ec386e4..926bcc0 100644 --- a/games/glaxium/Makefile +++ b/games/glaxium/Makefile @@ -30,7 +30,7 @@ MAN6= glaxium.6 USE_DOS2UNIX=variables.cpp scene.cpp post-patch: - @${REINPLACE_CMD} -e 's|/usr/X11R6|${X11BASE}|g; \ + @${REINPLACE_CMD} -e 's|/usr/X11R6|${LOCALBASE}|g; \ s|/games/glaxium|/glaxium|g' ${WRKSRC}/configure @${REINPLACE_CMD} -e 's|gcc -g -o|$$(CC) -o|g ; \ s|/games/glaxium|/glaxium|g' ${WRKSRC}/Makefile.in diff --git a/games/glbsp/files/patch-GUI_unx.mak b/games/glbsp/files/patch-GUI_unx.mak index c7eb739..12d06d0 100644 --- a/games/glbsp/files/patch-GUI_unx.mak +++ b/games/glbsp/files/patch-GUI_unx.mak @@ -7,7 +7,7 @@ -FLTK_PREFIX=../fltk-1.1.6 -FLTK_CFLAGS=-I$(FLTK_PREFIX) -I$(FLTK_PREFIX)/zlib -FLTK_LIBS=-L$(FLTK_PREFIX)/lib -lfltk_images -lfltk_png -lfltk_z -lfltk_jpeg \ -+FLTK_PREFIX=${X11BASE} ++FLTK_PREFIX=${LOCALBASE} +FLTK_CFLAGS=-I$(FLTK_PREFIX)/include +FLTK_LIBS=-L$(FLTK_PREFIX)/lib -lfltk_images \ -lfltk -lX11 -lXext @@ -20,7 +20,7 @@ +CFLAGS+=-O2 -Wall -DGLBSP_GUI -DUNIX -DINLINE_G=inline $(FLTK_CFLAGS) CXXFLAGS=$(CFLAGS) -LDFLAGS=-L/usr/X11R6/lib -+LDFLAGS=-L${X11BASE}/lib ++LDFLAGS=-L${LOCALBASE}/lib LIBS=-lm $(FLTK_LIBS) OBJS=$(SYSDIR)/main.o \ diff --git a/games/glife/Makefile b/games/glife/Makefile index 46f6c01..5beb993 100644 --- a/games/glife/Makefile +++ b/games/glife/Makefile @@ -7,16 +7,14 @@ PORTNAME= glife PORTVERSION= 0.2.1 -PORTREVISION= 5 +PORTREVISION= 6 CATEGORIES= games gnome -MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} -MASTER_SITE_SUBDIR= ${PORTNAME} +MASTER_SITES= SF DISTNAME= gLife-${PORTVERSION} MAINTAINER= ports@FreeBSD.org COMMENT= Conway's Game of Life for GNOME -USE_X_PREFIX= yes GNU_CONFIGURE= yes USE_GNOME= gnomeprefix gnomehack libglade CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" LDFLAGS="-L${LOCALBASE}/lib" diff --git a/games/glmaze/files/patch-Makefile b/games/glmaze/files/patch-Makefile index e6423f4..6d9e0ab 100644 --- a/games/glmaze/files/patch-Makefile +++ b/games/glmaze/files/patch-Makefile @@ -28,11 +28,11 @@ .c.o: - $(CC) -DVERSION=\"$(VERSION)\" $(SDL_FLAGS) -c -o $@ $< -+ $(CC) $(CFLAGS) -I${X11BASE}/include -DVERSION=\"$(VERSION)\" $(SDL_FLAGS) -c -o $@ $< ++ $(CC) $(CFLAGS) -I${LOCALBASE}/include -DVERSION=\"$(VERSION)\" $(SDL_FLAGS) -c -o $@ $< glmaze: $(OBJECTS) - $(CC) $(OBJECTS) -o $@ $(SDL_LIBS) -lGL -lGLU -lm -+ $(CC) $(LDFLAGS) $(OBJECTS) -o $@ -L${X11BASE}/lib $(SDL_LIBS) -lGL -lGLU -lm ++ $(CC) $(LDFLAGS) $(OBJECTS) -o $@ -L${LOCALBASE}/lib $(SDL_LIBS) -lGL -lGLU -lm clean: @echo Cleaning up... diff --git a/games/glob2/Makefile b/games/glob2/Makefile index 9c8bee1..d1b548c 100644 --- a/games/glob2/Makefile +++ b/games/glob2/Makefile @@ -22,12 +22,12 @@ LIB_DEPENDS= vorbis.4:${PORTSDIR}/audio/libvorbis \ freetype.9:${PORTSDIR}/print/freetype2 USE_SDL= image net sdl ttf -USE_GL= yes +USE_GL= gl USE_GMAKE= yes USE_SCONS= yes SCONS_BUILDENV= ${SCONS_ENV} -LINKFLAGS= ${PTHREAD_LIBS} -L${LOCALBASE}/lib -L${X11BASE}/lib -CFLAGS+= ${PTHREAD_CFLAGS} -I${LOCALBASE}/include -I${X11BASE}/include +LINKFLAGS= ${PTHREAD_LIBS} -L${LOCALBASE}/lib +CFLAGS+= ${PTHREAD_CFLAGS} -I${LOCALBASE}/include .include diff --git a/games/glpuzzle/Makefile b/games/glpuzzle/Makefile index da193d0..aaac10f 100644 --- a/games/glpuzzle/Makefile +++ b/games/glpuzzle/Makefile @@ -20,12 +20,12 @@ LIB_DEPENDS= png.5:${PORTSDIR}/graphics/png \ jpeg.9:${PORTSDIR}/graphics/jpeg USE_SDL= sdl mixer -USE_GL= yes +USE_GL= gl USE_GMAKE= yes MAKE_ENV= CXX="${CXX}" \ - CPPFLAGS="`${SDL_CONFIG} --cflags` -I${X11BASE}/include" \ - LDFLAGS="`${SDL_CONFIG} --libs` -L${X11BASE}/lib" + CPPFLAGS="`${SDL_CONFIG} --cflags` -I${LOCALBASE}/include" \ + LDFLAGS="`${SDL_CONFIG} --libs` -L${LOCALBASE}/lib" post-patch: .for i in font image puzzles sound diff --git a/games/gltron/Makefile b/games/gltron/Makefile index 2232542..a7ba939 100644 --- a/games/gltron/Makefile +++ b/games/gltron/Makefile @@ -9,8 +9,7 @@ PORTNAME= gltron PORTVERSION= 0.70 PORTREVISION= 6 CATEGORIES= games -MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} -MASTER_SITE_SUBDIR= ${PORTNAME} +MASTER_SITES= SF EXTRACT_SUFX= -source.tar.gz MAINTAINER= lx@FreeBSD.org @@ -18,7 +17,7 @@ COMMENT= A 3D worm game for two players for X Window System LIB_DEPENDS= png.5:${PORTSDIR}/graphics/png -USE_GL= yes +USE_GL= gl USE_SDL= sdl sound USE_GMAKE= yes GNU_CONFIGURE= yes @@ -26,8 +25,8 @@ CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL} CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}" CONFIGURE_ARGS= --disable-warn -CPPFLAGS= -I${LOCALBASE}/include -I${X11BASE}/include ${PTHREAD_CFLAGS} -LDFLAGS= -L${LOCALBASE}/lib -L${X11BASE}/lib ${PTHREAD_LIBS} +CPPFLAGS= -I${LOCALBASE}/include ${PTHREAD_CFLAGS} +LDFLAGS= -L${LOCALBASE}/lib ${PTHREAD_LIBS} .if defined(WITH_SDL_NET) USE_SDL+= net diff --git a/games/gnmm/Makefile b/games/gnmm/Makefile index 7752085..be3d075 100644 --- a/games/gnmm/Makefile +++ b/games/gnmm/Makefile @@ -7,10 +7,9 @@ PORTNAME= gnmm PORTVERSION= 0.1.2 -PORTREVISION= 5 +PORTREVISION= 6 CATEGORIES= games gnome -MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} -MASTER_SITE_SUBDIR= ${PORTNAME} +MASTER_SITES= SF DISTNAME= ${PORTNAME}-${PORTVERSION} DIST_SUBDIR= gnome @@ -19,7 +18,6 @@ COMMENT= A "nine mens' morris" implementation for the GNOME Desktop Environment USE_GETTEXT= yes USE_ICONV= yes -USE_X_PREFIX= yes USE_GMAKE= yes USE_GNOME= gnomeprefix gnomehack gnomelibs gdkpixbuf diff --git a/games/gno3dtet/Makefile b/games/gno3dtet/Makefile index 6160023..6a1266e 100644 --- a/games/gno3dtet/Makefile +++ b/games/gno3dtet/Makefile @@ -7,7 +7,7 @@ PORTNAME= gno3dtet PORTVERSION= 1.96.1 -PORTREVISION= 3 +PORTREVISION= 4 CATEGORIES= games gnome MASTER_SITES= http://eseb.net/ftp/gno3dtet/ EXTRACT_SUFX= .tgz @@ -17,7 +17,6 @@ COMMENT= GNOME version of the classic 3D-ified T*tris EXTRACT_DEPENDS=intltoolize:${PORTSDIR}/textproc/intltool -USE_X_PREFIX= yes USE_GNOME= gnomehack gnomeprefix gnometarget intlhack libgnomeui librsvg2 USE_GMAKE= yes USE_AUTOTOOLS= autoheader:261 automake:19 aclocal:19 autoconf:261 diff --git a/games/gnome-games-extra-data/Makefile b/games/gnome-games-extra-data/Makefile index 689969d..e1682a0 100644 --- a/games/gnome-games-extra-data/Makefile +++ b/games/gnome-games-extra-data/Makefile @@ -8,6 +8,7 @@ PORTNAME= gnome-games-extra-data PORTVERSION= 2.22.0 +PORTREVISION= 1 CATEGORIES= games gnome MASTER_SITES= ${MASTER_SITE_GNOME} MASTER_SITE_SUBDIR= sources/gnome-games-extra-data/${PORTVERSION:C/^([0-9]+\.[0-9]+).*/\1/} @@ -20,7 +21,6 @@ RUN_DEPENDS= ${LOCALBASE}/bin/sol:${PORTSDIR}/games/gnome-games USE_BZIP2= yes USE_GMAKE= yes -USE_XLIB= yes GNU_CONFIGURE= yes USE_GNOME= gnomehack gnomeprefix gnometarget CONFIGURE_ARGS= CPPFLAGS="-I${LOCALBASE}/include" \ diff --git a/games/gnome-games/Makefile b/games/gnome-games/Makefile index a8113c9..314e9c9 100644 --- a/games/gnome-games/Makefile +++ b/games/gnome-games/Makefile @@ -8,6 +8,7 @@ PORTNAME= gnome-games PORTVERSION= 2.22.1.1 +PORTREVISION= 1 CATEGORIES= games gnome MASTER_SITES= GNOME DIST_SUBDIR= gnome2 @@ -23,7 +24,6 @@ USE_PYTHON= yes USE_GETTEXT= yes INSTALLS_OMF= yes INSTALLS_ICONS= yes -USE_XLIB= yes USE_GMAKE= yes USE_GNOME= gnomeprefix gnomehack intlhack libgnomeui \ librsvg2 desktopfileutils pygnomedesktop gnomedocutils diff --git a/games/gnomeattacks/Makefile b/games/gnomeattacks/Makefile index 05856f7..583f8c5 100644 --- a/games/gnomeattacks/Makefile +++ b/games/gnomeattacks/Makefile @@ -7,15 +7,13 @@ PORTNAME= gnomeattacks PORTVERSION= 0.3 -PORTREVISION= 7 +PORTREVISION= 8 CATEGORIES= games gnome -MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} -MASTER_SITE_SUBDIR= ${PORTNAME} +MASTER_SITES= SF MAINTAINER= ports@FreeBSD.org COMMENT= GNOME 2 game featuring a bizarre flying GNOME logo -USE_X_PREFIX= yes GNU_CONFIGURE= yes USE_GMAKE= yes USE_GNOME= gnomehack gnomeprefix gnomevfs2 libgnomeui diff --git a/games/gnomebreakout/Makefile b/games/gnomebreakout/Makefile index 5b94b6c..2c3a7c3 100644 --- a/games/gnomebreakout/Makefile +++ b/games/gnomebreakout/Makefile @@ -7,7 +7,7 @@ PORTNAME= gnomebreakout PORTVERSION= 0.5.3 -PORTREVISION= 5 +PORTREVISION= 6 CATEGORIES= games gnome MASTER_SITES= http://www.users.on.net/~mipearson/ DISTNAME= gnome-breakout-${PORTVERSION} @@ -15,7 +15,6 @@ DISTNAME= gnome-breakout-${PORTVERSION} MAINTAINER= ports@FreeBSD.org COMMENT= GNOME version of the classic breakout game -USE_X_PREFIX= yes USE_GNOME= gnomehack gnomeprefix libgnomeui GNU_CONFIGURE= yes CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \ diff --git a/games/gnomechess/Makefile b/games/gnomechess/Makefile index 87a8c7c..554fbe8 100644 --- a/games/gnomechess/Makefile +++ b/games/gnomechess/Makefile @@ -7,7 +7,7 @@ PORTNAME= gnomechess PORTVERSION= 0.3.3 -PORTREVISION= 5 +PORTREVISION= 6 CATEGORIES= games gnome MASTER_SITES= ${MASTER_SITE_GNOME} MASTER_SITE_SUBDIR= sources/gnome-chess/0.3 @@ -19,7 +19,6 @@ COMMENT= A GUI chess front-end to crafy, for the GNOME Desktop Environment BUILD_DEPENDS= crafty:${PORTSDIR}/games/crafty RUN_DEPENDS= crafty:${PORTSDIR}/games/crafty -USE_X_PREFIX= yes USE_GNOME= gnomecanvas gnomehack gnomeprefix libglade USE_GMAKE= yes INSTALLS_OMF= yes diff --git a/games/gnomermind/Makefile b/games/gnomermind/Makefile index 0f941b4..2d5030c 100644 --- a/games/gnomermind/Makefile +++ b/games/gnomermind/Makefile @@ -7,16 +7,14 @@ PORTNAME= gnomermind PORTVERSION= 1.0.1 -PORTREVISION= 4 +PORTREVISION= 5 CATEGORIES= games gnome -MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} -MASTER_SITE_SUBDIR= ${PORTNAME} +MASTER_SITES= SF MAINTAINER= ports@FreeBSD.org COMMENT= A puzzle game for Gnome, loosely based on the classic MasterMind game USE_BZIP2= yes -USE_X_PREFIX= yes USE_GNOME= gdkpixbuf gnomehack gnomelibs gnomeprefix GNU_CONFIGURE= yes CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \ diff --git a/games/gnomesudoku/Makefile b/games/gnomesudoku/Makefile index 0493165..ade9d49 100644 --- a/games/gnomesudoku/Makefile +++ b/games/gnomesudoku/Makefile @@ -7,10 +7,9 @@ PORTNAME= gnomesudoku PORTVERSION= 0.5.0 -PORTREVISION= 4 +PORTREVISION= 5 CATEGORIES= games gnome -MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} -MASTER_SITE_SUBDIR= gnome-sudoku +MASTER_SITES= SF/gnome-sudoku DISTNAME= gnome-sudoku-${PORTVERSION} MAINTAINER= tg@FreeBSD.org @@ -21,13 +20,12 @@ RUN_DEPENDS= ${PYTHON_SITELIBDIR}/Numeric/Numeric.py:${PORTSDIR}/math/py-numeric .if !defined(DISPLAY) BUILD_DEPENDS+= Xvfb:${X_VFBSERVER_PORT} \ - ${X11BASE}/lib/X11/fonts/misc/8x13O.pcf.gz:${X_FONTS_MISC_PORT} + ${LOCALBASE}/lib/X11/fonts/misc/8x13O.pcf.gz:${X_FONTS_MISC_PORT} .if !defined(PACKAGE_BUILDING) MAKE_ENV+= DISPLAY="localhost:1001" .endif .endif -USE_X_PREFIX= yes USE_PYTHON= 2.4+ USE_PYDISTUTILS=yes USE_GNOME= gnomehack gnomeprefix pygnome2 pygnomedesktop @@ -40,7 +38,7 @@ pre-configure: ${CAT} ${WRKDIR}/.Xvfb.pid | ${XARGS} kill || ${TRUE} ; \ ${RM} -f ${WRKDIR}/.Xvfb.pid ; \ fi - ${X11BASE}/bin/Xvfb :1001 -screen 0 800x600x24 > /dev/null 2>&1 & ${ECHO} $$! > ${WRKDIR}/.Xvfb.pid + ${LOCALBASE}/bin/Xvfb :1001 -screen 0 800x600x24 > /dev/null 2>&1 & ${ECHO} $$! > ${WRKDIR}/.Xvfb.pid @sleep 5 post-configure: @@ -54,7 +52,7 @@ pre-install: ${CAT} ${WRKDIR}/.Xvfb.pid | ${XARGS} kill || ${TRUE} ; \ ${RM} -f ${WRKDIR}/.Xvfb.pid ; \ fi - ${X11BASE}/bin/Xvfb :1001 -screen 0 800x600x24 > /dev/null 2>&1 & ${ECHO} $$! > ${WRKDIR}/.Xvfb.pid + ${LOCALBASE}/bin/Xvfb :1001 -screen 0 800x600x24 > /dev/null 2>&1 & ${ECHO} $$! > ${WRKDIR}/.Xvfb.pid @sleep 5 post-install: diff --git a/games/gnurobots/Makefile b/games/gnurobots/Makefile index 40d3b6f..69a0b73 100644 --- a/games/gnurobots/Makefile +++ b/games/gnurobots/Makefile @@ -7,7 +7,7 @@ PORTNAME= gnurobots PORTVERSION= 1.0D -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= games MASTER_SITES= ${MASTER_SITE_GNU} MASTER_SITE_SUBDIR= gnurobots @@ -18,8 +18,7 @@ COMMENT= GNU diversion wherein Scheme-coded robots explore a world LIB_DEPENDS= guile.18:${PORTSDIR}/lang/guile GNU_CONFIGURE= yes -USE_XPM= yes -USE_XLIB= yes +USE_XORG= x11 xpm pre-patch: ${CP} ${WRKSRC}/getopt/getopt.h ${WRKSRC}/include diff --git a/games/golddig/files/patch-ad b/games/golddig/files/patch-ad index cddd087..6efae3fb 100644 --- a/games/golddig/files/patch-ad +++ b/games/golddig/files/patch-ad @@ -29,10 +29,10 @@ #CFLAGS = -O2 #CFLAGS = -O -CFLAGS = -O -W -Wreturn-type -Wunused -g -finline-functions -+CFLAGS += -W -Wreturn-type -Wunused -finline-functions -I${X11BASE}/include ++CFLAGS += -W -Wreturn-type -Wunused -finline-functions -I${LOCALBASE}/include #CFLAGS = -g -LDFLAGS = -g -+LDFLAGS = -L ${X11BASE}/lib ++LDFLAGS = -L ${LOCALBASE}/lib all: ${GAME} ${EDITOR} diff --git a/games/goonies/files/patch-build-linux-Makefile b/games/goonies/files/patch-build-linux-Makefile index 4589a37..e4155eb 100644 --- a/games/goonies/files/patch-build-linux-Makefile +++ b/games/goonies/files/patch-build-linux-Makefile @@ -14,8 +14,8 @@ -CFLAGS = -g3 -O3 -Wall `sdl-config --cflags` -I/usr/local/include/SDL -I/usr/X11R6/include -LDFLAGS = `sdl-config --libs` -L/usr/X11R6/lib/ -lSDL_image -lSDL_mixer -lSDL_sound -lGL -lGLU +CC ?= c++ -+CFLAGS += -Wall `${SDL_CONFIG} --cflags` -I${X11BASE}/include -+LDFLAGS += `${SDL_CONFIG} --libs` -L${X11BASE}/lib -lSDL_image -lSDL_mixer -lGL -lGLU ++CFLAGS += -Wall `${SDL_CONFIG} --cflags` -I${LOCALBASE}/include ++LDFLAGS += `${SDL_CONFIG} --libs` -L${LOCALBASE}/lib -lSDL_image -lSDL_mixer -lGL -lGLU RM = rm -f CP = cp -r LN = ln -s diff --git a/games/gracer/Makefile b/games/gracer/Makefile index 8c030e6..c226fca 100644 --- a/games/gracer/Makefile +++ b/games/gracer/Makefile @@ -9,28 +9,27 @@ PORTNAME= gracer PORTVERSION= 0.1.5 PORTREVISION= 4 CATEGORIES= games -MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} -MASTER_SITE_SUBDIR= ${PORTNAME} +MASTER_SITES= SF MAINTAINER= nox@FreeBSD.org COMMENT= A 3D motor sport simulator -BUILD_DEPENDS= ${X11BASE}/lib/libplibsl.a:${PORTSDIR}/x11-toolkits/plib +BUILD_DEPENDS= ${LOCALBASE}/lib/libplibsl.a:${PORTSDIR}/x11-toolkits/plib LIB_DEPENDS= ungif.5:${PORTSDIR}/graphics/libungif \ png.5:${PORTSDIR}/graphics/png \ jpeg.9:${PORTSDIR}/graphics/jpeg \ - tcl82.1:${PORTSDIR}/lang/tcl82 \ - glut.4:${PORTSDIR}/graphics/libglut + tcl82.1:${PORTSDIR}/lang/tcl82 +USE_GL= glut USE_PERL5_BUILD=yes USE_AUTOTOOLS= autoconf:213 CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include \ -I${LOCALBASE}/include/tcl8.2 \ - -I${X11BASE}/include" \ - LIBS="-L${LOCALBASE}/lib -L${X11BASE}/lib" + -I${LOCALBASE}/include" \ + LIBS="-L${LOCALBASE}/lib -L${LOCALBASE}/lib" USE_GMAKE= yes # for plib (sound): -CONFIGURE_ARGS+= --with-plib=${X11BASE}/plib +CONFIGURE_ARGS+= --with-plib=${LOCALBASE}/plib MAN6= gracer.6 diff --git a/games/grande/Makefile b/games/grande/Makefile index ac521a3..c135de1f 100644 --- a/games/grande/Makefile +++ b/games/grande/Makefile @@ -7,7 +7,7 @@ PORTNAME= grande PORTVERSION= 0.6 -PORTREVISION= 3 +PORTREVISION= 4 CATEGORIES= games MASTER_SITES= http://kxl.orz.hm/download/ DISTNAME= ${PORTNAME}-KXL-${PORTVERSION} @@ -15,12 +15,11 @@ DISTNAME= ${PORTNAME}-KXL-${PORTVERSION} MAINTAINER= ports@FreeBSD.org COMMENT= A Zanac type game -BUILD_DEPENDS= ${X11BASE}/lib/libKXL-1.1.7.so:${PORTSDIR}/devel/kxl -RUN_DEPENDS= ${X11BASE}/lib/libKXL-1.1.7.so:${PORTSDIR}/devel/kxl +BUILD_DEPENDS= ${LOCALBASE}/lib/libKXL-1.1.7.so:${PORTSDIR}/devel/kxl +RUN_DEPENDS= ${LOCALBASE}/lib/libKXL-1.1.7.so:${PORTSDIR}/devel/kxl NO_CDROM= Possible copyright infringement -USE_X_PREFIX= yes USE_GMAKE= yes GNU_CONFIGURE= yes MAKE_ARGS= ACLOCAL="${TRUE}" AUTOCONF="${TRUE}" AUTOMAKE="${TRUE}" \ diff --git a/games/gretools/Makefile b/games/gretools/Makefile index 9fa431a..4567777 100644 --- a/games/gretools/Makefile +++ b/games/gretools/Makefile @@ -7,7 +7,7 @@ PORTNAME= gretools PORTVERSION= 1.2.4 -PORTREVISION= 5 +PORTREVISION= 6 CATEGORIES= games gnome MASTER_SITES= http://www.cs.utexas.edu/~arvindn/gretools/%SUBDIR%/ MASTER_SITE_SUBDIR= ${PORTVERSION:R} @@ -15,7 +15,6 @@ MASTER_SITE_SUBDIR= ${PORTVERSION:R} MAINTAINER= ports@FreeBSD.org COMMENT= GNOME vocabulary builder -USE_X_PREFIX= yes USE_GNOME= gnomehack gnomeprefix gnometarget pygnome2 USE_PYTHON= yes USE_GMAKE= yes diff --git a/games/gtetrinet/Makefile b/games/gtetrinet/Makefile index 9525f08..43cb696 100644 --- a/games/gtetrinet/Makefile +++ b/games/gtetrinet/Makefile @@ -6,7 +6,7 @@ PORTNAME= gtetrinet PORTVERSION= 0.7.11 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= games gnome ipv6 MASTER_SITES= ${MASTER_SITE_GNOME} MASTER_SITE_SUBDIR= sources/${PORTNAME}/${PORTVERSION:R} @@ -17,7 +17,6 @@ COMMENT= A version of the popular TetriNET multiplayer tetris clone USE_GETTEXT= yes USE_BZIP2= yes -USE_X_PREFIX= yes USE_GNOME= esound gnomehack gnomeprefix gnometarget libgnomeui USE_GMAKE= yes GNU_CONFIGURE= yes diff --git a/games/gtkabale/Makefile b/games/gtkabale/Makefile index ac84548..8509302 100644 --- a/games/gtkabale/Makefile +++ b/games/gtkabale/Makefile @@ -7,14 +7,13 @@ PORTNAME= gtkabale PORTVERSION= 0.3 -PORTREVISION= 3 +PORTREVISION= 4 CATEGORIES= games MASTER_SITES= http://freebsd.unixfreunde.de/sources/ MAINTAINER= ports@FreeBSD.org COMMENT= A lazy version of solitaire game -USE_X_PREFIX= yes USE_GNOME= imlib GNU_CONFIGURE= yes CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \ diff --git a/games/gtkatlantic/Makefile b/games/gtkatlantic/Makefile index a0d5c36..511828e 100644 --- a/games/gtkatlantic/Makefile +++ b/games/gtkatlantic/Makefile @@ -7,7 +7,7 @@ PORTNAME= gtkatlantic PORTVERSION= 0.4.2 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= games MASTER_SITES= http://gtkatlantic.gradator.net/downloads/v0.4/ @@ -18,7 +18,6 @@ USE_BZIP2= yes USE_GNOME= gtk20 GNU_CONFIGURE= yes USE_GMAKE= yes -USE_X_PREFIX= yes CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \ LDFLAGS="-L${LOCALBASE}/lib" diff --git a/games/gtkpool/Makefile b/games/gtkpool/Makefile index 32012f3..369d65b 100644 --- a/games/gtkpool/Makefile +++ b/games/gtkpool/Makefile @@ -7,7 +7,7 @@ PORTNAME= gtkpool PORTVERSION= 0.5.0 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= games MASTER_SITES= http://gtkpool.seul.org/ @@ -16,7 +16,6 @@ COMMENT= A 2D pool game using the GTK+ toolkit GNU_CONFIGURE= yes USE_GNOME= gtk12 -USE_X_PREFIX= yes post-patch: @${REINPLACE_CMD} -e 's,-O2 -O0 -Wall `gtk-config --cflags` -lgtk -lgdk -lglib -lm -lX11,${CXXFLAGS} `gtk-config --cflags` `gtk-config --libs`,' ${WRKSRC}/configure diff --git a/games/gtkradiant/files/patch-SConstruct b/games/gtkradiant/files/patch-SConstruct index 8e8575e..fa6ddeb 100644 --- a/games/gtkradiant/files/patch-SConstruct +++ b/games/gtkradiant/files/patch-SConstruct @@ -13,7 +13,7 @@ # there is a default hardcoded value, you can override on command line, those are saved between runs # we only handle strings -serialized=['CC', 'CXX', 'JOBS', 'BUILD', 'SETUP'] -+serialized=['CC', 'CXX', 'CCFLAGS', 'CXXFLAGS', 'LINKFLAGS', 'PTHREAD_LIBS', 'LOCALBASE', 'X11BASE', 'JOBS', 'BUILD', 'SETUP'] ++serialized=['CC', 'CXX', 'CCFLAGS', 'CXXFLAGS', 'LINKFLAGS', 'PTHREAD_LIBS', 'LOCALBASE', 'LOCALBASE', 'JOBS', 'BUILD', 'SETUP'] # help ------------------------------------------- @@ -60,8 +60,8 @@ + CCFLAGS += '-fPIC ' + CXXFLAGS += '-fPIC ' + CPPPATH.append(LOCALBASE + '/include') -+ CPPPATH.append(X11BASE + '/include') -+ LINKFLAGS += '-L' + LOCALBASE + '/lib ' + '-L' + X11BASE + '/lib ' ++ CPPPATH.append(LOCALBASE + '/include') ++ LINKFLAGS += '-L' + LOCALBASE + '/lib ' + '-L' + LOCALBASE + '/lib ' CPPPATH.append('libs') diff --git a/games/gtktetcolor/Makefile b/games/gtktetcolor/Makefile index e231c90..ef3ed12 100644 --- a/games/gtktetcolor/Makefile +++ b/games/gtktetcolor/Makefile @@ -7,7 +7,7 @@ PORTNAME= gtktetcolor PORTVERSION= 0.6.4 -PORTREVISION= 5 +PORTREVISION= 6 CATEGORIES= games gnome MASTER_SITES= ${MASTER_SITE_SUNSITE} \ http://www.dvgu.ru/ifit/~panov/gtktetcolor/ @@ -16,7 +16,6 @@ MASTER_SITE_SUBDIR= games MAINTAINER= ports@FreeBSD.org COMMENT= A game for GNOME that resembles well-known tetris and columns -USE_X_PREFIX= yes USE_GNOME= gnomehack gnomeprefix intlhack libgnomeui USE_GMAKE= yes GNU_CONFIGURE= yes diff --git a/games/gturing/Makefile b/games/gturing/Makefile index ed65b75..3ec9059 100644 --- a/games/gturing/Makefile +++ b/games/gturing/Makefile @@ -7,14 +7,13 @@ PORTNAME= gturing PORTVERSION= 0.1.1 -PORTREVISION= 11 +PORTREVISION= 12 CATEGORIES= games gnome MASTER_SITES= ftp://ftp.gnome.org/pub/gnome/sources/gturing/0.1/ MAINTAINER= ports@FreeBSD.org COMMENT= A simple turing machine simulator for GNOME 2 -USE_X_PREFIX= yes USE_GNOME= gnomeprefix gnomehack libgnomeui USE_GMAKE= yes USE_AUTOTOOLS= libtool:15 diff --git a/games/gweled/Makefile b/games/gweled/Makefile index 4eb3d7f..7923084 100644 --- a/games/gweled/Makefile +++ b/games/gweled/Makefile @@ -7,7 +7,7 @@ PORTNAME= gweled PORTVERSION= 0.7 -PORTREVISION= 5 +PORTREVISION= 6 CATEGORIES= games gnome MASTER_SITES= http://sebdelestaing.free.fr/gweled/Release/ @@ -16,7 +16,6 @@ COMMENT= GNOME version of the game called "Bejeweled" or "Diamond Mine" LIB_DEPENDS= mikmod.2:${PORTSDIR}/audio/libmikmod -USE_X_PREFIX= yes USE_GMAKE= yes USE_GNOME= gnomeprefix gnomehack gnomehier libgnomeui librsvg2 GNU_CONFIGURE= yes diff --git a/games/heretic/files/patch-aa b/games/heretic/files/patch-aa index a15e20f..8792e86 100644 --- a/games/heretic/files/patch-aa +++ b/games/heretic/files/patch-aa @@ -53,7 +53,7 @@ -CFLAGS = -Wall $(CDEFS.udp) $(COPT.arch) \ - -I. -I.. -I/usr/X11R6/include $(COPT.sound) $(COPT.opengl) +CFLAGS += $(CDEFS.udp) $(COPT.arch) \ -+ -I. -I.. -I${X11BASE}/include -I${LOCALBASE}/include $(COPT.sound) $(COPT.opengl) ++ -I. -I.. -I${LOCALBASE}/include -I${LOCALBASE}/include $(COPT.sound) $(COPT.opengl) # Uncomment the line below if you want to use original "[" and "]" keys # for inventory access, instead of "k" and "l". @@ -68,7 +68,7 @@ endif -X_LDFLAGS = -L/usr/X11R6/lib -+X_LDFLAGS = -L${X11BASE}/lib ++X_LDFLAGS = -L${LOCALBASE}/lib X11LIBS = -lXext -lX11 -GLLIBS = -lSDL -lpthread diff --git a/games/heroes/Makefile b/games/heroes/Makefile index 6ae0039..251a20c 100644 --- a/games/heroes/Makefile +++ b/games/heroes/Makefile @@ -7,7 +7,7 @@ PORTNAME= heroes PORTVERSION= 0.21 -PORTREVISION= 9 +PORTREVISION= 10 CATEGORIES= games MASTER_SITES= SF DISTFILES= ${PORTNAME}-${PORTVERSION}${EXTRACT_SUFX} \ @@ -30,7 +30,6 @@ DATASRC= ${WRKDIR}/${DATADISTNAME} SOUNDSRC= ${WRKDIR}/${SOUNDISTNAME} MUSICSRC= ${WRKDIR}/${MUSICDISTNAME} -USE_X_PREFIX= yes USE_SDL= mixer sdl USE_GMAKE= yes USE_ICONV= yes diff --git a/games/hex/Makefile b/games/hex/Makefile index fd6269b..e4f4d2e 100644 --- a/games/hex/Makefile +++ b/games/hex/Makefile @@ -7,14 +7,13 @@ PORTNAME= hex PORTVERSION= 0.0.2 -PORTREVISION= 3 +PORTREVISION= 4 CATEGORIES= games MASTER_SITES= http://www.earth.li/projectpurple/files/ MAINTAINER= ports@FreeBSD.org COMMENT= Clone of "Puzzle Bobble" for X11 that uses GTK/Imlib -USE_X_PREFIX= yes USE_GNOME= imlib MAKE_ENV= GRAPHICPATH="${GRAPHICPATH}" LEVELPATH="${LEVELPATH}" diff --git a/games/hexxagon/Makefile b/games/hexxagon/Makefile index 8a0d67a..d3a4f72 100644 --- a/games/hexxagon/Makefile +++ b/games/hexxagon/Makefile @@ -7,7 +7,7 @@ PORTNAME= hexxagon PORTVERSION= 1.0 -PORTREVISION= 3 +PORTREVISION= 4 CATEGORIES= games MASTER_SITES= http://www.nesqi.se/hexxagon/hexxagon/download/ @@ -18,7 +18,6 @@ LIB_DEPENDS= gtkmm-2.4.1:${PORTSDIR}/x11-toolkits/gtkmm24 USE_BZIP2= yes USE_GMAKE= yes -USE_XLIB= yes GNU_CONFIGURE= yes DESKTOP_ENTRIES="Hexxagon" "Strategy Game" "" \ diff --git a/games/hohlin/Makefile b/games/hohlin/Makefile index 838a8ec..e7ead06 100644 --- a/games/hohlin/Makefile +++ b/games/hohlin/Makefile @@ -22,7 +22,7 @@ WRKSRC= ${WRKDIR}/hoh-install-${PORTVERSION}/ USE_BZIP2= YES USE_LINUX= yes -USE_X_PREFIX= yes +USE_XLIB= yes ONLY_FOR_ARCHS= i386 SHORTPORTVERSION=${PORTVERSION:C/([0-9]*)\.([0-9]*)/\1\2/} diff --git a/games/icbm3d/Makefile b/games/icbm3d/Makefile index 82547fb..ee44b33 100644 --- a/games/icbm3d/Makefile +++ b/games/icbm3d/Makefile @@ -7,7 +7,7 @@ PORTNAME= icbm3d PORTVERSION= 0.4 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= games MASTER_SITES= ftp://ftp.billsgames.com/unix/x/icbm3d/ DISTNAME= ${PORTNAME}.${PORTVERSION} @@ -16,7 +16,7 @@ MAINTAINER= ports@FreeBSD.org COMMENT= "Inter-Continental Ballistic Missiles, 3D" - 3D game of defense WRKSRC= ${WRKDIR}/icbm3d -USE_X_PREFIX= yes +USE_XORG= x11 MAKEFILE= makefile ALL_TARGET= icbm3d diff --git a/games/icbm3d/files/patch-aa b/games/icbm3d/files/patch-aa index 1d20749..b9f9350 100644 --- a/games/icbm3d/files/patch-aa +++ b/games/icbm3d/files/patch-aa @@ -7,7 +7,7 @@ -CC=gcc +CC?=gcc +PREFIX?=/usr/X11R6 -+X11BASE?=/usr/X11R6 ++LOCALBASE?=/usr/X11R6 MATHLIB=-lm INSTALLROOT=$(PREFIX) @@ -15,8 +15,8 @@ -XLIB=-L$(PREFIX)/lib -lX11 #-lcompat -CFLAGS=-I$(PREFIX)/include -O2 -+XLIB=-L$(X11BASE)/lib -lX11 #-lcompat -+CFLAGS+=-I$(X11BASE)/include ++XLIB=-L$(LOCALBASE)/lib -lX11 #-lcompat ++CFLAGS+=-I$(LOCALBASE)/include # End of makefile user-definable variables----------------------------------- diff --git a/games/imaze/Makefile b/games/imaze/Makefile index 5bbeb5a..ce62776 100644 --- a/games/imaze/Makefile +++ b/games/imaze/Makefile @@ -7,7 +7,7 @@ PORTNAME= imaze PORTVERSION= 1.4 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= games MASTER_SITES= http://home.tu-clausthal.de/student/iMaze/files/ PKGNAMESUFFIX= -${TOOLKIT} @@ -25,9 +25,8 @@ LIB_DEPENDS= xview.3:${PORTSDIR}/x11-toolkits/xview TOOLKIT= xview .endif -USE_X_PREFIX= yes HAS_CONFIGURE= yes -CONFIGURE_ARGS= ${TOOLKIT} X11Dir=${X11BASE} CFlags="${CFLAGS}" +CONFIGURE_ARGS= ${TOOLKIT} X11Dir=${LOCALBASE} CFlags="${CFLAGS}" CONFIGURE_WRKSRC=${WRKSRC}/source BUILD_WRKSRC= ${WRKSRC}/source MAKE_ENV= SOUNDDIR=${SOUNDDIR} diff --git a/games/ioquake3/files/patch-Makefile b/games/ioquake3/files/patch-Makefile index f1123b4b..30b4fbf 100644 --- a/games/ioquake3/files/patch-Makefile +++ b/games/ioquake3/files/patch-Makefile @@ -107,7 +107,7 @@ + BASE_CFLAGS = -DARCH='\"$(ARCH)\"' -DLIBDIR='\"$(LIBDIR)\"' -I$(LOCALBASE)/include -Wall -fno-strict-aliasing -Wimplicit -Wstrict-prototypes - GL_CFLAGS = -I/usr/X11R6/include -+ GL_CFLAGS = -I$(X11BASE)/include ++ GL_CFLAGS = -I$(LOCALBASE)/include DEBUG_CFLAGS=$(BASE_CFLAGS) -g + RELEASE_CFLAGS=$(BASE_CFLAGS) -DNDEBUG -pipe @@ -188,7 +188,7 @@ + endif + + ifneq ($(USE_SDL_VIDEO),1) -+ CLIENT_LDFLAGS += -L$(X11BASE)/lib -lGL -lX11 -lXext -lXxf86dga -lXxf86vm ++ CLIENT_LDFLAGS += -L$(LOCALBASE)/lib -lGL -lX11 -lXext -lXxf86dga -lXxf86vm endif ifeq ($(USE_OPENAL),1) diff --git a/games/iourbanterror/files/patch-Makefile b/games/iourbanterror/files/patch-Makefile index 1efcfda..b71f958 100644 --- a/games/iourbanterror/files/patch-Makefile +++ b/games/iourbanterror/files/patch-Makefile @@ -213,7 +213,7 @@ + endif + + ifneq ($(USE_SDL_VIDEO),1) -+ CLIENT_LDFLAGS += -L$(X11BASE)/lib -lGL -lX11 -lXext -lXxf86dga -lXxf86vm ++ CLIENT_LDFLAGS += -L$(LOCALBASE)/lib -lGL -lX11 -lXext -lXxf86dga -lXxf86vm endif ifeq ($(USE_OPENAL),1) diff --git a/games/jfduke3d/Makefile b/games/jfduke3d/Makefile index f4a1705..8d0e2ca 100644 --- a/games/jfduke3d/Makefile +++ b/games/jfduke3d/Makefile @@ -24,9 +24,8 @@ BUILD_DEPENDS= nasm:${PORTSDIR}/devel/nasm ONLY_FOR_ARCHS= i386 ONLY_FOR_ARCHS_REASON= uses x86 assembly code USE_ZIP= yes -USE_GCC= 3.2+ USE_GMAKE= yes -USE_GL= yes +USE_GL= gl USE_GNOME= gtk20 USE_SDL= mixer sdl WRKSRC= ${WRKDIR}/${PORTNAME}_src_${PORTVERSION} @@ -38,7 +37,7 @@ post-patch: s|^(CC=).*|\1${CC}|; \ s|^(CFLAGS=).*|\1${CFLAGS}|; \ s|^(NASMFLAGS=).*|\1 -s -f elf|; \ - s|/usr/X11R6|${X11BASE}|; \ + s|/usr/X11R6|${LOCALBASE}|; \ s|sdl-config|${SDL_CONFIG}|' \ ${WRKSRC}/Makefile \ ${WRKDIR}/jfbuild_src_${PORTVERSION}/Makefile \ diff --git a/games/jigzo/Makefile b/games/jigzo/Makefile index da193d0..aaac10f 100644 --- a/games/jigzo/Makefile +++ b/games/jigzo/Makefile @@ -20,12 +20,12 @@ LIB_DEPENDS= png.5:${PORTSDIR}/graphics/png \ jpeg.9:${PORTSDIR}/graphics/jpeg USE_SDL= sdl mixer -USE_GL= yes +USE_GL= gl USE_GMAKE= yes MAKE_ENV= CXX="${CXX}" \ - CPPFLAGS="`${SDL_CONFIG} --cflags` -I${X11BASE}/include" \ - LDFLAGS="`${SDL_CONFIG} --libs` -L${X11BASE}/lib" + CPPFLAGS="`${SDL_CONFIG} --cflags` -I${LOCALBASE}/include" \ + LDFLAGS="`${SDL_CONFIG} --libs` -L${LOCALBASE}/lib" post-patch: .for i in font image puzzles sound diff --git a/games/joequake/files/patch-Makefile.linux b/games/joequake/files/patch-Makefile.linux index be4c3e0..199e157 100644 --- a/games/joequake/files/patch-Makefile.linux +++ b/games/joequake/files/patch-Makefile.linux @@ -14,7 +14,7 @@ +CC ?= gcc +#_E := @ +LOCALBASE ?= /usr/local -+X11BASE ?= /usr/X11R6 ++LOCALBASE ?= /usr/X11R6 +USE_OPTIMIZED_CFLAGS ?= YES -default_target: glx @@ -63,7 +63,7 @@ GLX_CFLAGS := $(CFLAGS) \ - -DGLQUAKE -I/usr/X11R6/include -+ -DGLQUAKE -I$(X11BASE)/include ++ -DGLQUAKE -I$(LOCALBASE)/include + +ifeq ($(strip $(USE_X86_ASM)),YES) +GLX_CFLAGS += -Did386 @@ -73,7 +73,7 @@ - -lGL -L/usr/X11R6/lib -lX11 \ - -lXext -lXxf86dga -lXxf86vm \ - -lpng -ljpeg -+ -L$(X11BASE)/lib -lGL -lX11 \ ++ -L$(LOCALBASE)/lib -lGL -lX11 \ + -lXext -lXxf86dga -lXxf86vm \ + -L$(LOCALBASE)/lib -lpng -ljpeg @@ -96,7 +96,7 @@ X11_S_OBJS := $(addprefix $(X11_DIR)/, $(addsuffix .o, $(X11_S_FILES))) -X11_CFLAGS := $(CFLAGS) -+X11_CFLAGS := $(CFLAGS) -I$(X11BASE)/include ++X11_CFLAGS := $(CFLAGS) -I$(LOCALBASE)/include + +ifeq ($(strip $(USE_X86_ASM)),YES) +X11_CFLAGS += -Did386 @@ -105,7 +105,7 @@ X11_LDFLAGS := $(LDFLAGS) \ - -L/usr/X11R6/lib -lX11 -lXext \ - -lpng -+ -L$(X11BASE)/lib -lX11 -lXext \ ++ -L$(LOCALBASE)/lib -lX11 -lXext \ + -L$(LOCALBASE)/lib -lpng x11: _DIR := $(X11_DIR) @@ -120,7 +120,7 @@ SVGA_LDFLAGS := $(LDFLAGS) \ - -L/usr/X11R6/lib -lX11 -lpthread \ - -lvga -lpng -+ -L$(X11BASE)/lib -lX11 -lpthread \ ++ -L$(LOCALBASE)/lib -lX11 -lpthread \ + -L$(LOCALBASE)/lib -lvga -lpng +ifeq ($(OSTYPE),Linux) diff --git a/games/kiki/Makefile b/games/kiki/Makefile index e21fd3c..7287606 100644 --- a/games/kiki/Makefile +++ b/games/kiki/Makefile @@ -9,8 +9,7 @@ PORTNAME= kiki PORTVERSION= 1.0.2 PORTREVISION= 4 CATEGORIES= games -MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} -MASTER_SITE_SUBDIR= ${PORTNAME} +MASTER_SITES= SF DISTNAME= ${PORTNAME}-${PORTVERSION}-src EXTRACT_SUFX= .tgz @@ -21,23 +20,22 @@ LIB_DEPENDS= glut.4:${PORTSDIR}/graphics/libglut USE_PYTHON= 2.3 USE_GMAKE= yes -USE_GL= yes +USE_GL= gl USE_SDL= sdl mixer image USE_DOS2UNIX= kodilib/linux/Makefile src/main/KikiController.cpp linux/Makefile kodilib/src/types/KVector.h src/main/KikiPythonWidget.h -USE_GCC= 3.4+ MAKE_ENV= CXX="${CXX}" CXXFLAGS="${CXXFLAGS}" WRKSRC= ${WRKDIR}/kiki post-patch: - @${REINPLACE_CMD} -e '/^CXXFLAGS/ s|.*|CXXFLAGS+=$$(KODI_INCLUDES) -I${X11BASE}/include `${SDL_CONFIG} --cflags`|' ${WRKSRC}/kodilib/linux/Makefile - @${REINPLACE_CMD} -e '/^X11_INCLUDES/ s|/.*/|${X11BASE}/include|' ${WRKSRC}/linux/Makefile + @${REINPLACE_CMD} -e '/^CXXFLAGS/ s|.*|CXXFLAGS+=$$(KODI_INCLUDES) -I${LOCALBASE}/include `${SDL_CONFIG} --cflags`|' ${WRKSRC}/kodilib/linux/Makefile + @${REINPLACE_CMD} -e '/^X11_INCLUDES/ s|/.*/|${LOCALBASE}/include|' ${WRKSRC}/linux/Makefile @${REINPLACE_CMD} -e '/PYTHON/ s|/usr|${LOCALBASE}|' ${WRKSRC}/linux/Makefile @${REINPLACE_CMD} -e 's|sdl-config|${SDL_CONFIG}|' ${WRKSRC}/linux/Makefile @${REINPLACE_CMD} -e 's|CXXFLAGS =|CXXFLAGS +=|' ${WRKSRC}/linux/Makefile @${REINPLACE_CMD} -e 's|PYTHON_VERSION|PYTHON_VER|' ${WRKSRC}/linux/Makefile - @${REINPLACE_CMD} -e '/^GLLIBS/ s|$$| -L${X11BASE}/lib|' ${WRKSRC}/linux/Makefile + @${REINPLACE_CMD} -e '/^GLLIBS/ s|$$| -L${LOCALBASE}/lib|' ${WRKSRC}/linux/Makefile @${REINPLACE_CMD} -e 's|getenv("KIKI_HOME")|"${DATADIR}"|' ${WRKSRC}/src/main/KikiController.cpp do-build: diff --git a/games/kmquake2/files/patch-Makefile b/games/kmquake2/files/patch-Makefile index fa5149d..25d27ca 100644 --- a/games/kmquake2/files/patch-Makefile +++ b/games/kmquake2/files/patch-Makefile @@ -56,7 +56,7 @@ +Q2DIR?=$(LOCALBASE)/share/quake2 LIBDIR?=$(LOCALBASE)/lib/kmquake2 - XCFLAGS=-I$(X11BASE)/include + XCFLAGS=-I$(LOCALBASE)/include @@ -91,7 +95,7 @@ endif @@ -150,7 +150,7 @@ -$(BINDIR)/baseq2/kmq2game$(ARCH).$(SHLIBEXT) : $(GAME_OBJS) - $(CC) $(CFLAGS) $(SHLIBLDFLAGS) -o $@ $(GAME_OBJS) -lGL +$(BINDIR)/baseq2/kmq2game.$(SHLIBEXT) : $(GAME_OBJS) -+ $(CC) $(CFLAGS) $(SHLIBLDFLAGS) -o $@ $(GAME_OBJS) -L$(X11BASE)/lib -lGL ++ $(CC) $(CFLAGS) $(SHLIBLDFLAGS) -o $@ $(GAME_OBJS) -L$(LOCALBASE)/lib -lGL $(BUILDDIR)/game/acebot_ai.o : $(GAME_DIR)/acesrc/acebot_ai.c $(DO_SHLIB_CC) diff --git a/games/libdungeonmaker/Makefile b/games/libdungeonmaker/Makefile index 3e14d55..748a148 100644 --- a/games/libdungeonmaker/Makefile +++ b/games/libdungeonmaker/Makefile @@ -8,15 +8,14 @@ PORTNAME= libdungeonmaker PORTVERSION= 2.05 CATEGORIES= games devel -MASTER_SITES= ${MASTER_SITE_SOURCEFORGE_EXTENDED} +MASTER_SITES= SF MASTER_SITE_SUBDIR= dungeonmaker DISTNAME= dungeonmaker-${PORTVERSION} MAINTAINER= aaron@FreeBSD.org COMMENT= A program/library that "grows" dungeons for use in isometric games -INSTALLS_SHLIB= yes -USE_GCC= 3.2+ +USE_LDCONFIG= yes SUB_FILES= pkg-message PLIST_SUB+= HAS_DOCS=${HAS_DOCS} diff --git a/games/libfov/Makefile b/games/libfov/Makefile index a973777..b532a52 100644 --- a/games/libfov/Makefile +++ b/games/libfov/Makefile @@ -8,14 +8,13 @@ PORTNAME= libfov PORTVERSION= 1.0.2 CATEGORIES= games devel -MASTER_SITES= ${MASTER_SITE_SOURCEFORGE_EXTENDED} -MASTER_SITE_SUBDIR= libfov +MASTER_SITES= SFE/libfov MAINTAINER= aaron@FreeBSD.org COMMENT= C library for calculating fields of view on low resolution rasters WRKSRC= ${WRKDIR}/${DISTNAME}/fov -INSTALLS_SHLIB= yes +USE_LDCONFIG= yes post-extract: @${CP} ${PATCHDIR}/Makefile.bsd ${WRKSRC}/Makefile diff --git a/games/libmaitretarot/Makefile b/games/libmaitretarot/Makefile index 156accb..d53923e 100644 --- a/games/libmaitretarot/Makefile +++ b/games/libmaitretarot/Makefile @@ -19,6 +19,6 @@ USE_AUTOTOOLS= libtool:15 USE_BZIP2= yes GNU_CONFIGURE= yes USE_GNOME= glib20 libxml2 lthack -INSTALLS_SHLIB= yes +USE_LDCONFIG= yes .include diff --git a/games/libmt_client/Makefile b/games/libmt_client/Makefile index 2c78e61..018f8d0 100644 --- a/games/libmt_client/Makefile +++ b/games/libmt_client/Makefile @@ -21,6 +21,6 @@ USE_AUTOTOOLS= libtool:15 USE_BZIP2= yes GNU_CONFIGURE= yes USE_GNOME= glib20 libxml2 lthack -INSTALLS_SHLIB= yes +USE_LDCONFIG= yes .include diff --git a/games/libshhcards/Makefile b/games/libshhcards/Makefile index dfefeb9..0bf9b01 100644 --- a/games/libshhcards/Makefile +++ b/games/libshhcards/Makefile @@ -7,7 +7,7 @@ PORTNAME= libshhcards PORTVERSION= 1.0.5 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= games MASTER_SITES= http://shh.thathost.com/pub-unix/files/ DISTNAME= shhcards-${PORTVERSION} @@ -15,8 +15,7 @@ DISTNAME= shhcards-${PORTVERSION} MAINTAINER= ports@FreeBSD.org COMMENT= Library for displaying game cards on X Window System -USE_X_PREFIX= yes -USE_XPM= yes +USE_XORG= xpm MAKEFILE= ${FILESDIR}/Makefile.lib USE_LDCONFIG= yes diff --git a/games/libshhcards/files/Makefile.lib b/games/libshhcards/files/Makefile.lib index 05e563d..f548897 100644 --- a/games/libshhcards/files/Makefile.lib +++ b/games/libshhcards/files/Makefile.lib @@ -12,7 +12,7 @@ INCS= shhcards.h INCSDIR=${PREFIX}/include INCDIR= ${INCSDIR} # for pre-bsd.incs.mk API -CFLAGS+= -I${X11BASE}/include +CFLAGS+= -I${LOCALBASE}/include SRCS= shhcards.c diff --git a/games/lincity-ng/Makefile b/games/lincity-ng/Makefile index c6d4a8a..a235123 100644 --- a/games/lincity-ng/Makefile +++ b/games/lincity-ng/Makefile @@ -19,14 +19,13 @@ BUILD_DEPENDS= jam:${PORTSDIR}/devel/jam LIB_DEPENDS= physfs-1.0.1:${PORTSDIR}/devel/physfs USE_BZIP2= yes -USE_GCC= 3.2+ USE_SDL= sdl mixer image ttf gfx USE_GL= yes USE_GNOME= libxml2 GNU_CONFIGURE= yes CONFIGURE_ARGS= --with-libphysfs=${PREFIX} \ - --x-libraries=${X11BASE}/lib --x-includes=${X11BASE}/include + --x-libraries=${LOCALBASE}/lib --x-includes=${LOCALBASE}/include CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL} CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \ LDFLAGS="-L${LOCALBASE}/lib ${PTHREAD_LIBS}" diff --git a/games/linux-goodway/Makefile b/games/linux-goodway/Makefile index 03f7a64..d61bacb 100644 --- a/games/linux-goodway/Makefile +++ b/games/linux-goodway/Makefile @@ -19,7 +19,7 @@ BUILD_DEPENDS= icoconvert:${PORTSDIR}/graphics/icoconvert RUN_DEPENDS= X-Plane:${PORTSDIR}/games/linux-x-plane WRKSRC= ${WRKDIR}/GoodWay${GWVERSION}F -USE_X_PREFIX= yes +USE_XLIB= yes USE_ZIP= yes USE_LINUX= yes RESTRICTED= "Redistribution prohibited" @@ -27,7 +27,7 @@ ONLY_FOR_ARCHS= i386 amd64 GWVERSION= ${PORTVERSION:S|.||g} -XDIR= ${X11BASE}/lib/x-plane +XDIR= ${LOCALBASE}/lib/x-plane GWDIR= ${PREFIX}/lib/goodway GWDIR_REL= ${GWDIR:S,^${PREFIX}/,,} @@ -59,11 +59,11 @@ post-patch: do-build: .for t in athlon-xp i586 pentium-3 - @if [ -e ${X11BASE}/lib/x-plane/X-Plane-${t} ]; then \ - ${ECHO_CMD} 'GNL_XPlaneEXE=${X11BASE}/lib/x-plane/X-Plane-${t}' > ${WRKSRC}/Properties3.prf; \ + @if [ -e ${LOCALBASE}/lib/x-plane/X-Plane-${t} ]; then \ + ${ECHO_CMD} 'GNL_XPlaneEXE=${LOCALBASE}/lib/x-plane/X-Plane-${t}' > ${WRKSRC}/Properties3.prf; \ fi .endfor - @${ECHO_CMD} 'GNL_XPlaneDir=${X11BASE}/lib/x-plane' >> ${WRKSRC}/Properties3.prf + @${ECHO_CMD} 'GNL_XPlaneDir=${LOCALBASE}/lib/x-plane' >> ${WRKSRC}/Properties3.prf @icoconvert ${WRKSRC}/ICON1.ICO @${MKDIR} ${WRKSRC}/.icons @${MV} ${WRKSRC}/ICON1_*.png ${WRKSRC}/.icons diff --git a/games/linux-ssamtse/Makefile b/games/linux-ssamtse/Makefile index 1bb4ccf..16d632e 100644 --- a/games/linux-ssamtse/Makefile +++ b/games/linux-ssamtse/Makefile @@ -19,9 +19,9 @@ COMMENT= Serious Sam - The Second Encounter NO_BUILD= yes USE_BZIP2= yes USE_LINUX= yes -USE_X_PREFIX= yes +USE_XLIB= yes USE_GL= yes -INSTALLS_SHLIB= yes +USE_LDCONFIG= yes NO_PACKAGE= yes # distfiles must be downloaded manually, wierd legal issues etc etc etc. SSAMDIR= ${PREFIX}/ssam diff --git a/games/linux-steam/Makefile b/games/linux-steam/Makefile index 8036ac1..2255467 100644 --- a/games/linux-steam/Makefile +++ b/games/linux-steam/Makefile @@ -19,7 +19,7 @@ BUILD_DEPENDS= ${LINUX_BASE_PORT} IS_INTERACTIVE= yes USE_LINUX= yes -USE_X_PREFIX= yes +USE_XLIB= yes PKGMESSAGE= ${WRKDIR}/pkg-message INSTALLDIR?= steam diff --git a/games/linux-ut2003-demo/Makefile b/games/linux-ut2003-demo/Makefile index cbe1b46..a56f85c 100644 --- a/games/linux-ut2003-demo/Makefile +++ b/games/linux-ut2003-demo/Makefile @@ -17,7 +17,7 @@ EXTRACT_SUFX= .sh.bin MAINTAINER= alepulver@FreeBSD.org COMMENT= Unreal Tournament 2003 demo -USE_X_PREFIX= yes +USE_XLIB= yes USE_LINUX= yes NO_PACKAGE= Distfile is 130MB, set FORCE_PACKAGE if you really want to build this package RESTRICTED= Redistribution is limited, see license diff --git a/games/linux-ut2004-demo/Makefile b/games/linux-ut2004-demo/Makefile index 92450a2..fdbcba0 100644 --- a/games/linux-ut2004-demo/Makefile +++ b/games/linux-ut2004-demo/Makefile @@ -19,7 +19,7 @@ MAINTAINER= jylefort@FreeBSD.org COMMENT= Unreal Tournament 2004 demo ONLY_FOR_ARCHS= i386 amd64 -USE_X_PREFIX= yes +USE_XLIB= yes USE_LINUX= yes NO_PACKAGE= Distfile size is 275MB, set FORCE_PACKAGE if you really want to build this package RESTRICTED= Redistribution is limited, see license diff --git a/games/linux-virtual-jay-peak/Makefile b/games/linux-virtual-jay-peak/Makefile index 3a00767..f0b26d9 100644 --- a/games/linux-virtual-jay-peak/Makefile +++ b/games/linux-virtual-jay-peak/Makefile @@ -17,7 +17,7 @@ COMMENT= A simulation of snowboarding at the Jay Peak resort in Vermont WRKSRC= ${WRKDIR}/soulride ONLY_FOR_ARCHS= i386 -USE_X_PREFIX= yes +USE_XLIB= yes USE_LINUX= yes NO_BUILD= yes SUB_FILES= virtual-jay-peak diff --git a/games/linux-x-plane-net-installer/Makefile b/games/linux-x-plane-net-installer/Makefile index 4995f43..f57fa2f 100644 --- a/games/linux-x-plane-net-installer/Makefile +++ b/games/linux-x-plane-net-installer/Makefile @@ -22,7 +22,7 @@ BROKEN= Unfetchable DEPRECATED= ${BROKEN} EXPIRATION_DATE=2007-04-10 -USE_X_PREFIX= yes +USE_XLIB= yes USE_LINUX= yes NO_BUILD= yes RESTRICTED= "Redistribution prohibited" diff --git a/games/linux-x-plane/Makefile b/games/linux-x-plane/Makefile index c56492f..0bd9b07 100644 --- a/games/linux-x-plane/Makefile +++ b/games/linux-x-plane/Makefile @@ -19,7 +19,7 @@ RUN_DEPENDS= ${LINUXBASE}/usr/lib/libopenal.so.1:${PORTSDIR}/audio/linux-openal IGNOREFILES= ${DISTFILES} # user-created distribution NO_WRKSUBDIR= yes -USE_X_PREFIX= yes +USE_XLIB= yes USE_BZIP2= yes USE_LINUX= yes NO_BUILD= yes diff --git a/games/macopix/Makefile b/games/macopix/Makefile index d508dfe..46d06cf 100644 --- a/games/macopix/Makefile +++ b/games/macopix/Makefile @@ -7,6 +7,7 @@ PORTNAME= macopix PORTVERSION= 1.6.4 +PORTREVISION= 1 CATEGORIES= games MASTER_SITES= http://rosegray.sakura.ne.jp/macopix/ .if defined(WITH_GTK1) @@ -36,7 +37,6 @@ RESTRICTED_FILES= \ macopix-mascot-HxB-euc-ja-0.30.tar.gz USE_GETTEXT= yes -USE_X_PREFIX= yes .if defined(WITH_GTK1) USE_GNOME= gtk12 gdkpixbuf .else diff --git a/games/maelstrom/Makefile b/games/maelstrom/Makefile index 362bf8d..43201cb 100644 --- a/games/maelstrom/Makefile +++ b/games/maelstrom/Makefile @@ -7,7 +7,7 @@ PORTNAME= maelstrom PORTVERSION= 3.0.6 -PORTREVISION= 5 +PORTREVISION= 6 CATEGORIES= games MASTER_SITES= http://www.devolution.com/~slouken/projects/Maelstrom/src/ DISTNAME= Maelstrom-${PORTVERSION} @@ -15,9 +15,8 @@ DISTNAME= Maelstrom-${PORTVERSION} MAINTAINER= ports@FreeBSD.org COMMENT= Asteroids-style game for X Window System -USE_X_PREFIX= yes USE_SDL= sdl net -USE_XPM= yes +USE_XORG= xpm GNU_CONFIGURE= yes CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL} diff --git a/games/maelstrom/files/Makeflags b/games/maelstrom/files/Makeflags index de83567..f2721eb 100644 --- a/games/maelstrom/files/Makeflags +++ b/games/maelstrom/files/Makeflags @@ -20,12 +20,12 @@ OBJS = main.o framebuf.o v_framebuf.o x11_framebuf.o vga_framebuf.o \ Utils.o shared.o myerror.o SOUNDOBJS = Maelstrom_sound.o Mac_Resource.o soundres.o mixer.o shared.o myerror.o -X11INCLUDE = -I${X11BASE}/include +X11INCLUDE = -I${LOCALBASE}/include INCLUDES = -I$(LOGIC) $(X11INCLUDE) $(XPMINCLUDE) CFLAGS += $(INCLUDES) $(FEATURES) \ -pedantic -DSYSTEM=\"$(SYSTEM)\" -DLIBDIR=\"$(LIBDIR)\" EXTRALIBS = -X11LINKDIR = -L${X11BASE}/lib +X11LINKDIR = -L${LOCALBASE}/lib X11LIBS = -lXpm $(XPMLINKDIR) -lX11 -lXext $(X11LINKDIR) CSUMLIB = LIBS = $(EXTRALIBS) $(X11LIBS) $(CSUMLIB) diff --git a/games/mangband/files/patch-ab b/games/mangband/files/patch-ab index 9b94e2b..cda4eb1 100644 --- a/games/mangband/files/patch-ab +++ b/games/mangband/files/patch-ab @@ -15,8 +15,8 @@ # -CFLAGS = -Wall -g -pipe -D"USE_X11" -D"USE_GCU" -I/usr/include/ncurses -LIBS = -L/usr/X11R6/lib -lX11 -lncurses -+CFLAGS += -D"USE_X11" -D"USE_GCU" -DDEFAULT_PATH="\"${PREFIX}/lib/mangband\"" -I${X11BASE}/include -+LIBS = -L${X11BASE}/lib -lX11 -lncurses ++CFLAGS += -D"USE_X11" -D"USE_GCU" -DDEFAULT_PATH="\"${PREFIX}/lib/mangband\"" -I${LOCALBASE}/include ++LIBS = -L${LOCALBASE}/lib -lX11 -lncurses ## diff --git a/games/marsnomercy/Makefile b/games/marsnomercy/Makefile index 472879e..d2161b9 100644 --- a/games/marsnomercy/Makefile +++ b/games/marsnomercy/Makefile @@ -18,7 +18,7 @@ COMMENT= A turn-based strategy game setting on Mars BUILD_DEPENDS= scons:${PORTSDIR}/devel/scons -USE_GL= yes +USE_GL= gl USE_SDL= sdl image ttf MAKE_ENV= CC="${CC}" CXX="${CXX}" SCONS_ARGS= prefix=${PREFIX} diff --git a/games/marsnomercy/files/patch-SConstruct b/games/marsnomercy/files/patch-SConstruct index 5def552..1ab7e68 100644 --- a/games/marsnomercy/files/patch-SConstruct +++ b/games/marsnomercy/files/patch-SConstruct @@ -6,7 +6,7 @@ else: + # Section used for FreeBSD port + LOCALBASE = os.environ['LOCALBASE'] -+ X11BASE = os.environ['X11BASE'] ++ LOCALBASE = os.environ['LOCALBASE'] # determine compiler and linker flags for SDL - env.ParseConfig('sdl-config --cflags') - env.ParseConfig('sdl-config --libs') @@ -19,8 +19,8 @@ - + env.Replace(CC = os.environ['CC']) + env.Replace(CXX = os.environ['CXX']) -+ env.Replace(CPPPATH = [X11BASE + '/include',LOCALBASE+ '/include']) -+ env.Replace(LIBPATH = [X11BASE + '/lib',LOCALBASE+ '/lib']) ++ env.Replace(CPPPATH = [LOCALBASE + '/include',LOCALBASE+ '/include']) ++ env.Replace(LIBPATH = [LOCALBASE + '/lib',LOCALBASE+ '/lib']) + env.Append(CXXFLAGS = os.environ['CXXFLAGS'] + ' `' + SDL_CONFIG + ' --cflags`') # generate help for options diff --git a/games/merlin/Makefile b/games/merlin/Makefile index c4ea71f..0e43283 100644 --- a/games/merlin/Makefile +++ b/games/merlin/Makefile @@ -7,7 +7,7 @@ PORTNAME= merlin PORTVERSION= 1.0 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= games MASTER_SITES= http://www.doc.ic.ac.uk/~np2/software/download/ DISTNAME= ${PORTNAME} @@ -19,7 +19,6 @@ RUN_DEPENDS= wish8.2:${PORTSDIR}/x11-toolkits/tk82 NO_WRKSUBDIR= yes NO_BUILD= yes -USE_X_PREFIX= yes post-patch: @${SED} -e "s:%%LOCALBASE%%:${LOCALBASE}:g" \ diff --git a/games/mindfocus/Makefile b/games/mindfocus/Makefile index 37c450b..1803b7a 100644 --- a/games/mindfocus/Makefile +++ b/games/mindfocus/Makefile @@ -16,7 +16,7 @@ MAINTAINER= ixtl@utmc.or.jp COMMENT= Lovely characters stay on top of active window USE_IMAKE= yes -USE_XPM= yes +USE_XORG= xpm RESTRICTED= 'contains commercial character data' post-install: diff --git a/games/mindguard/Makefile b/games/mindguard/Makefile index 8e977b7..2fbd583 100644 --- a/games/mindguard/Makefile +++ b/games/mindguard/Makefile @@ -40,15 +40,15 @@ DOCS= algorithms.html antarctic.html author.html \ versions.html do-install: - ${INSTALL_PROGRAM} ${WRKSRC}/mindguard ${X11BASE}/bin/mindguard - ${MKDIR} ${X11BASE}/share/mindguard + ${INSTALL_PROGRAM} ${WRKSRC}/mindguard ${PREFIX}/bin/mindguard + ${MKDIR} ${PREFIX}/share/mindguard .for i in ${CARRIERS} - ${INSTALL_DATA} ${WRKSRC}/carriers/$i ${X11BASE}/share/mindguard + ${INSTALL_DATA} ${WRKSRC}/carriers/$i ${PREFIX}/share/mindguard .endfor .if !defined(NOPORTDOCS) - ${MKDIR} ${X11BASE}/share/doc/mindguard + ${MKDIR} ${PREFIX}/share/doc/mindguard .for i in ${DOCS} - ${INSTALL_DATA} ${WRKSRC}/docs/$i ${X11BASE}/share/doc/mindguard + ${INSTALL_DATA} ${WRKSRC}/docs/$i ${PREFIX}/share/doc/mindguard .endfor .endif diff --git a/games/mindguard/files/patch-aa b/games/mindguard/files/patch-aa index ea0f125..a1d794d 100644 --- a/games/mindguard/files/patch-aa +++ b/games/mindguard/files/patch-aa @@ -10,7 +10,7 @@ mindguard: mindguard.c mindguard.h - $(CC) `gtk-config --cflags` mindguard.c -o mindguard `gtk-config --libs` -+ $(CC) -DX11BASE=\"${X11BASE}\" `${GTK_CONFIG} --cflags` ${CFLAGS} mindguard.c -o mindguard `${GTK_CONFIG} --libs` ++ $(CC) -DLOCALBASE=\"${PREFIX}\" `${GTK_CONFIG} --cflags` ${CFLAGS} mindguard.c -o mindguard `${GTK_CONFIG} --libs` install: mindguard install-bin install-carriers install-docs diff --git a/games/mindguard/files/patch-ab b/games/mindguard/files/patch-ab index cb83fcf..94079c9 100644 --- a/games/mindguard/files/patch-ab +++ b/games/mindguard/files/patch-ab @@ -5,7 +5,7 @@ break; case 2: - strcpy(car_path, "/usr/local/share/MindGuard/carriers/"); -+ strcpy(car_path, X11BASE "/share/mindguard/"); ++ strcpy(car_path, LOCALBASE "/share/mindguard/"); break; default: break; diff --git a/games/mirrormagic/Makefile b/games/mirrormagic/Makefile index 5978097..a22ea99 100644 --- a/games/mirrormagic/Makefile +++ b/games/mirrormagic/Makefile @@ -18,7 +18,7 @@ COMMENT= An arcade style game with stereo sound for X Window System USE_GMAKE= yes MAKE_ARGS= CC="${CC}" MAKE="${GMAKE}" OPTIONS="${CFLAGS}" \ RO_GAME_DIR="${DATADIR}" RW_GAME_DIR="${DATADIR}/scores" \ - X11_PATH="${X11BASE}" + X11_PATH="${LOCALBASE}" WANT_SDL= yes OPTIONS= SDL "SDL support" on diff --git a/games/monster-masher/Makefile b/games/monster-masher/Makefile index 2b3206f..f852a10 100644 --- a/games/monster-masher/Makefile +++ b/games/monster-masher/Makefile @@ -7,7 +7,7 @@ PORTNAME= monster PORTVERSION= 1.7 -PORTREVISION= 3 +PORTREVISION= 4 CATEGORIES= games gnome MASTER_SITES= http://www.cs.aau.dk/~olau/monster-masher/source/ PKGNAMESUFFIX= -masher @@ -18,7 +18,6 @@ COMMENT= Gnomemm puzzle game where you have to clean the caves of monsters LIB_DEPENDS= gnomeuimm-2.6.1:${PORTSDIR}/x11-toolkits/libgnomeuimm26 -USE_X_PREFIX= yes USE_BZIP2= yes USE_GNOME= gnomeprefix gnomehack gnometarget intlhack USE_GMAKE= yes diff --git a/games/nehquake/files/patch-Makefile b/games/nehquake/files/patch-Makefile index 1d40a6b..a83f953 100644 --- a/games/nehquake/files/patch-Makefile +++ b/games/nehquake/files/patch-Makefile @@ -67,8 +67,8 @@ -GLLDFLAGS=-L/usr/X11R6/lib -L/usr/local/lib -lGL -lX11 -lXext -ldl -lXxf86dga -lXxf86vm -GLCFLAGS=-DGLQUAKE -I/usr/include -I/usr/X11R6/include -+GLLDFLAGS=-L$(X11BASE)/lib -lGL -lX11 -lXext -lXxf86dga -lXxf86vm -+GLCFLAGS=-DGLQUAKE -I$(X11BASE)/include ++GLLDFLAGS=-L$(LOCALBASE)/lib -lGL -lX11 -lXext -lXxf86dga -lXxf86vm ++GLCFLAGS=-DGLQUAKE -I$(LOCALBASE)/include DO_CC=$(CC) $(CFLAGS) -o $@ -c $< DO_DEBUG_CC=$(CC) $(DEBUG_CFLAGS) -o $@ -c $< diff --git a/games/nethack32/files/patch-ab b/games/nethack32/files/patch-ab index a22424c..9f6970d 100644 --- a/games/nethack32/files/patch-ab +++ b/games/nethack32/files/patch-ab @@ -6,8 +6,8 @@ -CFLAGS = -O -I../include -LFLAGS = -+CFLAGS += -O -I../include -I${X11BASE}/include -+LFLAGS = -L${X11BASE}/lib ++CFLAGS += -O -I../include -I${LOCALBASE}/include ++LFLAGS = -L${LOCALBASE}/lib # Set the WINSRC, WINOBJ, and WINLIB lines to correspond to your desired diff --git a/games/nethack33/files/patch-ad b/games/nethack33/files/patch-ad index 2053453..f0f1ab1 100644 --- a/games/nethack33/files/patch-ad +++ b/games/nethack33/files/patch-ad @@ -11,7 +11,7 @@ # CFLAGS = -g -I../include +CFLAGS += -I../include +ifeq ("$(GRAPHICS)","X11_GRAPHICS") -+CFLAGS += -DX11_GRAPHICS -I${X11BASE}/include ++CFLAGS += -DX11_GRAPHICS -I${LOCALBASE}/include +endif +ifeq ("$(GRAPHICS)","QT_GRAPHICS") +CFLAGS += -DQT_GRAPHICS @@ -65,7 +65,7 @@ # libraries for X11 # If USE_XPM is defined in config.h, you will also need -lXpm here. -WINX11LIB = -lXaw -lXmu -lXext -lXt -lX11 -+WINX11LIB = -lXaw -lXmu -lXpm -lXext -lXt -lX11 -lSM -lICE -L${X11BASE}/lib ++WINX11LIB = -lXaw -lXmu -lXpm -lXext -lXt -lX11 -lSM -lICE -L${LOCALBASE}/lib # WINX11LIB = -lXaw -lXmu -lXt -lX11 # WINX11LIB = -lXaw -lXmu -lXext -lXt -lXpm -lX11 -lm # WINX11LIB = -lXaw -lXmu -lXpm -lXext -lXt -lX11 -lSM -lICE -lm # BSD/OS 2.0 diff --git a/games/nethack34/files/patch-ad b/games/nethack34/files/patch-ad index 86219e9..b66b315 100644 --- a/games/nethack34/files/patch-ad +++ b/games/nethack34/files/patch-ad @@ -14,7 +14,7 @@ diff -ruN sys.orig/unix/Makefile.src sys/unix/Makefile.src -CFLAGS = -O -I../include +CFLAGS += -I../include +ifeq ("$(GRAPHICS)","X11_GRAPHICS") -+CFLAGS += -DX11_GRAPHICS -I${X11BASE}/include ++CFLAGS += -DX11_GRAPHICS -I${LOCALBASE}/include +endif +ifeq ("$(GRAPHICS)","QT_GRAPHICS") +CFLAGS += -DQT_GRAPHICS @@ -71,7 +71,7 @@ diff -ruN sys.orig/unix/Makefile.src sys/unix/Makefile.src # libraries for X11 # If USE_XPM is defined in config.h, you will also need -lXpm here. -WINX11LIB = -lXaw -lXmu -lXext -lXt -lX11 -+WINX11LIB = -lXaw -lXmu -lXpm -lXext -lXt -lX11 -lSM -lICE -L${X11BASE}/lib ++WINX11LIB = -lXaw -lXmu -lXpm -lXext -lXt -lX11 -lSM -lICE -L${LOCALBASE}/lib # WINX11LIB = -lXaw -lXmu -lXt -lX11 # WINX11LIB = -lXaw -lXmu -lXext -lXt -lXpm -lX11 -lm # WINX11LIB = -lXaw -lXmu -lXpm -lXext -lXt -lX11 -lSM -lICE -lm # BSD/OS 2.0 diff --git a/games/netrek-BRMH-bin/Makefile b/games/netrek-BRMH-bin/Makefile index 37c103a..1561df2 100644 --- a/games/netrek-BRMH-bin/Makefile +++ b/games/netrek-BRMH-bin/Makefile @@ -7,7 +7,7 @@ PORTNAME= netrek-BRMH PORTVERSION= 2.2.2 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= games MASTER_SITES= http://ftp.netrek.org/pub/netrek/mirrors/ftp.csua.berkeley.edu.old/netrek/ \ @@ -17,7 +17,6 @@ EXTRACT_SUFX= .gz MAINTAINER= ports@FreeBSD.org COMMENT= A 16-player network space battle/conquest game with a Star Trek theme -USE_X_PREFIX= YES NO_BUILD= YES NO_WRKSUBDIR= YES PLIST_FILES= bin/netrek diff --git a/games/netrek-COW3-bin/Makefile b/games/netrek-COW3-bin/Makefile index c7951fd..50bc022 100644 --- a/games/netrek-COW3-bin/Makefile +++ b/games/netrek-COW3-bin/Makefile @@ -7,7 +7,7 @@ PORTNAME= netrek-COW PORTVERSION= 3.00.0 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= games MASTER_SITES= http://ftp.netrek.org/pub/netrek/clients/cow/COW-bin/old/ DISTFILES= COW.3.00pl0.FreeBSD.gz @@ -15,7 +15,6 @@ DISTFILES= COW.3.00pl0.FreeBSD.gz MAINTAINER= ports@FreeBSD.org COMMENT= A 16-player network space battle/conquest game with a Star Trek theme -USE_X_PREFIX= YES NO_BUILD= YES NO_WRKSUBDIR= YES PLIST_FILES= bin/netrek diff --git a/games/newvox/Makefile b/games/newvox/Makefile index f6d78d1..f387f2e 100644 --- a/games/newvox/Makefile +++ b/games/newvox/Makefile @@ -7,7 +7,7 @@ PORTNAME= newvox PORTVERSION= 1.0 -PORTREVISION= 4 +PORTREVISION= 5 CATEGORIES= games MASTER_SITES= http://www.libsdl.org/projects/newvox/src/ @@ -15,7 +15,6 @@ MAINTAINER= ports@FreeBSD.org COMMENT= Voxel-style landscape rendering fly-by USE_SDL= sdl -USE_X_PREFIX= yes GNU_CONFIGURE= yes do-install: diff --git a/games/nexuiz/Makefile b/games/nexuiz/Makefile index c206cd7..1404c86 100644 --- a/games/nexuiz/Makefile +++ b/games/nexuiz/Makefile @@ -7,9 +7,9 @@ PORTNAME= nexuiz PORTVERSION= 2.4 +PORTREVISION= 1 CATEGORIES= games -MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} -MASTER_SITE_SUBDIR= ${PORTNAME} +MASTER_SITES= SF DISTNAME= ${PORTNAME}-${PORTVERSION:S/.//g} DISTFILES= ${DISTNAME}${EXTRACT_SUFX} @@ -49,7 +49,8 @@ RUN_DEPENDS= ${LOCALBASE}/lib/libvorbis.so:${PORTSDIR}/audio/libvorbis \ .endif .if !defined(WITHOUT_CLIENT) -USE_GL= yes +USE_GL= glut +USE_XORG= x11 xpm xxf86vm xxf86dga xext ALL_TARGET+= cl-release PLIST_SUB+= CLIENT="" .else @@ -74,7 +75,7 @@ PLIST_SUB+= SERVER="@comment " post-extract: @${EXTRACT_CMD} ${WRKDIR}/Nexuiz/sources/enginesource20080229.zip \ -d ${WRKDIR}/Nexuiz/sources - @${REINPLACE_CMD} -e 's,/usr/X11R6,${X11BASE},' ${WRKSRC}/${MAKEFILE} + @${REINPLACE_CMD} -e 's,/usr/X11R6,${LOCALBASE},' ${WRKSRC}/${MAKEFILE} @${REINPLACE_CMD} -E 's,(fs_basedir\, )"",\1"${DATADIR}",' ${WRKSRC}/fs.c do-build: diff --git a/games/nighthawk/Makefile b/games/nighthawk/Makefile index bafb98c..d615d09 100644 --- a/games/nighthawk/Makefile +++ b/games/nighthawk/Makefile @@ -26,8 +26,8 @@ MAN6= nighthawk.6 CFLAGS+= -DINSTALL_DIR=\\\"\${DATADIR}\\\" \ -DSCORES_FILE=\\\"/var/games/nighthawk.scores\\\" \ - -I${X11BASE}/include -LDFLAGS= -lm -L${X11BASE}/lib -lX11 -lGL -lGLU -lglut + -I${LOCALBASE}/include +LDFLAGS= -lm -L${LOCALBASE}/lib -lX11 -lGL -lGLU -lglut post-patch: ${FIND} ${WRKSRC} -name "Makefile" | ${XARGS} ${REINPLACE_CMD} -e \ diff --git a/games/noegnud-littlehack/files/noegnud-littlehack.patch b/games/noegnud-littlehack/files/noegnud-littlehack.patch index 7cc51e5..67ba867 100644 --- a/games/noegnud-littlehack/files/noegnud-littlehack.patch +++ b/games/noegnud-littlehack/files/noegnud-littlehack.patch @@ -64,7 +64,7 @@ diff -urN variants/littlehack-0.0.1.orig/sys/unix/Makefile.src variants/littleha # compile normally -COMMON_CFLAGS = -DLITTLEHACK_0_0_1 -fomit-frame-pointer -I../include `sdl-config --cflags` -+COMMON_CFLAGS = -DLITTLEHACK_0_0_1 -fomit-frame-pointer -I../include -I/usr/include/gnu `${SDL_CONFIG} --cflags` -I${X11BASE}/include ++COMMON_CFLAGS = -DLITTLEHACK_0_0_1 -fomit-frame-pointer -I../include -I/usr/include/gnu `${SDL_CONFIG} --cflags` -I${LOCALBASE}/include STD_CFLAGS = -O2 -ffast-math $(COMMON_CFLAGS) DBG_CFLAGS = -g -Wall -DNOEGNUDDEBUG $(COMMON_CFLAGS) @@ -73,7 +73,7 @@ diff -urN variants/littlehack-0.0.1.orig/sys/unix/Makefile.src variants/littleha +CFLAGS += $(STD_CFLAGS) -LFLAGS = -L/usr/X11R6/lib -+LFLAGS = -L${X11BASE}/lib -lgnuregex ++LFLAGS = -L${LOCALBASE}/lib -lgnuregex # OR compile backwards compatible a.out format # CFLAGS = -O2 -b i486-linuxaout -fomit-frame-pointer -I../include diff --git a/games/noegnud-nethack-deet/files/noegnud-nethack-deet.patch b/games/noegnud-nethack-deet/files/noegnud-nethack-deet.patch index 6b9ea1c..e6d94e1 100644 --- a/games/noegnud-nethack-deet/files/noegnud-nethack-deet.patch +++ b/games/noegnud-nethack-deet/files/noegnud-nethack-deet.patch @@ -73,7 +73,7 @@ diff -urN variants/nethack-3.4.2-deet.orig/sys/unix/Makefile.src variants/nethac # compile normally -COMMON_CFLAGS = -DNETHACK_3_4_2_DEET -fomit-frame-pointer -I../include `sdl-config --cflags` -+COMMON_CFLAGS = -DNETHACK_3_4_2_DEET -fomit-frame-pointer -I../include -I/usr/include/gnu `${SDL_CONFIG} --cflags` -I${X11BASE}/include ++COMMON_CFLAGS = -DNETHACK_3_4_2_DEET -fomit-frame-pointer -I../include -I/usr/include/gnu `${SDL_CONFIG} --cflags` -I${LOCALBASE}/include STD_CFLAGS = -O2 -ffast-math $(COMMON_CFLAGS) DBG_CFLAGS = -g -Wall -DNOEGNUDDEBUG $(COMMON_CFLAGS) @@ -82,7 +82,7 @@ diff -urN variants/nethack-3.4.2-deet.orig/sys/unix/Makefile.src variants/nethac +CFLAGS += $(STD_CFLAGS) -LFLAGS = -L/usr/X11R6/lib -+LFLAGS = -L${X11BASE}/lib -lgnuregex ++LFLAGS = -L${LOCALBASE}/lib -lgnuregex # OR compile backwards compatible a.out format # CFLAGS = -O2 -b i486-linuxaout -fomit-frame-pointer -I../include diff --git a/games/noegnud-nethack/files/noegnud-nethack.patch b/games/noegnud-nethack/files/noegnud-nethack.patch index 94d7198..f9ae4b4 100644 --- a/games/noegnud-nethack/files/noegnud-nethack.patch +++ b/games/noegnud-nethack/files/noegnud-nethack.patch @@ -64,7 +64,7 @@ diff -urN variants/nethack-3.4.3.orig/sys/unix/Makefile.src variants/nethack-3.4 # compile normally -COMMON_CFLAGS = -DNETHACK_3_4_3 -fomit-frame-pointer -I../include `sdl-config --cflags` -+COMMON_CFLAGS = -DNETHACK_3_4_3 -fomit-frame-pointer -I../include -I/usr/include/gnu `${SDL_CONFIG} --cflags` -I${X11BASE}/include ++COMMON_CFLAGS = -DNETHACK_3_4_3 -fomit-frame-pointer -I../include -I/usr/include/gnu `${SDL_CONFIG} --cflags` -I${LOCALBASE}/include STD_CFLAGS = -O2 -ffast-math $(COMMON_CFLAGS) DBG_CFLAGS = -g -Wall -DNOEGNUDDEBUG $(COMMON_CFLAGS) @@ -73,7 +73,7 @@ diff -urN variants/nethack-3.4.3.orig/sys/unix/Makefile.src variants/nethack-3.4 +CFLAGS += $(STD_CFLAGS) -LFLAGS = -L/usr/X11R6/lib -+LFLAGS = -L${X11BASE}/lib -lgnuregex ++LFLAGS = -L${LOCALBASE}/lib -lgnuregex # OR compile backwards compatible a.out format # CFLAGS = -O2 -b i486-linuxaout -fomit-frame-pointer -I../include diff --git a/games/noegnud-slashem/files/noegnud-slashem.patch b/games/noegnud-slashem/files/noegnud-slashem.patch index 1afe738..0b61d3d 100644 --- a/games/noegnud-slashem/files/noegnud-slashem.patch +++ b/games/noegnud-slashem/files/noegnud-slashem.patch @@ -24,7 +24,7 @@ diff -urN variants/slashem-0.0.6E4F8.orig/sys/unix/Makefile.src variants/slashem # compile normally -COMMON_CFLAGS = -DSLASHEM_0_0_6E4F8 -fomit-frame-pointer -I../include `sdl-config --cflags` -+COMMON_CFLAGS = -DSLASHEM_0_0_6E4F8 -fomit-frame-pointer -I../include -I/usr/include/gnu `${SDL_CONFIG} --cflags` -I${X11BASE}/include ++COMMON_CFLAGS = -DSLASHEM_0_0_6E4F8 -fomit-frame-pointer -I../include -I/usr/include/gnu `${SDL_CONFIG} --cflags` -I${LOCALBASE}/include STD_CFLAGS = -O2 -ffast-math $(COMMON_CFLAGS) DBG_CFLAGS = -g -Wall -DNOEGNUDDEBUG $(COMMON_CFLAGS) @@ -33,7 +33,7 @@ diff -urN variants/slashem-0.0.6E4F8.orig/sys/unix/Makefile.src variants/slashem +CFLAGS += $(STD_CFLAGS) -LFLAGS = -L/usr/X11R6/lib -+LFLAGS = -L${X11BASE}/lib ++LFLAGS = -L${LOCALBASE}/lib # OR compile backwards compatible a.out format # CFLAGS = -O2 -b i486-linuxaout -fomit-frame-pointer -I../include -I/usr/X11/include # LFLAGS = -b i486-linuxaout -L/usr/X11/lib @@ -100,8 +100,8 @@ diff -urN variants/slashem-0.0.6E4F8.orig/sys/unix/Makefile.utl variants/slashem # compile normally -CFLAGS = -O2 -fomit-frame-pointer -I../include -I/usr/X11R6/include -LFLAGS = -L/usr/X11R6/lib -+CFLAGS += -O2 -fomit-frame-pointer -I../include -I${X11BASE}/include -+LFLAGS = -L${X11BASE}/lib ++CFLAGS += -O2 -fomit-frame-pointer -I../include -I${LOCALBASE}/include ++LFLAGS = -L${LOCALBASE}/lib # OR compile backwards compatible a.out format # CFLAGS = -O2 -b i486-linuxaout -fomit-frame-pointer -I../include -I/usr/X11/include # LFLAGS = -b i486-linuxaout -L/usr/X11/lib diff --git a/games/oolite/files/patch-makefile b/games/oolite/files/patch-makefile index 2c0d06d..93cd7f9 100644 --- a/games/oolite/files/patch-makefile +++ b/games/oolite/files/patch-makefile @@ -18,8 +18,8 @@ - ADDITIONAL_OBJCFLAGS = -DLOADSAVEGUI -DLINUX -DHAVE_SOUND -Wno-import `sdl-config --cflags` - oolite_LIB_DIRS += -L/usr/X11R6/lib/ + ADDITIONAL_OBJC_LIBS = -lGLU -lGL -lSDL_mixer -lSDL_image -lSDL_gfx -lgnustep-base `sdl-config --libs` -+ ADDITIONAL_CFLAGS = -I${X11BASE}/include -DLINUX `sdl-config --cflags` -+ ADDITIONAL_OBJCFLAGS = -I${X11BASE}/include -DLOADSAVEGUI -DLINUX -DHAVE_SOUND -Wno-import `sdl-config --cflags` -+ oolite_LIB_DIRS += -L${X11BASE}/lib/ ++ ADDITIONAL_CFLAGS = -I${LOCALBASE}/include -DLINUX `sdl-config --cflags` ++ ADDITIONAL_OBJCFLAGS = -I${LOCALBASE}/include -DLOADSAVEGUI -DLINUX -DHAVE_SOUND -Wno-import `sdl-config --cflags` ++ oolite_LIB_DIRS += -L${LOCALBASE}/lib/ endif OBJC_PROGRAM_NAME = oolite diff --git a/games/oonsoo/Makefile b/games/oonsoo/Makefile index feb8f7b..6a4b3f4 100644 --- a/games/oonsoo/Makefile +++ b/games/oonsoo/Makefile @@ -7,7 +7,7 @@ PORTNAME= oonsoo PORTVERSION= 1.2 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= games MASTER_SITES= ${MASTER_SITE_SUNSITE} \ http://www4.ncsu.edu/~bwmott/www/oonsoo/distributions/ @@ -17,12 +17,12 @@ EXTRACT_SUFX= .tgz MAINTAINER= ports@FreeBSD.org COMMENT= A solitaire card game for X +USE_XORG= x11 PLIST_FILES= bin/oonsoo -USE_XLIB= yes MAKEFILE= Makefile.Linux MAKE_ARGS= CC="${CXX}" CPPFLAGS="${CXXFLAGS} -ansi" \ - SYS_INCLUDE="-I${X11BASE}/include" \ - SYS_LIBS="-L${X11BASE}/lib -lX11" + SYS_INCLUDE="-I${LOCALBASE}/include" \ + SYS_LIBS="-L${LOCALBASE}/lib -lX11" do-install: ${INSTALL_PROGRAM} ${WRKSRC}/oonsoo ${PREFIX}/bin diff --git a/games/openarena/files/patch-Makefile b/games/openarena/files/patch-Makefile index ac77e4c..ca72658 100644 --- a/games/openarena/files/patch-Makefile +++ b/games/openarena/files/patch-Makefile @@ -79,7 +79,7 @@ - BASE_CFLAGS = -Wall -fno-strict-aliasing -Wimplicit -Wstrict-prototypes - - GL_CFLAGS = -I/usr/X11R6/include -+ GL_CFLAGS = -I$(X11BASE)/include ++ GL_CFLAGS = -I$(LOCALBASE)/include DEBUG_CFLAGS=$(BASE_CFLAGS) -g + RELEASE_CFLAGS=$(BASE_CFLAGS) -DNDEBUG -pipe @@ -160,7 +160,7 @@ + endif + + ifneq ($(USE_SDL_VIDEO),1) -+ CLIENT_LDFLAGS += -L$(X11BASE)/lib -lGL -lX11 -lXext -lXxf86dga -lXxf86vm ++ CLIENT_LDFLAGS += -L$(LOCALBASE)/lib -lGL -lX11 -lXext -lXxf86dga -lXxf86vm endif ifeq ($(USE_OPENAL),1) diff --git a/games/openglad/Makefile b/games/openglad/Makefile index d599b68..e809a96 100644 --- a/games/openglad/Makefile +++ b/games/openglad/Makefile @@ -9,8 +9,7 @@ PORTNAME= openglad PORTVERSION= 0.98 PORTREVISION= 5 CATEGORIES= games -MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} -MASTER_SITE_SUBDIR= snowstorm +MASTER_SITES= SF/snowstorm MAINTAINER= ports@FreeBSD.org COMMENT= SDL port of an old DOS game called Gladiator @@ -19,7 +18,7 @@ USE_GMAKE= yes GNU_CONFIGURE= yes USE_SDL= sdl mixer -CONFIGURE_ENV= CPPFLAGS="-I${X11BASE}/include" +CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" PLIST_SUB= DOCDIR=share/doc/${PORTNAME} NOT_FOR_ARCHS= sparc64 diff --git a/games/palomino/Makefile b/games/palomino/Makefile index 305a3be..f30fa2f 100644 --- a/games/palomino/Makefile +++ b/games/palomino/Makefile @@ -15,11 +15,9 @@ DISTNAME= ${PORTNAME}_${DISTVERSION} MAINTAINER= infofarmer@FreeBSD.org COMMENT= Action flight simulator with its own 3D engine -LIB_DEPENDS= glut.4:${PORTSDIR}/graphics/libglut - USE_ZIP= yes USE_PYTHON= yes -USE_GL= yes +USE_GL= glut USE_GMAKE= yes WRKSRC= ${WRKDIR}/${PORTNAME} @@ -36,7 +34,7 @@ post-patch: @${REINPLACE_CMD} -Ee 's!(-O[0-9s]?|-funroll-loops|-fno-inline)!!g'\ ${WRKSRC}/gfx/tools/cc-config.sh @${REINPLACE_CMD} -e 's|-march=$$ARCH||' ${WRKSRC}/gfx/tools/cc-config.sh - @${REINPLACE_CMD} -e 's|/usr/X11R6|${X11BASE}|g'\ + @${REINPLACE_CMD} -e 's|/usr/X11R6|${LOCALBASE}|g'\ ${WRKSRC}/gfx/tools/cc-config.sh ${WRKSRC}/gfx/tools/ld-config.sh do-install: diff --git a/games/pets/Makefile b/games/pets/Makefile index 2875cf5..1e0ca58 100644 --- a/games/pets/Makefile +++ b/games/pets/Makefile @@ -8,7 +8,7 @@ PORTNAME= pets PORTVERSION= 1.0 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= games MASTER_SITES= http://www.loria.fr/~rougier/pub/Software/ @@ -17,7 +17,6 @@ COMMENT= Funny pets to follow your mouse pointer WRKSRC= ${WRKDIR}/pet-${PORTVERSION} -USE_X_PREFIX= yes USE_GNOME= gtk20 pkgconfig SUB_FILES= pkg-message diff --git a/games/pinball/Makefile b/games/pinball/Makefile index e13b1b7..327cb13 100644 --- a/games/pinball/Makefile +++ b/games/pinball/Makefile @@ -9,8 +9,7 @@ PORTNAME= pinball PORTVERSION= 0.3.1 PORTREVISION= 8 CATEGORIES= games -MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} -MASTER_SITE_SUBDIR= ${PORTNAME} +MASTER_SITES= SF MAINTAINER= thierry@FreeBSD.org COMMENT= Emilia Pinball is a free pinball game @@ -25,9 +24,9 @@ LIB_DEPENDS= alleg.42:${PORTSDIR}/devel/allegro USE_SDL= image mixer sdl USE_GMAKE= yes -USE_GL= yes +USE_GL= gl USE_AUTOTOOLS= libtool:15 -INSTALLS_SHLIB= yes +USE_LDCONFIG= yes CONFIGURE_TARGET= --target=${MACHINE_ARCH}-unknown-freebsd${OSREL} CONFIGURE_ARGS= --prefix=${PREFIX} --without-debug @@ -35,8 +34,8 @@ CONFIGURE_ARGS= --prefix=${PREFIX} --without-debug CONFIGURE_ARGS+= --with-allegro EXTRA_LIBS= -lGL -lGLU .endif -CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS} -I${LOCALBASE}/include -I${X11BASE}/include -DRZR_LIBSTATIC" \ - LDFLAGS="${LDFLAGS} -L${LOCALBASE}/lib -L${X11BASE}/lib ${EXTRA_LIBS}" +CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS} -I${LOCALBASE}/include -DRZR_LIBSTATIC" \ + LDFLAGS="${LDFLAGS} -L${LOCALBASE}/lib ${EXTRA_LIBS}" ALLEGRO_CONFIG= ${LOCALBASE}/bin/allegro-config DOCS= README diff --git a/games/planeshift/Makefile b/games/planeshift/Makefile index f5a0ff6..15f9103 100644 --- a/games/planeshift/Makefile +++ b/games/planeshift/Makefile @@ -25,8 +25,8 @@ USE_BZIP2= yes GNU_CONFIGURE= yes USE_AUTOTOOLS= automake:15:env autoconf:261:env -CPPFLAGS+= -I${LOCALBASE}/include -I${X11BASE}/include ${PTHREAD_LIBS} -LDFLAGS+= -L${LOCALBASE}/lib -L${X11BASE}/lib +CPPFLAGS+= -I${LOCALBASE}/include ${PTHREAD_LIBS} +LDFLAGS+= -L${LOCALBASE}/lib CRYSTAL= ${LOCALBASE} CEL= ${LOCALBASE} CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL} diff --git a/games/pmars/Makefile b/games/pmars/Makefile index 3d2c064..1ab72d9 100644 --- a/games/pmars/Makefile +++ b/games/pmars/Makefile @@ -7,10 +7,9 @@ PORTNAME= pmars PORTVERSION= 0.9.2 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= games -MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} -MASTER_SITE_SUBDIR= corewar +MASTER_SITES= SF/corewar MAINTAINER= alepulver@FreeBSD.org COMMENT= A portable corewar system with ICWS'94 extensions @@ -70,11 +69,11 @@ MAKE_ARGS+= CFLAGS+="-DSMALLMEM" .endif .if !defined(WITHOUT_X11) -USE_XLIB= yes +USE_XORG= x11 TARGETS+= x11 X11_ARGS+= CFLAGS+="-DXWINGRAPHX" \ - CFLAGS+="-I${X11BASE}/include" \ - LIB+="-L${X11BASE}/lib -lX11" + CFLAGS+="-I${LOCALBASE}/include" \ + LIB+="-L${LOCALBASE}/lib -lX11" PLIST_SUB+= X11="" .else PLIST_SUB+= X11="@comment " diff --git a/games/pongix/Makefile b/games/pongix/Makefile index 9f95058..f10c53c 100644 --- a/games/pongix/Makefile +++ b/games/pongix/Makefile @@ -17,8 +17,8 @@ COMMENT= Free pong-like game USE_SDL= sdl image net USE_GMAKE= yes GNU_CONFIGURE= yes -CPPFLAGS+= -I${LOCALBASE}/include -I${X11BASE}/include -LDFLAGS+= -L${LOCALBASE}/lib -L${X11BASE}/lib ${PTHREAD} +CPPFLAGS+= -I${LOCALBASE}/include +LDFLAGS+= -L${LOCALBASE}/lib ${PTHREAD} CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL} CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}" diff --git a/games/pouetchess/Makefile b/games/pouetchess/Makefile index 20a757b..84d963f 100644 --- a/games/pouetchess/Makefile +++ b/games/pouetchess/Makefile @@ -16,7 +16,7 @@ MAINTAINER= amdmi3@amdmi3.ru COMMENT= An open-source 3D chess game USE_SDL= sdl image -USE_GL= yes +USE_GL= gl USE_GMAKE= yes WRKSRC= ${WRKDIR}/pouetChess_0.11 @@ -36,11 +36,11 @@ post-patch: "s|$$(${PRINTF} '\r')$$||" {} \; @${REINPLACE_CMD} -e 's|sdl-config|${SDL_CONFIG}|' ${WRKSRC}/Makefile - @${REINPLACE_CMD} -e '/^LIBS/ s|$$| -L${X11BASE}/lib|' ${WRKSRC}/Makefile + @${REINPLACE_CMD} -e '/^LIBS/ s|$$| -L${LOCALBASE}/lib|' ${WRKSRC}/Makefile @${REINPLACE_CMD} -e '/CXX / d' ${WRKSRC}/Makefile @${REINPLACE_CMD} -e '/CXXFLAGS.*+=/ d' ${WRKSRC}/Makefile @${REINPLACE_CMD} -e '/^CXXFLAGS/ s|:=|+=|' ${WRKSRC}/Makefile - @${REINPLACE_CMD} -e '/^CXXFLAGS/ s|$$| -I${X11BASE}/include|' ${WRKSRC}/Makefile + @${REINPLACE_CMD} -e '/^CXXFLAGS/ s|$$| -I${LOCALBASE}/include|' ${WRKSRC}/Makefile @${REINPLACE_CMD} -e 's|config\.ini|${PREFIX}/etc/pouetChess.conf|' ${WRKSRC}/src/globalInfos.cpp @${REINPLACE_CMD} -e 's|data/|${DATADIR}/|' ${WRKSRC}/src/globalInfos.h diff --git a/games/ppracer/Makefile b/games/ppracer/Makefile index 0a69bed..0f6a23e 100644 --- a/games/ppracer/Makefile +++ b/games/ppracer/Makefile @@ -20,7 +20,7 @@ LIB_DEPENDS= png.5:${PORTSDIR}/graphics/png \ USE_BZIP2= yes USE_SDL= mixer sdl -USE_GL= yes +USE_GL= gl USE_GMAKE= yes GNU_CONFIGURE= yes CONFIGURE_TARGET=--build=${ARCH}-portbld-freebsd${OSREL} @@ -28,7 +28,7 @@ USE_DOS2UNIX= yes DOS2UNIX_REGEX= .*\.(c|cpp|h) post-patch: - @${REINPLACE_CMD} -e 's,/usr/X11R6,${X11BASE},g' ${WRKSRC}/configure + @${REINPLACE_CMD} -e 's,/usr/X11R6,${LOCALBASE},g' ${WRKSRC}/configure @${REINPLACE_CMD} -e 's,RacingMode::,,' ${WRKSRC}/src/racingmode.h .include diff --git a/games/q2p/files/patch-Makefile b/games/q2p/files/patch-Makefile index 337e42f..0539957 100644 --- a/games/q2p/files/patch-Makefile +++ b/games/q2p/files/patch-Makefile @@ -161,7 +161,7 @@ +GAME_NAME=game.$(SHLIB_EXT) BASE_CFLAGS+=-I$(LOCALBASE)/include \ - -I$(X11BASE)/include \ + -I$(LOCALBASE)/include \ @@ -168,15 +165,14 @@ ifeq ($(strip $(OPTIMIZE)),YES) diff --git a/games/q2pro/files/patch-build__pre.mk b/games/q2pro/files/patch-build__pre.mk index 3ea5554..087a65b 100644 --- a/games/q2pro/files/patch-build__pre.mk +++ b/games/q2pro/files/patch-build__pre.mk @@ -10,8 +10,8 @@ -LDFLAGS_LINUX=#blank +DATADIR?=$(Q2DIR) +LIBDIR?=$(PREFIX)/lib/q2pro -+CFLAGS_LINUX=-I$(LOCALBASE)/include -I$(X11BASE)/include -DDATADIR='"$(DATADIR)"' -DLIBDIR='"$(LIBDIR)"' -+LDFLAGS_LINUX=-L$(LOCALBASE)/lib -L$(X11BASE)/lib ++CFLAGS_LINUX=-I$(LOCALBASE)/include -DDATADIR='"$(DATADIR)"' -DLIBDIR='"$(LIBDIR)"' ++LDFLAGS_LINUX=-L$(LOCALBASE)/lib SRCFILES_LINUX=#blank ASMFILES_LINUX=#blank diff --git a/games/q3base/Makefile b/games/q3base/Makefile index 5e9452a..f32f854 100644 --- a/games/q3base/Makefile +++ b/games/q3base/Makefile @@ -36,7 +36,7 @@ USE_SDL+= image .endif post-patch: - @${REINPLACE_CMD} -e 's|/usr/X11R6|${X11BASE}|' \ + @${REINPLACE_CMD} -e 's|/usr/X11R6|${LOCALBASE}|' \ -e 's/echo aout/echo elf/' ${WRKSRC}/configure @${REINPLACE_CMD} -e 's|\($${exec_prefix}/lib\)/quake3|\1/q3base|' \ ${WRKSRC}/src/Makefile.in diff --git a/games/q3cellshading/files/patch-code-unix-Makefile b/games/q3cellshading/files/patch-code-unix-Makefile index f7132cd..c3ab9b0 100644 --- a/games/q3cellshading/files/patch-code-unix-Makefile +++ b/games/q3cellshading/files/patch-code-unix-Makefile @@ -89,7 +89,7 @@ -endif #alpha test +BASE_CFLAGS = $(CFLAGS) -DDATADIR='\"$(Q3DIR)\"' -DLIBDIR='\"$(LIBDIR)\"' -pipe -+GL_CFLAGS = -I$(X11BASE)/include ++GL_CFLAGS = -I$(LOCALBASE)/include -BASE_CFLAGS = -pipe +DEBUG_CFLAGS=$(BASE_CFLAGS) -g -Wall -Werror @@ -131,7 +131,7 @@ #GLLDFLAGS=-L/usr/X11R6/lib -L$(MESADIR)/lib -lGL -lX11 -lXext -lXxf86dga -lXxf86vm #GLLDFLAGS=-L/usr/X11/lib -lGL -lX11 -lXext -lm -GLLDFLAGS=-L/usr/X11R6/lib -lGL -lX11 -lXext -lXxf86dga -lXxf86vm -+GLLDFLAGS=-L$(X11BASE)/lib -lGL -lX11 -lXext -lXxf86dga -lXxf86vm ++GLLDFLAGS=-L$(LOCALBASE)/lib -lGL -lX11 -lXext -lXxf86dga -lXxf86vm -ifeq ($(ARCH),axp) -TARGETS=\ diff --git a/games/qgo/Makefile b/games/qgo/Makefile index 2dd93e2..8e0f1ff 100644 --- a/games/qgo/Makefile +++ b/games/qgo/Makefile @@ -8,6 +8,7 @@ PORTNAME= qgo PORTVERSION= 1.5.4.2 +PORTREVISION= 1 CATEGORIES= games MASTER_SITES= SF DISTNAME= ${PORTNAME}-${PORTVERSION:R}-r${PORTVERSION:E} @@ -17,11 +18,11 @@ COMMENT= A Go board and SGF editor written with the Qt library WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION:R} +USE_XORG= x11 ice xext USE_QT_VER= 3 USE_GMAKE= yes GNU_CONFIGURE= yes CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL} -CONFIGURE_ARGS= --x-libraries=${X11BASE}/lib --x-includes=${X11BASE}/include post-patch: @${REINPLACE_CMD} -e \ diff --git a/games/qix/Makefile b/games/qix/Makefile index 73983e3..203e76e 100644 --- a/games/qix/Makefile +++ b/games/qix/Makefile @@ -7,7 +7,7 @@ PORTNAME= qix PORTVERSION= 1.2 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= games MASTER_SITES= ${MASTER_SITE_LOCAL} MASTER_SITE_SUBDIR= jmz @@ -15,15 +15,17 @@ MASTER_SITE_SUBDIR= jmz MAINTAINER= jmz@FreeBSD.org COMMENT= The classic arcade game -BUILD_DEPENDS= bdftopcf:${X_CLIENTS_PORT} -RUN_DEPENDS= mkfontdir:${X_CLIENTS_PORT} +BUILD_DEPENDS= bdftopcf:${PORTSDIR}/x11-fonts/bdftopcf \ + mkfontdir:${PORTSDIR}/x11-fonts/mkfontdir \ + mkfontscale:${PORTSDIR}/x11-fonts/mkfontscale \ + xset:${PORTSDIR}/x11/xset USE_DISPLAY= yes .if defined(WITHOUT_X11) MAKE_ARGS= NO_X11=yes .else -USE_X_PREFIX= yes +USE_XORG= x11 PLIST= pkg-plist.x11 .endif diff --git a/games/quake2forge/Makefile b/games/quake2forge/Makefile index 14db55b..6447c8c 100644 --- a/games/quake2forge/Makefile +++ b/games/quake2forge/Makefile @@ -65,7 +65,7 @@ PLIST_SUB+= GAME="@comment " .if defined(WITH_GL) USE_GL= yes -CONFIGURE_ARGS+=--with-opengl=${X11BASE} +CONFIGURE_ARGS+=--with-opengl=${LOCALBASE} PLIST_SUB+= GL="" .else CONFIGURE_ARGS+=--with-opengl=no diff --git a/games/quake2lnx/Makefile b/games/quake2lnx/Makefile index 2f3b02c..9f93516 100644 --- a/games/quake2lnx/Makefile +++ b/games/quake2lnx/Makefile @@ -7,7 +7,7 @@ PORTNAME= quake2lnx PORTVERSION= 0.16.2 -PORTREVISION= 7 +PORTREVISION= 8 CATEGORIES= games ipv6 MASTER_SITES= http://offload1.icculus.org/quake2/files/ DISTNAME= quake2-r${PORTVERSION} @@ -55,7 +55,7 @@ LIBDIR= ${PREFIX}/lib/${PORTNAME} # ### .if defined(WITH_X11) -USE_XLIB= yes +USE_XORG= x11 xxf86dga MAKE_ARGS+= BUILD_X11=YES REF_TARGETS+= softx PLIST_SUB+= X11="" diff --git a/games/quake2lnx/files/patch-Makefile b/games/quake2lnx/files/patch-Makefile index 86435fa..9d786bf 100644 --- a/games/quake2lnx/files/patch-Makefile +++ b/games/quake2lnx/files/patch-Makefile @@ -152,8 +152,8 @@ -XCFLAGS=-I/usr/X11R6/include -XLDFLAGS=-L/usr/X11R6/lib$(_LIB) -lX11 -lXext -lXxf86dga -lXxf86vm -AALDFLAGS=-lm -laa -+XCFLAGS=-I${X11BASE}/include -+XLDFLAGS=-L${X11BASE}/lib -lX11 -lXext -lXxf86dga -lXxf86vm ++XCFLAGS=-I${LOCALBASE}/include ++XLDFLAGS=-L${LOCALBASE}/lib -lX11 -lXext -lXxf86dga -lXxf86vm +AACFLAGS=-I${PREFIX}/include +AALDFLAGS=-L${PREFIX}/lib -laa @@ -161,7 +161,7 @@ +SDLCFLAGS=$(shell ${SDL_CONFIG} --cflags) ifeq ($(strip $(STATICSDL)),YES) - SDLLDFLAGS += -L/usr/X11R6/lib$(_LIB) -Wl,-Bstatic $(SDLDIR)/libSDL.a -+ SDLLDFLAGS += -L${X11BASE}/lib$(_LIB) -Wl,-Bstatic $(SDLDIR)/libSDL.a ++ SDLLDFLAGS += -L${LOCALBASE}/lib$(_LIB) -Wl,-Bstatic $(SDLDIR)/libSDL.a SDLLDFLAGS += $(SDLDIR)/libesd.a $(SDLDIR)/libartsc.a -Wl,-Bdynamic SDLLDFLAGS += -lpthread -lX11 -lXext -lXxf86dga -lXxf86vm -lXv \ -lXinerama @@ -177,8 +177,8 @@ -GLXCFLAGS=-I/usr/X11R6/include -DOPENGL -GLXLDFLAGS=-L/usr/X11R6/lib$(_LIB) -lX11 -lXext -lXxf86dga -lXxf86vm -+GLXCFLAGS=-I${X11BASE}/include -DOPENGL -+GLXLDFLAGS=-L${X11BASE}/lib$(_LIB) -lX11 -lXext -lXxf86dga -lXxf86vm ++GLXCFLAGS=-I${LOCALBASE}/include -DOPENGL ++GLXLDFLAGS=-L${LOCALBASE}/lib$(_LIB) -lX11 -lXext -lXxf86dga -lXxf86vm SDLGLCFLAGS=$(SDLCFLAGS) -DOPENGL SDLGLLDFLAGS=$(SDLLDFLAGS) diff --git a/games/quake3/files/patch-code-unix-Makefile b/games/quake3/files/patch-code-unix-Makefile index e9c97bb..56eb13a 100644 --- a/games/quake3/files/patch-code-unix-Makefile +++ b/games/quake3/files/patch-code-unix-Makefile @@ -80,7 +80,7 @@ -endif #alpha test +BASE_CFLAGS = $(CFLAGS) -DDATADIR='\"$(Q3DIR)\"' -DLIBDIR='\"$(LIBDIR)\"' -pipe -+GL_CFLAGS = -I$(X11BASE)/include ++GL_CFLAGS = -I$(LOCALBASE)/include -BASE_CFLAGS = -pipe +DEBUG_CFLAGS=$(BASE_CFLAGS) -g -Wall -Werror @@ -122,7 +122,7 @@ #GLLDFLAGS=-L/usr/X11R6/lib -L$(MESADIR)/lib -lGL -lX11 -lXext -lXxf86dga -lXxf86vm #GLLDFLAGS=-L/usr/X11/lib -lGL -lX11 -lXext -lm -GLLDFLAGS=-L/usr/X11R6/lib -lGL -lX11 -lXext -lXxf86dga -lXxf86vm -+GLLDFLAGS=-L$(X11BASE)/lib -lGL -lX11 -lXext -lXxf86dga -lXxf86vm ++GLLDFLAGS=-L$(LOCALBASE)/lib -lGL -lX11 -lXext -lXxf86dga -lXxf86vm -ifeq ($(ARCH),axp) -TARGETS=\ diff --git a/games/quakeforge/Makefile b/games/quakeforge/Makefile index 803942d..e53b89f 100644 --- a/games/quakeforge/Makefile +++ b/games/quakeforge/Makefile @@ -74,7 +74,7 @@ PLIST_SUB+= VORBIS="@comment " .if defined(WITH_XMMS) LIB_DEPENDS+= xmms.4:${PORTSDIR}/multimedia/xmms -CONFIGURE_ARGS+=--with-xmms-prefix=${X11BASE} +CONFIGURE_ARGS+=--with-xmms-prefix=${LOCALBASE} PLIST_SUB+= XMMS="" .else CONFIGURE_ARGS+=--disable-xmms diff --git a/games/quetoo/Makefile b/games/quetoo/Makefile index 25e64f3..817329f 100644 --- a/games/quetoo/Makefile +++ b/games/quetoo/Makefile @@ -19,12 +19,12 @@ COMMENT= Fast, stable, compatible, and secure Quake II client USE_BZIP2= yes USE_SDL= sdl -USE_GL= yes +USE_GL= glut USE_DOS2UNIX= src/vanctf/g_local.h GNU_CONFIGURE= yes CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" LDFLAGS="-L${LOCALBASE}/lib" \ - OPENGL_CFLAGS="-I${X11BASE}/include" OPENGL_LIBS="-L${X11BASE}/lib" + OPENGL_CFLAGS="-I${LOCALBASE}/include" OPENGL_LIBS="-L${LOCALBASE}/lib" WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION} LIBDIR= ${PREFIX}/lib/${PORTNAME} diff --git a/games/race/Makefile b/games/race/Makefile index add2d7f..045019b 100644 --- a/games/race/Makefile +++ b/games/race/Makefile @@ -17,9 +17,9 @@ COMMENT= OpenGL Racing Game USE_SDL= mixer image sdl USE_BZIP2= yes -USE_GL= yes -CFLAGS+= "-I${X11BASE}/include" -MAKE_ENV= CC="${CC} ${CFLAGS}" LDFLAGS="-L${X11BASE}/lib ${PTHREAD_LIBS}" +USE_GL= glut +CFLAGS+= "-I${LOCALBASE}/include" +MAKE_ENV= CC="${CC} ${CFLAGS}" LDFLAGS="-L${LOCALBASE}/lib ${PTHREAD_LIBS}" post-patch: @${REINPLACE_CMD} -e "s|^CC|#CC|g" \ diff --git a/games/redeclipse/files/patch-src_Makefile b/games/redeclipse/files/patch-src_Makefile index d7c8164..bbef901 100644 --- a/games/redeclipse/files/patch-src_Makefile +++ b/games/redeclipse/files/patch-src_Makefile @@ -4,14 +4,14 @@ -CXXOPTFLAGS= -O3 -fomit-frame-pointer -INCLUDES= -Ishared -Iengine -Ifpsgame -Irpggame -Ienet/include -I/usr/X11R6/include `sdl-config --cflags` -CXXFLAGS= -w -fsigned-char $(CXXOPTFLAGS) $(INCLUDES) -+INCLUDES= -Ishared -Iengine -Ifpsgame -Irpggame -Ienet/include -I$(X11BASE)/include `$(SDL_CONFIG) --cflags` ++INCLUDES= -Ishared -Iengine -Ifpsgame -Irpggame -Ienet/include -I$(LOCALBASE)/include `$(SDL_CONFIG) --cflags` +CXXFLAGS+= -Wall -fsigned-char $(INCLUDES) -PLATFORM_PREFIX=native +PLATFORM_PREFIX=FreeBSD -CLIENT_LIBS=-Lenet -lenet -L/usr/X11R6/lib `sdl-config --libs` -lSDL_image -lSDL_mixer -lz -lGL -lGLU -+CLIENT_LIBS=-Lenet -lenet `$(SDL_CONFIG) --libs` -lSDL_image -lSDL_mixer -lz -L$(X11BASE)/lib -lGL -lGLU ++CLIENT_LIBS=-Lenet -lenet `$(SDL_CONFIG) --libs` -lSDL_image -lSDL_mixer -lz -L$(LOCALBASE)/lib -lGL -lGLU CLIENT_OBJS= \ shared/tools.o \ shared/geom.o \ diff --git a/games/ri-li/Makefile b/games/ri-li/Makefile index b0d1997..b2e7819 100644 --- a/games/ri-li/Makefile +++ b/games/ri-li/Makefile @@ -21,7 +21,7 @@ GNU_CONFIGURE= yes USE_GMAKE= yes USE_SDL= sdl mixer -CONFIGURE_ENV= CPPFLAGS="`${SDL_CONFIG} --cflags` -I${X11BASE}/include" +CONFIGURE_ENV= CPPFLAGS="`${SDL_CONFIG} --cflags` -I${LOCALBASE}/include" post-patch: @${REINPLACE_CMD} -e 's|-lSDL |`${SDL_CONFIG} --libs`|' ${WRKSRC}/configure diff --git a/games/robocode/Makefile b/games/robocode/Makefile index ddc8881..96a836f 100644 --- a/games/robocode/Makefile +++ b/games/robocode/Makefile @@ -7,9 +7,9 @@ PORTNAME= robocode PORTVERSION= 1.5.1 +PORTREVISION= 1 CATEGORIES= games java -MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} -MASTER_SITE_SUBDIR=robocode +MASTER_SITES= SF/robocode DISTNAME= ${PORTNAME}-setup-${PORTVERSION} EXTRACT_SUFX= .jar @@ -24,7 +24,6 @@ JAVA_RUN= yes DATADIR= ${JAVASHAREDIR}/${PORTNAME} USE_ZIP= yes -USE_XLIB= yes NO_WRKSUBDIR= yes NO_BUILD= yes diff --git a/games/rocksndiamonds/Makefile b/games/rocksndiamonds/Makefile index 18b081a..8b6c099 100644 --- a/games/rocksndiamonds/Makefile +++ b/games/rocksndiamonds/Makefile @@ -7,7 +7,7 @@ PORTNAME= rocksndiamonds PORTVERSION= 3.2.4 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= games MASTER_SITES= http://www.artsoft.org/RELEASES/unix/rocksndiamonds/ \ http://homepages.compuserve.de/rocksndiamonds/ @@ -18,7 +18,7 @@ COMMENT= Colorful Boulderdash'n'Emerald Mine'n'Sokoban'n'Stuff USE_GMAKE= yes MAKE_ARGS= CC="${CC}" MAKE="${GMAKE}" OPTIONS="${CFLAGS}" \ RO_GAME_DIR="${DATADIR}" RW_GAME_DIR="${DATADIR}/scores" \ - X11_PATH="${X11BASE}" + X11_PATH="${LOCALBASE}" MAN1= rocksndiamonds.1 @@ -27,8 +27,7 @@ LIB_DEPENDS+= smpeg:${PORTSDIR}/multimedia/smpeg USE_SDL= image mixer net sdl ALL_TARGET= sdl .else -USE_XLIB= yes -USE_XORG= x11 +USE_XORG= x11 xpm xt ALL_TARGET= x11 .endif diff --git a/games/rtb/Makefile b/games/rtb/Makefile index 474f91b..9769d8d 100644 --- a/games/rtb/Makefile +++ b/games/rtb/Makefile @@ -7,10 +7,9 @@ PORTNAME= RealTimeBattle PORTVERSION= 1.0.8 -PORTREVISION= 3 +PORTREVISION= 4 CATEGORIES= games -MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} -MASTER_SITE_SUBDIR= ${PORTNAME:L} +MASTER_SITES= SF${PORTNAME:} DISTNAME= ${PORTNAME}-${PORTVERSION}-Ext MAINTAINER= ports@FreeBSD.org @@ -19,9 +18,7 @@ COMMENT= Robot programming game for UNIX BUILD_DEPENDS= gsed:${PORTSDIR}/textproc/gsed USE_BZIP2= yes -USE_X_PREFIX= yes USE_GNOME= gnometarget gtk20 -USE_GCC= 3.4+ USE_PERL5= yes USE_PYTHON= yes USE_GMAKE= yes diff --git a/games/rubix/Makefile b/games/rubix/Makefile index bad00d9..66808f2 100644 --- a/games/rubix/Makefile +++ b/games/rubix/Makefile @@ -7,7 +7,7 @@ PORTNAME= rubix PORTVERSION= 1.0.5 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= games MASTER_SITES= http://sed.free.fr/rubix/ @@ -15,10 +15,10 @@ MAINTAINER= ports@FreeBSD.org COMMENT= Another Rubik's cube game with a rather interesting interface USE_BZIP2= yes -USE_X_PREFIX= yes USE_GMAKE= yes +USE_XORG= x11 MAKE_ARGS= CC="${CC}" CFLAGS="${CFLAGS} -DENGLISH" \ - XINC="-I${X11BASE}/include" XLIB="-L${X11BASE}/lib -lX11" + XINC="-I${LOCALBASE}/include" XLIB="-L${LOCALBASE}/lib -lX11" ALL_TARGET= ${PORTNAME} PORTDOCS= ${DOCFILES} diff --git a/games/sarien/Makefile b/games/sarien/Makefile index 846b589..4a58c44 100644 --- a/games/sarien/Makefile +++ b/games/sarien/Makefile @@ -7,17 +7,16 @@ PORTNAME= sarien PORTVERSION= 0.7.0 -PORTREVISION= 1 +PORTREVISION= 3 CATEGORIES= games -MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} -MASTER_SITE_SUBDIR= ${PORTNAME} +MASTER_SITES= SF MAINTAINER= ports@FreeBSD.org COMMENT= Sierra AGI games interpreter GNU_CONFIGURE= yes USE_GMAKE= yes -USE_XLIB= yes +USE_XORG= x11 CFLAGS+= -I${LOCALBASE}/include diff --git a/games/sauerbraten/files/patch-src_Makefile b/games/sauerbraten/files/patch-src_Makefile index d7c8164..bbef901 100644 --- a/games/sauerbraten/files/patch-src_Makefile +++ b/games/sauerbraten/files/patch-src_Makefile @@ -4,14 +4,14 @@ -CXXOPTFLAGS= -O3 -fomit-frame-pointer -INCLUDES= -Ishared -Iengine -Ifpsgame -Irpggame -Ienet/include -I/usr/X11R6/include `sdl-config --cflags` -CXXFLAGS= -w -fsigned-char $(CXXOPTFLAGS) $(INCLUDES) -+INCLUDES= -Ishared -Iengine -Ifpsgame -Irpggame -Ienet/include -I$(X11BASE)/include `$(SDL_CONFIG) --cflags` ++INCLUDES= -Ishared -Iengine -Ifpsgame -Irpggame -Ienet/include -I$(LOCALBASE)/include `$(SDL_CONFIG) --cflags` +CXXFLAGS+= -Wall -fsigned-char $(INCLUDES) -PLATFORM_PREFIX=native +PLATFORM_PREFIX=FreeBSD -CLIENT_LIBS=-Lenet -lenet -L/usr/X11R6/lib `sdl-config --libs` -lSDL_image -lSDL_mixer -lz -lGL -lGLU -+CLIENT_LIBS=-Lenet -lenet `$(SDL_CONFIG) --libs` -lSDL_image -lSDL_mixer -lz -L$(X11BASE)/lib -lGL -lGLU ++CLIENT_LIBS=-Lenet -lenet `$(SDL_CONFIG) --libs` -lSDL_image -lSDL_mixer -lz -L$(LOCALBASE)/lib -lGL -lGLU CLIENT_OBJS= \ shared/tools.o \ shared/geom.o \ diff --git a/games/scare/Makefile b/games/scare/Makefile index 330e265..3c2adfa 100644 --- a/games/scare/Makefile +++ b/games/scare/Makefile @@ -27,8 +27,8 @@ BINFILES= scare .if defined(WITH_XGLK) PKGNAMESUFFIX= -glk -BUILD_DEPENDS+= ${X11BASE}/lib/libxglk.a:${PORTSDIR}/games/xglk -RUN_DEPENDS+= ${X11BASE}/lib/libxglk.a:${PORTSDIR}/games/xglk +BUILD_DEPENDS+= ${LOCALBASE}/lib/libxglk.a:${PORTSDIR}/games/xglk +RUN_DEPENDS+= ${LOCALBASE}/lib/libxglk.a:${PORTSDIR}/games/xglk ALL_TARGET= all glkscare diff --git a/games/scare/files/xglk.patch b/games/scare/files/xglk.patch index ef555fe..519ee48 100644 --- a/games/scare/files/xglk.patch +++ b/games/scare/files/xglk.patch @@ -5,7 +5,7 @@ # for Glk, comment out the include line. GLKPATH = $(GLKDIR)/$(GLK) -sinclude $(GLKPATH)/Make.$(GLK) -+.include "$(X11BASE)/share/xglk/Make.$(GLK)" ++.include "$(LOCALBASE)/share/xglk/Make.$(GLK)" GLKLIBS = -L$(GLKPATH) $(GLKLIB) $(LINKLIBS) # Always use the Bourne shell. @@ -14,7 +14,7 @@ os_glk.o: os_glk.c $(HEADERS) $(CC) $(GLKARCH) $(CFLAGS) -Wno-write-strings \ - -I $(GLKDIR)/$(GLK) -c -o $@ $< -+ -DLINUX_GRAPHICS -I${X11BASE}/include/xglk -c -o $@ $< ++ -DLINUX_GRAPHICS -I${LOCALBASE}/include/xglk -c -o $@ $< # Option to build an IFP plugin version of SCARE. scare_plugin.c: scare.hdr diff --git a/games/scid/files/patch-Makefile b/games/scid/files/patch-Makefile index e689cd3..03872e3 100644 --- a/games/scid/files/patch-Makefile +++ b/games/scid/files/patch-Makefile @@ -34,9 +34,9 @@ -# TCL_INCLUDE = -I /usr/local/include/tcl8.0 -I /usr/local/include/tk8.0 -# TCL_LIBRARY = -L /usr/local/lib -ltcl80 -ldl -# TK_LIBRARY = $(TCL_LIBRARY) -ltk80 -L /usr/X11/lib -lX11 -+TCL_INCLUDE = -I${LOCALBASE}/include/tcl8.4 -I${LOCALBASE}/include/tk8.4 -I${X11BASE}/include ++TCL_INCLUDE = -I${LOCALBASE}/include/tcl8.4 -I${LOCALBASE}/include/tk8.4 -I${LOCALBASE}/include +TCL_LIBRARY = -L${LOCALBASE}/lib -ltcl84 -+TK_LIBRARY = $(TCL_LIBRARY) -ltk84 -L${X11BASE}/lib -lX11 ++TK_LIBRARY = $(TCL_LIBRARY) -ltk84 -L${LOCALBASE}/lib -lX11 ######################################## diff --git a/games/scorched3d/Makefile b/games/scorched3d/Makefile index 64b1815..e4a853a 100644 --- a/games/scorched3d/Makefile +++ b/games/scorched3d/Makefile @@ -53,7 +53,7 @@ post-patch: ${WRKSRC}/src/3dsparse/aseFile.tab.cpp \ ${WRKSRC}/src/ode/config.h \ ${WRKSRC}/src/zlib/zutil.h - @${REINPLACE_CMD} -e 's,/usr/X11R6,${X11BASE},g' \ + @${REINPLACE_CMD} -e 's,/usr/X11R6,${LOCALBASE},g' \ ${WRKSRC}/configure.ac pre-configure: diff --git a/games/scourge/Makefile b/games/scourge/Makefile index 0b929c0..ba15a96 100644 --- a/games/scourge/Makefile +++ b/games/scourge/Makefile @@ -20,12 +20,12 @@ LIB_DEPENDS= freetype.9:${PORTSDIR}/print/freetype2 RUN_DEPENDS= ${DATADIR}/config/scourge.cfg:${PORTSDIR}/games/scourge-data USE_AUTOTOOLS= autoconf:261:env automake:19:env -USE_GL= yes +USE_GL= gl USE_SDL= sdl mixer net ttf USE_GMAKE= yes GNU_CONFIGURE= yes -CPPFLAGS+= -I${LOCALBASE}/include -I${X11BASE}/include ${PTHREAD_LIBS} -LDFLAGS+= -L${LOCALBASE}/lib -L${X11BASE}/lib +CPPFLAGS+= -I${LOCALBASE}/include ${PTHREAD_LIBS} +LDFLAGS+= -L${LOCALBASE}/lib CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL} CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}" diff --git a/games/sdb/Makefile b/games/sdb/Makefile index 9503d24..595d057 100644 --- a/games/sdb/Makefile +++ b/games/sdb/Makefile @@ -21,8 +21,8 @@ USE_GMAKE= yes BUILD_WRKSRC= ${WRKSRC}/src -CPPFLAGS= `${SDL_CONFIG} --cflags` -I${X11BASE}/include -LDFLAGS= `${SDL_CONFIG} --libs` -L${X11BASE}/lib -lSDL_image -lSDL_mixer -lGL -lGLU +CPPFLAGS= `${SDL_CONFIG} --cflags` -I${LOCALBASE}/include +LDFLAGS= `${SDL_CONFIG} --libs` -L${LOCALBASE}/lib -lSDL_image -lSDL_mixer -lGL -lGLU MAKE_ARGS= CPP="${CXX}" CXXFLAGS="${CXXFLAGS} ${CPPFLAGS}" LIBS="${LDFLAGS}" PLIST_FILES= bin/sdb diff --git a/games/sdlquake2/files/patch-Makefile b/games/sdlquake2/files/patch-Makefile index 5b764d4..202e3e5 100644 --- a/games/sdlquake2/files/patch-Makefile +++ b/games/sdlquake2/files/patch-Makefile @@ -6,8 +6,8 @@ +CC?=gcc +SDL_CONFIG?=sdl-config +LOCALBASE?=/usr/local -+X11BASE?=/usr/X11R6 -+CFLAGS+=-O3 -ffast-math -DDATADIR='"$(Q2DIR)"' -DLIBDIR='"$(LIBDIR)"' $(shell $(SDL_CONFIG) --cflags) -I$(X11BASE)/include ++LOCALBASE?=/usr/X11R6 ++CFLAGS+=-O3 -ffast-math -DDATADIR='"$(Q2DIR)"' -DLIBDIR='"$(LIBDIR)"' $(shell $(SDL_CONFIG) --cflags) -I$(LOCALBASE)/include + +LIBS=-lm -lz + @@ -53,7 +53,7 @@ ref_sdlgl.so: $(sdlgl_OBJ) - $(CC) -shared -g -o $@ $(shell sdl-config --libs) -lGL -ljpeg -lpng12 $^ -+ $(CC) -shared -g -o $@ $(shell $(SDL_CONFIG) --libs) -L$(X11BASE)/lib -lGL -ljpeg -lpng $^ ++ $(CC) -shared -g -o $@ $(shell $(SDL_CONFIG) --libs) -L$(LOCALBASE)/lib -lGL -ljpeg -lpng $^ ALLOBJ:=$(quake2_OBJ) $(sdlgl_OBJ) diff --git a/games/shaaft/Makefile b/games/shaaft/Makefile index 3168a3d..e4c19e1 100644 --- a/games/shaaft/Makefile +++ b/games/shaaft/Makefile @@ -9,8 +9,7 @@ PORTNAME= shaaft PORTVERSION= 0.5.0 PORTREVISION= 6 CATEGORIES= games -MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} -MASTER_SITE_SUBDIR= criticalmass +MASTER_SITES= SF/criticalmass DISTNAME= Shaaft-${PORTVERSION} MAINTAINER= ports@FreeBSD.org @@ -41,7 +40,7 @@ BROKEN= Does not compile on sparc64 post-patch: @${REINPLACE_CMD} -e 's|sdl-config|${SDL_CONFIG:T}|g ; \ s|^CXXFLAGS|#CXXFLAGS|g ; \ - s|/usr/X11R6|${X11BASE}|g ; \ + s|/usr/X11R6|${LOCALBASE}|g ; \ s|-lSDL | |g ; \ s|-lpng12|-lpng|g' ${WRKSRC}/configure @${GREP} -lR "SDL/SDL" ${WRKSRC} | ${XARGS} ${REINPLACE_CMD} -e \ diff --git a/games/shootingstar/Makefile b/games/shootingstar/Makefile index 9547544..d38b6c4 100644 --- a/games/shootingstar/Makefile +++ b/games/shootingstar/Makefile @@ -17,11 +17,11 @@ COMMENT= SDL/OpenGL top-down shooter GNU_CONFIGURE= yes USE_GMAKE= yes -USE_GL= yes +USE_GL= gl USE_SDL= sdl mixer image -CONFIGURE_ENV= LDFLAGS="-L${LOCALBASE}/lib -L${X11BASE}/lib" \ - CPPFLAGS="-I${LOCALBASE}/include -I${X11BASE}/include" \ +CONFIGURE_ENV= LDFLAGS="-L${LOCALBASE}/lib" \ + CPPFLAGS="-I${LOCALBASE}/include" \ SDL_CONFIG="${SDL_CONFIG}" .include diff --git a/games/sol/Makefile b/games/sol/Makefile index 10b35b6..940d929 100644 --- a/games/sol/Makefile +++ b/games/sol/Makefile @@ -7,7 +7,7 @@ PORTNAME= sol PORTVERSION= 1.0.7 -PORTREVISION= 3 +PORTREVISION= 4 CATEGORIES= games MASTER_SITES= http://shh.thathost.com/pub-unix/files/ @@ -22,7 +22,7 @@ LIB_DEPENDS= shhopt.1:${PORTSDIR}/devel/libshhopt \ CONFLICTS= gnome-games-* USE_GMAKE= yes -USE_XORG= xpm +USE_XORG= xpm x11 xaw MAN6= sol.6 diff --git a/games/sol/files/patch-aa b/games/sol/files/patch-aa index 4d8940a..f94aa9f 100644 --- a/games/sol/files/patch-aa +++ b/games/sol/files/patch-aa @@ -7,8 +7,8 @@ -INCDIR = -I/usr/local/include -I/usr/X11R6/include \ - -I/usr/local/include/X11 -LIBDIR = -L/usr/local/lib -L/usr/X11R6/lib -L/usr/local/lib/X11 -+INCDIR = -I${LOCALBASE}/include -I${X11BASE}/include -+LIBDIR = -L${LOCALBASE}/lib -L${X11BASE}/lib ++INCDIR = -I${LOCALBASE}/include ++LIBDIR = -L${LOCALBASE}/lib EXTRA_LIBS = -lSM -lICE # Irix at Ifi diff --git a/games/solarconquest/files/patch-makefile b/games/solarconquest/files/patch-makefile index 349e95e..16aa0fd 100644 --- a/games/solarconquest/files/patch-makefile +++ b/games/solarconquest/files/patch-makefile @@ -3,8 +3,8 @@ @@ -1,5 +1,5 @@ -LIBRARIES = `sdl-config --libs` -L/usr/X11R6/lib -lSDL_mixer -lSDL_image -lGL -lGLU -lpng -ljpeg -CFLAGS = -w -O3 -I/usr/include/GL `sdl-config --cflags` -+LIBRARIES = `${SDL_CONFIG} --libs` -L${X11BASE}/lib -lSDL_mixer -lSDL_image -lGL -lGLU -lpng -ljpeg -+CXXFLAGS += `${SDL_CONFIG} --cflags` -I${X11BASE}/include ++LIBRARIES = `${SDL_CONFIG} --libs` -L${LOCALBASE}/lib -lSDL_mixer -lSDL_image -lGL -lGLU -lpng -ljpeg ++CXXFLAGS += `${SDL_CONFIG} --cflags` -I${LOCALBASE}/include all: - g++ $(CFLAGS) -o solar ./source/main.cpp $(LIBRARIES) diff --git a/games/spacearyarya/Makefile b/games/spacearyarya/Makefile index afa0448..cb8b107 100644 --- a/games/spacearyarya/Makefile +++ b/games/spacearyarya/Makefile @@ -7,7 +7,7 @@ PORTNAME= spacearyarya PORTVERSION= 1.0.2 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= games MASTER_SITES= ftp://ftp.dvo.ru/pub/Gentoo/distfiles/ \ ftp://ftp.uni-erlangen.de/.mirrors/ftpbsd/ftp.freebsd.org/pub/FreeBSD/ports/distfiles/ \ @@ -18,12 +18,11 @@ DISTNAME= SpaceAryarya-KXL-${PORTVERSION} MAINTAINER= ports@FreeBSD.org COMMENT= Space Harrier, the ancient video game like game -BUILD_DEPENDS= ${X11BASE}/include/KXL.h:${PORTSDIR}/devel/kxl -RUN_DEPENDS= ${X11BASE}/lib/libKXL-1.1.7.so:${PORTSDIR}/devel/kxl +BUILD_DEPENDS= ${LOCALBASE}/include/KXL.h:${PORTSDIR}/devel/kxl +RUN_DEPENDS= ${LOCALBASE}/lib/libKXL-1.1.7.so:${PORTSDIR}/devel/kxl NO_CDROM= Possible copyright infringement -USE_X_PREFIX= yes GNU_CONFIGURE= yes .include diff --git a/games/spellcast/Makefile b/games/spellcast/Makefile index 0eb0472..47f8db5 100644 --- a/games/spellcast/Makefile +++ b/games/spellcast/Makefile @@ -7,7 +7,7 @@ PORTNAME= spellcast PORTVERSION= 1.2 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= games MASTER_SITES= http://www.eblong.com/zarf/ftp/ DISTNAME= ${PORTNAME} @@ -16,7 +16,7 @@ EXTRACT_SUFX= .tar.Z MAINTAINER= ports@FreeBSD.org COMMENT= Multiplayer fight with spells turn based game for X Window System -USE_X_PREFIX= yes +USE_XORG= x11 MAN6= spellcast.6 do-install: diff --git a/games/spellcast/files/patch-aa b/games/spellcast/files/patch-aa index dedeb30..ef61d96 100644 --- a/games/spellcast/files/patch-aa +++ b/games/spellcast/files/patch-aa @@ -5,13 +5,13 @@ #OTHERLIBS = -lbsdmalloc -CFLAGS = -g -I/usr/local/include -I./bitmaps -DBODYFONT=$(FONT1) \ -+CFLAGS += -I${X11BASE}/include -I./bitmaps -DBODYFONT=$(FONT1) \ ++CFLAGS += -I${LOCALBASE}/include -I./bitmaps -DBODYFONT=$(FONT1) \ -DBODYFONT_ALT=$(FONT2) -DBODYFONT_ALT2=$(FONT3) -DTRANSCRIPTDIR=$(LOGDIR) -LFLAGS = -g +LFLAGS = -XLIB = -L/usr/local/lib -lX11 -+XLIB = -L${X11BASE}/lib -lX11 ++XLIB = -L${LOCALBASE}/lib -lX11 OBJS = engine.o espells.o execute.o execute2.o emonster.o etran.o XOBJS = main.o xtext.o xquery.o xloop.o xgest.o xbutton.o xtalk.o diff --git a/games/speyes/Makefile b/games/speyes/Makefile index d39d0c5..13ca504 100644 --- a/games/speyes/Makefile +++ b/games/speyes/Makefile @@ -16,6 +16,6 @@ COMMENT= WindowMaker dockapp/xeyes clone using SouthPark characters PLIST_FILES= bin/speyes USE_IMAKE= yes -USE_XPM= yes +USE_XORG= xpm .include diff --git a/games/ssamtse/Makefile b/games/ssamtse/Makefile index 1bb4ccf..16d632e 100644 --- a/games/ssamtse/Makefile +++ b/games/ssamtse/Makefile @@ -19,9 +19,9 @@ COMMENT= Serious Sam - The Second Encounter NO_BUILD= yes USE_BZIP2= yes USE_LINUX= yes -USE_X_PREFIX= yes +USE_XLIB= yes USE_GL= yes -INSTALLS_SHLIB= yes +USE_LDCONFIG= yes NO_PACKAGE= yes # distfiles must be downloaded manually, wierd legal issues etc etc etc. SSAMDIR= ${PREFIX}/ssam diff --git a/games/ssc/Makefile b/games/ssc/Makefile index c9ef114..8b61584 100644 --- a/games/ssc/Makefile +++ b/games/ssc/Makefile @@ -9,8 +9,7 @@ PORTNAME= ssc PORTVERSION= 0.8 PORTREVISION= 5 CATEGORIES= games -MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} -MASTER_SITE_SUBDIR= ${PORTNAME}x +MASTER_SITES= SF/${PORTNAME}x MAINTAINER= ports@FreeBSD.org COMMENT= An OpenGL arcade space shoot-em-up with interesting physics @@ -21,12 +20,12 @@ LIB_DEPENDS= png.5:${PORTSDIR}/graphics/png \ USE_BZIP2= yes USE_GCC= 3.2 USE_GMAKE= yes -USE_GL= yes +USE_GL= gl USE_SDL= mixer sdl GNU_CONFIGURE= yes CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL} -CONFIGURE_ENV= CPPFLAGS="${CXXFLAGS} -I${X11BASE}/include" \ - LDFLAGS=-L${X11BASE}/lib +CONFIGURE_ENV= CPPFLAGS="${CXXFLAGS} -I${LOCALBASE}/include" \ + LDFLAGS=-L${LOCALBASE}/lib ONLY_FOR_ARCHS= i386 .include diff --git a/games/stratagus/Makefile b/games/stratagus/Makefile index d3a9524..1a33fd3 100644 --- a/games/stratagus/Makefile +++ b/games/stratagus/Makefile @@ -7,7 +7,7 @@ PORTNAME= stratagus PORTVERSION= 2.2.2 -PORTREVISION= 3 +PORTREVISION= 4 CATEGORIES= games MASTER_SITES= SF EXTRACT_SUFX= -src.tar.gz @@ -20,8 +20,7 @@ LIB_DEPENDS= png.5:${PORTSDIR}/graphics/png USE_GMAKE= yes USE_LUA= 5.0 USE_SDL= sdl -USE_XLIB= yes -USE_GL= yes +USE_GL= gl GNU_CONFIGURE= yes CFLAGS+= -I${LUA_INCDIR} CONFIGURE_ENV= LDFLAGS="-L${LUA_LIBDIR} -lm" diff --git a/games/stvef-paks/Makefile b/games/stvef-paks/Makefile index 8e79468..29cbc7c 100644 --- a/games/stvef-paks/Makefile +++ b/games/stvef-paks/Makefile @@ -19,12 +19,12 @@ COMMENT= Star Trek Voyager: Elite Forces dedicated server for Linux .pk3 files # Make this a BUILD_DEPENDS too, so that it can create the # directory hierarchy for us. -BUILD_DEPENDS= ${X11BASE}/games/stvef/linuxstvefded_1.2-static:${PORTSDIR}/games/stvef-server +BUILD_DEPENDS= ${LOCALBASE}/games/stvef/linuxstvefded_1.2-static:${PORTSDIR}/games/stvef-server RUN_DEPENDS= ${BUILD_DEPENDS} ONLY_FOR_ARCHS= i386 USE_LINUX= yes -USE_X_PREFIX= yes +USE_XLIB= yes EXTRACT_ONLY= # Don't extract anything GAMEDIR= ${PREFIX}/games/stvef/ diff --git a/games/stvef-server/Makefile b/games/stvef-server/Makefile index 03e0a54..5ec35c1 100644 --- a/games/stvef-server/Makefile +++ b/games/stvef-server/Makefile @@ -17,7 +17,7 @@ COMMENT= Star Trek Voyager: Elite Forces dedicated server for Linux ONLY_FOR_ARCHS= i386 USE_ZIP= yes USE_LINUX= yes -USE_X_PREFIX= yes +USE_XLIB= yes WRKSRC= ${WRKDIR}/Linux INSTALL_DIR= ${INSTALL} -d -o ${BINOWN} -g ${BINGRP} -m 755 diff --git a/games/sxsame/Makefile b/games/sxsame/Makefile index 7456dfd..4ccdb87 100644 --- a/games/sxsame/Makefile +++ b/games/sxsame/Makefile @@ -18,7 +18,7 @@ MAINTAINER= ports@FreeBSD.org COMMENT= A tile-removing puzzle game for the X Window system USE_IMAKE= yes -USE_XPM= yes +USE_XORG= xpm INSTALL_TARGET= install install.dir BINOWN= root BINGRP= games diff --git a/games/tank/Makefile b/games/tank/Makefile index 1ec3d66..e26d25a 100644 --- a/games/tank/Makefile +++ b/games/tank/Makefile @@ -15,7 +15,7 @@ EXTRACT_SUFX= -src.tar.gz MAINTAINER= erik@smluc.org COMMENT= A 3-D network tank game that uses OpenGL/Mesa -BUILD_DEPENDS= ${X11BASE}/lib/libaux.a:${PORTSDIR}/graphics/libaux +BUILD_DEPENDS= ${LOCALBASE}/lib/libaux.a:${PORTSDIR}/graphics/libaux USE_GMAKE= yes MAKE_ENV= PTHREAD_CFLAGS="${PTHREAD_CFLAGS}" PTHREAD_LIBS="${PTHREAD_LIBS}" diff --git a/games/tank/files/patch-Makefile.Linux.Mesa b/games/tank/files/patch-Makefile.Linux.Mesa index 92cd5a5..2f4debb 100644 --- a/games/tank/files/patch-Makefile.Linux.Mesa +++ b/games/tank/files/patch-Makefile.Linux.Mesa @@ -10,7 +10,7 @@ MESA = Mesa -INCLUDE = -I/usr/include -I$(MESA)/include -I$(MESA)/include/GL -+INCLUDE = -I$(X11BASE)/include -I$(X11BASE)/include/GL ++INCLUDE = -I$(LOCALBASE)/include -I$(LOCALBASE)/include/GL -CFLAGS = $(INCLUDE) $(ARCH) -O2 -m486 -Wall -pipe \ - -pedantic -funroll-loops -mieee-fp @@ -18,7 +18,7 @@ + -pedantic -funroll-loops -LDFLAGS = -L/usr/X11R6/lib -L$(MESA)/lib -+LDFLAGS = -L$(X11BASE)/lib ++LDFLAGS = -L$(LOCALBASE)/lib TAR = tar COMPRESS = compress -v diff --git a/games/tenebrae/files/patch-linux__Makefile.i386linux b/games/tenebrae/files/patch-linux__Makefile.i386linux index 73e7e69..9e038de 100644 --- a/games/tenebrae/files/patch-linux__Makefile.i386linux +++ b/games/tenebrae/files/patch-linux__Makefile.i386linux @@ -17,11 +17,11 @@ +#CC = /usr/bin/gcc -X11_LIBS = -L/usr/X11R6/lib -lpthread -lX11 -lXext -lXxf86dga -lXxf86vm -+X11_LIBS = -L${X11BASE}/lib -lX11 -lXext -lXxf86dga -lXxf86vm ++X11_LIBS = -L${LOCALBASE}/lib -lX11 -lXext -lXxf86dga -lXxf86vm # to enable OpenGL code in source -OPENGL_CFLAGS = -D__glx__ -DGLQUAKE -+OPENGL_CFLAGS = -D__glx__ -DGLQUAKE -I${X11BASE}/include ++OPENGL_CFLAGS = -D__glx__ -DGLQUAKE -I${LOCALBASE}/include OPENGL_LIBS = -lGL -lGLU -PNG_LIBS = -lpng -lz diff --git a/games/thevalley/Makefile b/games/thevalley/Makefile index d7e1e10..203174e 100644 --- a/games/thevalley/Makefile +++ b/games/thevalley/Makefile @@ -20,7 +20,7 @@ WRKSRC= ${WRKDIR}/${DISTNAME} USE_SDL= sdl USE_PERL5_BUILD=yes CONFIGURE_ENV= LDFLAGS="-L${LOCALBASE}/lib ${PTHREAD_LIBS}" \ - CXXFLAGS="${PTHREAD_CFLAGS} -I${X11BASE}/include" + CXXFLAGS="${PTHREAD_CFLAGS} -I${LOCALBASE}/include" PLIST_FILES= bin/valley diff --git a/games/tomatoes/Makefile b/games/tomatoes/Makefile index abe0c96..0fff303 100644 --- a/games/tomatoes/Makefile +++ b/games/tomatoes/Makefile @@ -21,7 +21,7 @@ TDATA= ${WRKDIR}/tomatoes-${PORTVERSION} USE_BZIP2= yes USE_SDL= mixer image -USE_GL= yes +USE_GL= gl USE_GMAKE= yes MAKEFILE= makefile MAKE_ARGS= CC="${CXX}" \ @@ -39,9 +39,9 @@ PLIST_FILES= bin/tomatoes \ PLIST_DIRS= %%DATADIR%%/music \ %%DATADIR%% -SDL_CFLAGS= `${SDL_CONFIG} --cflags` -I${X11BASE}/include +SDL_CFLAGS= `${SDL_CONFIG} --cflags` -I${LOCALBASE}/include SDL_LDFLAGS= `${SDL_CONFIG} --libs` -lSDL_image -lSDL_mixer \ - -L${X11BASE}/lib -lGL -lGLU + -L${LOCALBASE}/lib -lGL -lGLU .include diff --git a/games/tome/Makefile b/games/tome/Makefile index ad59939..9ee6adc 100644 --- a/games/tome/Makefile +++ b/games/tome/Makefile @@ -7,7 +7,7 @@ PORTNAME= tome PORTVERSION= 2.3.4 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= games MASTER_SITES= http://t-o-m-e.net/dl/src/ DISTNAME= tome-234-src @@ -30,15 +30,15 @@ DESKTOP_ENTRIES= "ToME" "Roguelike game based on JRR Tolkien's work" \ .include .ifndef (WITHOUT_X11) -USE_XLIB= yes +USE_XORG= x11 .endif post-patch: .ifdef (WITHOUT_X11) ${REINPLACE_CMD} -e 's/-DUSE_X11//g' ${WRKSRC}/${MAKEFILE} ${REINPLACE_CMD} -e 's/-lX11//g' ${WRKSRC}/${MAKEFILE} - ${REINPLACE_CMD} -e 's@-L$$(X11BASE)/lib@@g' ${WRKSRC}/${MAKEFILE} - ${REINPLACE_CMD} -e 's@-I$$(X11BASE)/include@@g' ${WRKSRC}/${MAKEFILE} + ${REINPLACE_CMD} -e 's@-L$$(LOCALBASE)/lib@@g' ${WRKSRC}/${MAKEFILE} + ${REINPLACE_CMD} -e 's@-I$$(LOCALBASE)/include@@g' ${WRKSRC}/${MAKEFILE} .endif .include diff --git a/games/toycars/Makefile b/games/toycars/Makefile index 822d288..7d2d4d0f 100644 --- a/games/toycars/Makefile +++ b/games/toycars/Makefile @@ -22,8 +22,8 @@ USE_GL= yes USE_GMAKE= yes GNU_CONFIGURE= yes -CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include -I${X11BASE}/include" \ - LDFLAGS="-L${LOCALBASE}lib -L${X11BASE}/lib" +CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \ + LDFLAGS="-L${LOCALBASE}lib" PORTDOCS= README diff --git a/games/trackballs/Makefile b/games/trackballs/Makefile index 875c852..cff3863 100644 --- a/games/trackballs/Makefile +++ b/games/trackballs/Makefile @@ -8,8 +8,7 @@ PORTNAME= trackballs PORTVERSION= 1.1.4 CATEGORIES= games -MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} -MASTER_SITE_SUBDIR= ${PORTNAME} +MASTER_SITES= SF MAINTAINER= ganael.laplanche@martymac.com COMMENT= SDL-based Marble Madness clone @@ -17,7 +16,7 @@ COMMENT= SDL-based Marble Madness clone LIB_DEPENDS= guile.18:${PORTSDIR}/lang/guile RUN_DEPENDS= bash:${PORTSDIR}/shells/bash -USE_GL= yes +USE_GL= gl USE_SDL= image mixer sdl ttf USE_GETTEXT= yes USE_GMAKE= yes @@ -30,8 +29,8 @@ MAKE_ARGS= mkinstalldirs="${MKDIR}" MAN6= ${PORTNAME}.6 -CPPFLAGS= -I${LOCALBASE}/include -I${X11BASE}/include -LDFLAGS= -L${LOCALBASE}/lib -L${X11BASE}/lib -lintl +CPPFLAGS= -I${LOCALBASE}/include +LDFLAGS= -L${LOCALBASE}/lib -lintl post-patch: @${REINPLACE_CMD} -e 's|install -D|$$(INSTALL)|' \ diff --git a/games/tremor/Makefile b/games/tremor/Makefile index 5e9dad9..8bd425d 100644 --- a/games/tremor/Makefile +++ b/games/tremor/Makefile @@ -7,7 +7,7 @@ PORTNAME= tremor PORTVERSION= 3.2.4.1 -PORTREVISION= 3 +PORTREVISION= 4 CATEGORIES= games MASTER_SITES= http://qudos.quakedev.com/linux/quake1/:src \ http://tremor.quakedev.com/:data @@ -25,9 +25,8 @@ LIB_DEPENDS= jpeg.9:${PORTSDIR}/graphics/jpeg \ EXTRACT_DEPENDS=unzip:${PORTSDIR}/archivers/unzip USE_BZIP2= yes -USE_GCC= 3.4+ -USE_GL= gl -USE_XORG= xxf86dga +USE_GL= gl glu +USE_XORG= x11 xxf86dga USE_GMAKE= yes ALL_TARGET= release diff --git a/games/tremor/files/patch-Makefile b/games/tremor/files/patch-Makefile index 64c76ac..033c883 100644 --- a/games/tremor/files/patch-Makefile +++ b/games/tremor/files/patch-Makefile @@ -1,6 +1,6 @@ ---- Makefile.orig Wed Jan 17 06:19:35 2007 -+++ Makefile Wed Feb 14 15:40:17 2007 -@@ -21,51 +21,44 @@ +--- ./Makefile.orig 2007-01-17 10:19:35.000000000 +0100 ++++ ./Makefile 2008-04-13 17:38:19.000000000 +0200 +@@ -21,51 +21,42 @@ BUILD_DEBUG_DIR=debug_build BUILD_RELEASE_DIR=release_build @@ -40,7 +40,6 @@ -X11BASE=/usr/X11R6 +LOCALBASE?=/usr/local +GAMEBASE=$(LOCALBASE) -+X11BASE?=/usr/X11R6 SYSBINDIR=$(LOCALBASE)/bin -DATADIR= $(GAMEBASE)/games/quake - @@ -54,7 +53,7 @@ -BASE_CFLAGS+= \ +BASE_CFLAGS+= $(CFLAGS) \ -I$(LOCALBASE)/include \ - -I$(X11BASE)/include \ +- -I$(X11BASE)/include \ -Dstricmp=strcasecmp \ -DGLQUAKE -ifeq ($(ARCH),i386) @@ -65,7 +64,7 @@ DEBUG_CFLAGS=$(BASE_CFLAGS) -g -ggdb -Wall RELEASE_CFLAGS+=$(BASE_CFLAGS) \ -fno-strict-aliasing \ -@@ -76,9 +69,6 @@ +@@ -76,9 +67,6 @@ -falign-loops=2 \ -falign-jumps=2 \ -falign-functions=2 @@ -75,7 +74,13 @@ endif ifeq ($(strip $(STRIP)),YES) -@@ -107,7 +97,7 @@ +@@ -102,12 +90,11 @@ + + X_LDFLAGS=-L$(X11BASE)/lib$(ARCH_LIBDIR) \ + -lX11 -lXext -lXxf86vm -lXxf86dga +-GLX_LDFLAGS=-L$(X11BASE)/lib$(ARCH_LIBDIR) \ +- -L$(LOCALBASE)/lib$(ARCH_LIBDIR) \ ++GLX_LDFLAGS=-L$(LOCALBASE)/lib$(ARCH_LIBDIR) \ -lGL -lGLU -ljpeg `libpng-config --libs` @@ -84,7 +89,7 @@ SDL_CFLAGS=$(shell $(SDL_CONFIG) --cflags) SDL_LDFLAGS=$(shell $(SDL_CONFIG) --libs) -@@ -405,4 +395,4 @@ +@@ -405,4 +392,4 @@ @echo @printf "Type tremor as user to start playing.\n" @echo ..... diff --git a/games/tremulous/Makefile b/games/tremulous/Makefile index 1eefd81..3cb730e 100644 --- a/games/tremulous/Makefile +++ b/games/tremulous/Makefile @@ -7,7 +7,7 @@ PORTNAME= tremulous PORTVERSION= 1.1.0 -PORTREVISION= 4 +PORTREVISION= 5 CATEGORIES= games MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:S|$|${PORTNAME}/|} \ http://0day.icculus.org/mirrors/tremulous/ \ @@ -74,8 +74,8 @@ MAKE_ENV+= USE_SDL_AUDIO=1 USE_SDL= sdl MAKE_ENV+= USE_SDL_VIDEO=1 . else -USE_GL= yes -USE_XLIB= yes +USE_GL= gl +USE_XORG= x11 xxf86dga . endif # Vorbis . if defined(WITH_VORBIS) diff --git a/games/tremulous/files/patch-Makefile b/games/tremulous/files/patch-Makefile index 270ac4a..705c84b 100644 --- a/games/tremulous/files/patch-Makefile +++ b/games/tremulous/files/patch-Makefile @@ -77,7 +77,7 @@ + BASE_CFLAGS = -I$(LOCALBASE)/include -DARCH='\"$(ARCH)\"' -Wall -fno-strict-aliasing -Wimplicit -Wstrict-prototypes - GL_CFLAGS = -I/usr/X11R6/include -+ GL_CFLAGS = -I$(X11BASE)/include ++ GL_CFLAGS = -I$(LOCALBASE)/include DEBUG_CFLAGS=$(BASE_CFLAGS) -g + RELEASE_CFLAGS=$(BASE_CFLAGS) -DNDEBUG -pipe @@ -159,7 +159,7 @@ + endif + + ifneq ($(USE_SDL_VIDEO),1) -+ CLIENT_LDFLAGS += -L$(X11BASE)/lib -lGL -lX11 -lXext -lXxf86dga -lXxf86vm ++ CLIENT_LDFLAGS += -L$(LOCALBASE)/lib -lGL -lX11 -lXext -lXxf86dga -lXxf86vm endif ifeq ($(USE_OPENAL),1) diff --git a/games/tux-aqfh/Makefile b/games/tux-aqfh/Makefile index d5c9c3b..6d56190 100644 --- a/games/tux-aqfh/Makefile +++ b/games/tux-aqfh/Makefile @@ -7,25 +7,23 @@ PORTNAME= tux_aqfh PORTVERSION= 1.0.14 -PORTREVISION= 4 +PORTREVISION= 5 CATEGORIES= games MASTER_SITES= http://tuxaqfh.sourceforge.net/dist/ MAINTAINER= ports@FreeBSD.org COMMENT= An OpenGL adventure game -BUILD_DEPENDS= ${X11BASE}/lib/libplibsl.a:${PORTSDIR}/x11-toolkits/plib -LIB_DEPENDS= glut.4:${PORTSDIR}/graphics/libglut +BUILD_DEPENDS= ${LOCALBASE}/lib/libplibsl.a:${PORTSDIR}/x11-toolkits/plib -USE_X_PREFIX= yes -USE_GL= yes +USE_GL= glut USE_GMAKE= yes GNU_CONFIGURE= yes CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}" -CONFIGURE_ARGS= --with-plib=${X11BASE} +CONFIGURE_ARGS= --with-plib=${LOCALBASE} -CPPFLAGS= -I${LOCALBASE}/include -I${X11BASE}/include ${PTHREAD_CFLAGS} -LDFLAGS= -L${LOCALBASE}/lib -L${X11BASE}/lib -lusbhid ${PTHREAD_LIBS} +CPPFLAGS= -I${LOCALBASE}/include ${PTHREAD_CFLAGS} +LDFLAGS= -L${LOCALBASE}/lib -lusbhid ${PTHREAD_LIBS} post-patch: @${REINPLACE_CMD} -e \ diff --git a/games/tuxkart/Makefile b/games/tuxkart/Makefile index b3c03d3..e107661 100644 --- a/games/tuxkart/Makefile +++ b/games/tuxkart/Makefile @@ -7,22 +7,21 @@ PORTNAME= tuxkart PORTVERSION= 0.4.0 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= games MASTER_SITES= http://tuxkart.sourceforge.net/dist/ MAINTAINER= ports@FreeBSD.org COMMENT= An OpenGL action kart racing game -BUILD_DEPENDS= ${X11BASE}/lib/libplibsl.a:${PORTSDIR}/x11-toolkits/plib +BUILD_DEPENDS= ${LOCALBASE}/lib/libplibsl.a:${PORTSDIR}/x11-toolkits/plib -USE_X_PREFIX= yes -USE_GL= yes +USE_GL= gl USE_GMAKE= yes GNU_CONFIGURE= yes -CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include -I${X11BASE}/include" \ - LIBS="-L${LOCALBASE}/lib -L${X11BASE}/lib -lusbhid" -CONFIGURE_ARGS= --with-plib=${X11BASE} +CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \ + LIBS="-L${LOCALBASE}/lib -lusbhid" +CONFIGURE_ARGS= --with-plib=${LOCALBASE} post-patch: @${REINPLACE_CMD} -e 's|-O6|${PTHREAD_CFLAGS}|g ; \ diff --git a/games/tuxracer/Makefile b/games/tuxracer/Makefile index 3f74d42..030acbd 100644 --- a/games/tuxracer/Makefile +++ b/games/tuxracer/Makefile @@ -9,8 +9,7 @@ PORTNAME= tuxracer PORTVERSION= 0.61 PORTREVISION= 6 CATEGORIES= games -MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} -MASTER_SITE_SUBDIR=tuxracer +MASTER_SITES= SF/tuxracer DISTFILES= ${PORTNAME}-${PORTVERSION}.tar.gz \ ${PORTNAME}-data-${PORTVERSION}.tar.gz @@ -20,7 +19,7 @@ COMMENT= A 3d penguin racing game using OpenGL LIB_DEPENDS= tcl83.1:${PORTSDIR}/lang/tcl83 USE_SDL= mixer sdl -USE_GL= yes +USE_GL= gl USE_GMAKE= yes USE_AUTOTOOLS= automake:14 autoconf:261 AUTOMAKE_ARGS= -a @@ -28,8 +27,8 @@ CONFIGURE_ENV= THREAD_LIB="${PTHREAD_LIBS}" MAKE_ENV= ${CONFIGURE_ENV} CONFIGURE_ARGS= --with-tcl-inc="${LOCALBASE}/include/tcl8.3" \ --with-tcl-libs="${LOCALBASE}/lib" \ - --with-gl-libs="${X11BASE}/lib" \ - --with-gl-inc="${X11BASE}/include" \ + --with-gl-libs="${LOCALBASE}/lib" \ + --with-gl-inc="${LOCALBASE}/include" \ --with-data-dir=${PREFIX}/share/tuxracer WORKDATA= ${WRKDIR}/${PORTNAME}-data-${PORTVERSION} diff --git a/games/tvp/Makefile b/games/tvp/Makefile index cfc6277..c9c32d7 100644 --- a/games/tvp/Makefile +++ b/games/tvp/Makefile @@ -14,17 +14,15 @@ MASTER_SITES= http://www3.sympatico.ca/john.vanderhoek/tim/src/president/ MAINTAINER= ports@FreeBSD.org COMMENT= Play the cardgame President (or Ass) against 3 AIs - USE_TK= yes GNU_CONFIGURE= yes -CONFIGURE_ARGS= --enable-carddir=${PREFIX}/share/games/tvp \ - --x-libraries=${X11BASE}/lib --x-includes=${X11BASE}/include +CONFIGURE_ARGS= --enable-carddir=${PREFIX}/share/games/tvp CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include/tcl8.4 \ -I${LOCALBASE}/include/tk8.4" \ - LIBS="-L${LOCALBASE}/lib -L${X11BASE}/lib \ + LIBS="-L${LOCALBASE}/lib \ -ltcl84 -ltk84 -lX11 -lm" #CFLAGS+= -lX11 -lm -ltcl84 -ltk84 \ -# -L${LOCALBASE}/lib -L${X11BASE}/lib +# -L${LOCALBASE}/lib USE_PERL5_BUILD=yes MAN6= tvp.6 diff --git a/games/uqm/Makefile b/games/uqm/Makefile index 63addab..ab47a06 100644 --- a/games/uqm/Makefile +++ b/games/uqm/Makefile @@ -92,7 +92,7 @@ do-configure: @${ECHO_MSG} INPUT_install_bindir_VALUE=\''$$prefix/bin'\' >> ${WRKSRC}/sc2/config.state @${ECHO_MSG} INPUT_install_libdir_VALUE=\''$$prefix/lib'\' >> ${WRKSRC}/sc2/config.state @${ECHO_MSG} INPUT_install_sharedir_VALUE=\''$$prefix/share'\' >> ${WRKSRC}/sc2/config.state - cd ${WRKSRC}/sc2 && ${SETENV} LOCALBASE=${LOCALBASE} X11BASE=${X11BASE} PREFIX=${PREFIX} ./build.sh uqm config + cd ${WRKSRC}/sc2 && ${SETENV} LOCALBASE=${LOCALBASE} PREFIX=${PREFIX} ./build.sh uqm config do-build: cd ${WRKSRC}/sc2 && ./build.sh uqm diff --git a/games/uqm/files/patch-build-unix-config_proginfo_host b/games/uqm/files/patch-build-unix-config_proginfo_host index c25505c..fe744a2 100644 --- a/games/uqm/files/patch-build-unix-config_proginfo_host +++ b/games/uqm/files/patch-build-unix-config_proginfo_host @@ -28,8 +28,8 @@ FreeBSD|OpenBSD) - LIB_opengl_CFLAGS="-I/usr/X11R6/include -D_THREAD_SAFE" - LIB_opengl_LDFLAGS="-L/usr/X11R6/lib -lX11 -lXext -pthread -lGL" -+ LIB_opengl_CFLAGS="-I${X11BASE}/include -D_THREAD_SAFE" -+ LIB_opengl_LDFLAGS="-L${X11BASE}/lib -lX11 -lXext -pthread -lGL" ++ LIB_opengl_CFLAGS="-I${LOCALBASE}/include -D_THREAD_SAFE" ++ LIB_opengl_LDFLAGS="-L${LOCALBASE}/lib -lX11 -lXext -pthread -lGL" ;; MINGW32*|CYGWIN*) LIB_opengl_CFLAGS="" diff --git a/games/vamos/Makefile b/games/vamos/Makefile index 1135639..4c10020 100644 --- a/games/vamos/Makefile +++ b/games/vamos/Makefile @@ -24,8 +24,7 @@ USE_GMAKE= yes USE_AUTOTOOLS= libtool:15 CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}" \ MAKEINFO="makeinfo --no-split" -CONFIGURE_ARGS= --x-includes=${X11BASE}/include --x-libraries=${X11BASE}/lib \ - ac_cv_header_boost_test_unit_test_hpp=no +CONFIGURE_ARGS= ac_cv_header_boost_test_unit_test_hpp=no USE_LDCONFIG= yes INFO= vamos diff --git a/games/vectoroids/Makefile b/games/vectoroids/Makefile index 46d18a8..df0eb31 100644 --- a/games/vectoroids/Makefile +++ b/games/vectoroids/Makefile @@ -7,14 +7,13 @@ PORTNAME= vectoroids PORTVERSION= 1.1.0 -PORTREVISION= 6 +PORTREVISION= 7 CATEGORIES= games MASTER_SITES= ftp://ftp.billsgames.com/unix/x/vectoroids/src/ MAINTAINER= ports@FreeBSD.org COMMENT= A vector-based, pretty, Asteroids clone -USE_X_PREFIX= yes USE_SDL= image mixer sdl USE_GMAKE= yes diff --git a/games/warsow/files/patch-Makefile b/games/warsow/files/patch-Makefile index 44da79a..54892ef 100644 --- a/games/warsow/files/patch-Makefile +++ b/games/warsow/files/patch-Makefile @@ -1,10 +1,12 @@ ---- Makefile Thu Jun 8 22:44:02 2006 -+++ Makefile Sat Aug 19 20:50:05 2006 -@@ -19,14 +19,14 @@ +--- Makefile.orig 2006-06-08 22:44:02.000000000 +0200 ++++ Makefile 2008-04-11 13:18:40.000000000 +0200 +@@ -18,15 +18,15 @@ + CC?=gcc - CFLAGS_COMMON=$(CFLAGS) -I. -I$(LOCALBASE)/include -I$(X11BASE)/include -D__linux__ -Wall +-CFLAGS_COMMON=$(CFLAGS) -I. -I$(LOCALBASE)/include -I$(X11BASE)/include -D__linux__ -Wall -CFLAGS_RELEASE=-O2 -fno-strict-aliasing -ffast-math -funroll-loops ++CFLAGS_COMMON=$(CFLAGS) -I. -I$(LOCALBASE)/include -D__linux__ -Wall +CFLAGS_RELEASE=-fno-strict-aliasing -ffast-math -funroll-loops CFLAGS_DEBUG=-O0 -ggdb -DDEBUG CFLAGS_COMMON+=$(CFLAGS_RELEASE) diff --git a/games/wmeyes/Makefile b/games/wmeyes/Makefile index c5b951e..f5d6779 100644 --- a/games/wmeyes/Makefile +++ b/games/wmeyes/Makefile @@ -15,7 +15,7 @@ MAINTAINER= ports@FreeBSD.org COMMENT= The world's most useless WindowMaker dock app USE_IMAKE= yes -USE_XPM= yes +USE_XORG= xpm NO_INSTALL_MANPAGES= yes PORTDOCS= README diff --git a/games/wmfortune/Makefile b/games/wmfortune/Makefile index f2da82e..6d186be 100644 --- a/games/wmfortune/Makefile +++ b/games/wmfortune/Makefile @@ -7,7 +7,7 @@ PORTNAME= wmfortune PORTVERSION= 0.241 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= games windowmaker afterstep MASTER_SITES= http://dockapps.org/files/90/128/ @@ -16,8 +16,7 @@ COMMENT= A dockapp that outputs fortune messages PLIST_FILES= bin/wmfortune USE_GMAKE= yes -USE_XPM= yes -USE_X_PREFIX= yes +USE_XORG= xpm do-install: ${INSTALL_PROGRAM} ${WRKSRC}/wmfortune ${PREFIX}/bin diff --git a/games/wmfortune/files/patch-Makefile b/games/wmfortune/files/patch-Makefile index b90d32a..45e2de1 100644 --- a/games/wmfortune/files/patch-Makefile +++ b/games/wmfortune/files/patch-Makefile @@ -8,8 +8,8 @@ $FreeBSD$ -############################ +CC ?= gcc +CFLAGS += -c -Wall -+INCDIR = -I${X11BASE}/include -I/usr/local/include -+LIBDIR = -L${X11BASE}/lib ++INCDIR = -I${LOCALBASE}/include -I/usr/local/include ++LIBDIR = -L${LOCALBASE}/lib +LIBS = -lXpm -lXext -lX11 +OBJS = wmfortune.o dockapp.o diff --git a/games/wmminichess/Makefile b/games/wmminichess/Makefile index 8e6566b..8379208 100644 --- a/games/wmminichess/Makefile +++ b/games/wmminichess/Makefile @@ -7,7 +7,7 @@ PORTNAME= wmminichess PORTVERSION= 0.8 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= games MASTER_SITES= http://www.insanum.com/miniCHESS/ DISTNAME= miniCHESS-${PORTVERSION} @@ -18,8 +18,7 @@ COMMENT= Window Maker chess dockapp game RUN_DEPENDS= ${LOCALBASE}/bin/gnuchess:${PORTSDIR}/games/gnuchess USE_GMAKE= YES -USE_X_PREFIX= YES -USE_XPM= YES +USE_XORG= xpm MAKE_ENV= PREFIX="${PREFIX}" INSTALL_PROGRAM="${INSTALL_PROGRAM}" \ LOCAL="${LOCALBASE}" MKDIR="${MKDIR}" \ INSTALL_DATA="${INSTALL_DATA}" diff --git a/games/wmpuzzle/Makefile b/games/wmpuzzle/Makefile index 6aeac4b..ff93d23 100644 --- a/games/wmpuzzle/Makefile +++ b/games/wmpuzzle/Makefile @@ -7,7 +7,7 @@ PORTNAME= wmpuzzle PORTVERSION= 0.5.0 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= games windowmaker afterstep MASTER_SITES= http://www.godisch.de/debian/wmpuzzle/ @@ -16,8 +16,7 @@ COMMENT= A dockable puzzle game for WindowMaker and AfterStep WRKSRC= ${WRKDIR}/${DISTNAME}/src -USE_X_PREFIX= yes -USE_XPM= yes +USE_XORG= xpm USE_GMAKE= yes GNU_CONFIGURE= yes CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL} @@ -26,8 +25,8 @@ CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}" MAN6= wmpuzzle.6 PLIST_FILES= bin/wmpuzzle -CPPFLAGS= -I${X11BASE}/include -DBSD -LDFLAGS= -L${X11BASE}/lib +CPPFLAGS= -I${LOCALBASE}/include -DBSD +LDFLAGS= -L${LOCALBASE}/lib do-install: ${INSTALL_PROGRAM} ${WRKSRC}/wmpuzzle ${PREFIX}/bin diff --git a/games/wmqstat/Makefile b/games/wmqstat/Makefile index b0085c0..43f6673 100644 --- a/games/wmqstat/Makefile +++ b/games/wmqstat/Makefile @@ -16,7 +16,7 @@ COMMENT= A dockapp for monitoring of various Internet game servers RUN_DEPENDS= qstat:${PORTSDIR}/games/qstat -USE_XORG= xpm +USE_XORG= xpm x11 xext PLIST_FILES= bin/${PORTNAME} PORTDOCS= README diff --git a/games/wmqstat/files/patch-Makefile b/games/wmqstat/files/patch-Makefile index 6968db3..28882d2 100644 --- a/games/wmqstat/files/patch-Makefile +++ b/games/wmqstat/files/patch-Makefile @@ -1,15 +1,17 @@ ---- Makefile.orig Fri Apr 25 05:00:09 2003 -+++ Makefile Fri Apr 25 05:00:40 2003 +--- ./Makefile.orig 2003-04-24 21:31:39.000000000 +0200 ++++ ./Makefile 2008-04-13 13:00:54.000000000 +0200 @@ -1,14 +1,11 @@ -CC = cc -+CC ?= cc - +- -X11BASE = /usr/X11R6 - LDIR = -L${X11BASE}/lib - IDIR = -I${X11BASE}/include +-LDIR = -L${X11BASE}/lib +-IDIR = -I${X11BASE}/include ++CC ?= cc -INSTALL = install -- ++LDIR = -L${LOCALBASE}/lib ++IDIR = -I${LOCALBASE}/include + LIBS = -lX11 -lXpm -lXext -CFLAGS = -O -pipe -s -Wall @@ -17,13 +19,12 @@ OBJS = appcore/wmqstat.o\ appcore/srv_proc.o\ -@@ -22,9 +19,6 @@ - +@@ -23,8 +20,5 @@ all: ${OBJS} ${CC} ${CFLAGS} -o wmqstat ${OBJS} ${LDIR} ${LIBS} -- + -install: - ${INSTALL} -o root -g wheel -m 755 wmqstat ${X11BASE}/bin - +- clean: rm -f wmqstat appcore/*.o wmgeneral/*.o core diff --git a/games/wmshuffle/Makefile b/games/wmshuffle/Makefile index 09955aa..4b1b93f 100644 --- a/games/wmshuffle/Makefile +++ b/games/wmshuffle/Makefile @@ -7,7 +7,7 @@ PORTNAME= wmshuffle PORTVERSION= 0.6 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= games windowmaker afterstep MASTER_SITES= http://www.linuks.mine.nu/dockapp/ \ http://freebsd.nsu.ru/distfiles/ @@ -16,8 +16,7 @@ MAINTAINER= ports@FreeBSD.org COMMENT= A dockable Shuffle game for WindowMaker and AfterStep USE_GMAKE= yes -USE_X_PREFIX= yes -USE_XPM= yes +USE_XORG= xpm post-install: @${MKDIR} ${DATADIR} diff --git a/games/wmshuffle/files/patch-aa b/games/wmshuffle/files/patch-aa index d8a5491..a717532 100644 --- a/games/wmshuffle/files/patch-aa +++ b/games/wmshuffle/files/patch-aa @@ -4,8 +4,8 @@ -LIBDIR = -L/usr/X11R6/lib +CC ?= gcc +CFLAGS += -c -Wall -+INCDIR = -I${X11BASE}/include -+LIBDIR = -L${X11BASE}/lib ++INCDIR = -I${LOCALBASE}/include ++LIBDIR = -L${LOCALBASE}/lib LIBS = -lXpm -lXext -lX11 OBJS = wmshuffle.o ./wmgeneral/wmgeneral.o diff --git a/games/wmtictactoe/Makefile b/games/wmtictactoe/Makefile index 0156be2..efc22be 100644 --- a/games/wmtictactoe/Makefile +++ b/games/wmtictactoe/Makefile @@ -7,7 +7,7 @@ PORTNAME= wmtictactoe PORTVERSION= 1.1 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= games windowmaker afterstep MASTER_SITES= ${MASTER_SITE_LOCAL} MASTER_SITE_SUBDIR= jim @@ -19,8 +19,7 @@ COMMENT= A dockable TicTacToe game for WindowMaker and AfterStep PLIST_FILES= bin/wmtictactoe USE_GMAKE= yes WRKSRC= ${WRKDIR}/wmtictactoe.app/wmtictactoe -USE_X_PREFIX= yes -USE_XPM= yes +USE_XORG= xpm post-install: @${ECHO} "===> Run 'wmtictactoe --help' for the available options" diff --git a/games/wmtictactoe/files/patch-aa b/games/wmtictactoe/files/patch-aa index 634a6e7..9a25147 100644 --- a/games/wmtictactoe/files/patch-aa +++ b/games/wmtictactoe/files/patch-aa @@ -4,8 +4,8 @@ -LIBDIR = -L/usr/X11R6/lib +CC ?= gcc +CFLAGS += -c -Wall -+INCLUDES = -I${X11BASE}/include -+LIBDIR = -L${X11BASE}/lib ++INCLUDES = -I${LOCALBASE}/include ++LIBDIR = -L${LOCALBASE}/lib LIBS = -lXpm -lXext -lX11 OBJS = wmtictactoe.o ../wmgeneral/wmgeneral.o diff --git a/games/wmtimebomb/files/patch-aa b/games/wmtimebomb/files/patch-aa index 37475fc..e512956 100644 --- a/games/wmtimebomb/files/patch-aa +++ b/games/wmtimebomb/files/patch-aa @@ -4,11 +4,11 @@ -XPMLIB = -L/usr/X11R6/lib -lXpm -lm -ljpeg -lpng -lz -ltiff -lgif -WMAKER = -L/usr/local/lib -lWMaker -lWINGs -lwraster -lPropList +XPMLIB = `pkg-config --libs WINGs wmlib wrlib` -+WMAKER = -L${X11BASE}/lib -lWMaker ++WMAKER = -L${LOCALBASE}/lib -lWMaker LOCAL_LIBRARIES = $(WMAKER) $(XPMLIB) $(XLIB) -+EXTRA_INCLUDES= `pkg-config --cflags WINGs wmlib wrlib` -I${X11BASE}/include ++EXTRA_INCLUDES= `pkg-config --cflags WINGs wmlib wrlib` -I${LOCALBASE}/include + SRCS = timebomb.c OBJS = timebomb.o diff --git a/games/wolf3d/files/patch-Makefile b/games/wolf3d/files/patch-Makefile index ad46434..db0d3b6 100644 --- a/games/wolf3d/files/patch-Makefile +++ b/games/wolf3d/files/patch-Makefile @@ -31,8 +31,8 @@ SLFLAGS = $(LFLAGS) -lvga -XLFLAGS = $(LFLAGS) -L/usr/X11R6/lib -lX11 -lXext -DLFLAGS = $(LFLAGS) `sdl-config --libs` -L/usr/X11R6/lib -lX11 -lXext -+XLFLAGS = $(LFLAGS) -L$(X11BASE)/lib -lX11 -lXext -+DLFLAGS = $(LFLAGS) `$(SDL_CONFIG) --libs` -L$(X11BASE)/lib -lX11 -lXext ++XLFLAGS = $(LFLAGS) -L$(LOCALBASE)/lib -lX11 -lXext ++DLFLAGS = $(LFLAGS) `$(SDL_CONFIG) --libs` -L$(LOCALBASE)/lib -lX11 -lXext NASM = nasm diff --git a/games/worldofpadman/files/patch-Makefile b/games/worldofpadman/files/patch-Makefile index 1375957..bbaf239 100644 --- a/games/worldofpadman/files/patch-Makefile +++ b/games/worldofpadman/files/patch-Makefile @@ -131,7 +131,7 @@ + BASE_CFLAGS = -DARCH='\"$(ARCH)\"' -I$(LOCALBASE)/include -Wall -fno-strict-aliasing -Wimplicit -Wstrict-prototypes - GL_CFLAGS = -I/usr/X11R6/include -+ GL_CFLAGS = -I$(X11BASE)/include ++ GL_CFLAGS = -I$(LOCALBASE)/include DEBUG_CFLAGS=$(BASE_CFLAGS) -g + RELEASE_CFLAGS=$(BASE_CFLAGS) -DNDEBUG -pipe @@ -228,7 +228,7 @@ + endif + + ifneq ($(USE_SDL_VIDEO),1) -+ CLIENT_LDFLAGS += -L$(X11BASE)/lib -lGL -lX11 -lXext -lXxf86dga -lXxf86vm ++ CLIENT_LDFLAGS += -L$(LOCALBASE)/lib -lGL -lX11 -lXext -lXxf86dga -lXxf86vm endif ifeq ($(USE_OPENAL),1) diff --git a/games/xarchon/Makefile b/games/xarchon/Makefile index a07f582..61d791f 100644 --- a/games/xarchon/Makefile +++ b/games/xarchon/Makefile @@ -7,7 +7,7 @@ PORTNAME= xarchon PORTVERSION= 0.50 -PORTREVISION= 3 +PORTREVISION= 4 CATEGORIES= games MASTER_SITES= ftp://ftp.seul.org/pub/xarchon/ \ http://xarchon.seul.org/ @@ -16,10 +16,9 @@ DISTNAME= ${PORTNAME}-${PORTVERSION} MAINTAINER= ports@FreeBSD.org COMMENT= A chess-like strategy game with battle options -USE_XLIB= yes USE_GNOME= esound gtk12 USE_GMAKE= yes -USE_XPM= yes +USE_XORG= x11 xpm ice GNU_CONFIGURE= yes MAN6= xarchon.6 diff --git a/games/xataxx/files/patch-aa b/games/xataxx/files/patch-aa index a889bc3..ca0d01a 100644 --- a/games/xataxx/files/patch-aa +++ b/games/xataxx/files/patch-aa @@ -11,7 +11,7 @@ /* DATADIR is where the boards and bitmaps will be installed */ -DATADIR = /afs/andrew.cmu.edu/usr0/games/lib/xataxx -+DATADIR = $(X11BASE)/share/xataxx ++DATADIR = $(LOCALBASE)/share/xataxx LOCAL_LIBRARIES = $(XLIB) SRCS = bits.c board.c colbits.c demo.c display.c main.c nubot.c parse.c zot.c diff --git a/games/xbl/Makefile b/games/xbl/Makefile index 667e916..e3ad50e 100644 --- a/games/xbl/Makefile +++ b/games/xbl/Makefile @@ -7,16 +7,16 @@ PORTNAME= xbl PORTVERSION= 1.1.5 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= games MASTER_SITES= http://www710.univ-lyon1.fr/~exco/XBL/ GENTOO/distfiles MAINTAINER= ports@FreeBSD.org COMMENT= A 3D block-dropping game -BUILD_DEPENDS= imake:${X_IMAKE_PORT} +BUILD_DEPENDS= imake:${PORTSDIR}/devel/imake -USE_X_PREFIX= yes +USE_XORG= x11 xext GNU_CONFIGURE= yes MAN1= xbl.1 diff --git a/games/xblood/Makefile b/games/xblood/Makefile index 8f6c708..8511fb9 100644 --- a/games/xblood/Makefile +++ b/games/xblood/Makefile @@ -7,15 +7,14 @@ PORTNAME= xblood PORTVERSION= 2.0 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= games MASTER_SITES= http://hp.vector.co.jp/authors/VA014157/myfreesoft/ MAINTAINER= ports@FreeBSD.org COMMENT= Makes the root window bloody -USE_X_PREFIX= yes - +USE_XORG= x11 MAN1= xblood.1 MANCOMPRESSED= yes PLIST_FILES= bin/xblood diff --git a/games/xboard/Makefile b/games/xboard/Makefile index 47e3283..5b3b567 100644 --- a/games/xboard/Makefile +++ b/games/xboard/Makefile @@ -24,9 +24,6 @@ STRIP= MAN6= xboard.6 zic2xpm.6 INFO= xboard -CONFIGURE_ARGS+= --x-libraries=${X11BASE}/lib \ - --x-includes=${X11BASE}/include - .if defined(WITH_XAW3D) CONFIGURE_ARGS+= "--with-Xaw3d" LIB_DEPENDS+= Xaw3d.${XAWVER}:${PORTSDIR}/x11-toolkits/Xaw3d diff --git a/games/xboing/files/patch-ac b/games/xboing/files/patch-ac index 0d9f524..c93c8dd 100644 --- a/games/xboing/files/patch-ac +++ b/games/xboing/files/patch-ac @@ -5,7 +5,7 @@ XCOMM placed. Default will be the current directory. - XBOING_DIR = . -+ XBOING_DIR = ${X11BASE}/lib/X11/xboing ++ XBOING_DIR = ${LOCALBASE}/lib/X11/xboing XCOMM These are some defines that must be set. Some may be overwritten in the XCOMM machine arch section. @@ -13,7 +13,7 @@ - XPMLIB = -L/usr/X11/lib -lXpm - XPMINCLUDE = -I/usr/X11/include/X11 + XPMLIB = -lXpm -+ XPMINCLUDE = -I${X11BASE}/include/X11 ++ XPMINCLUDE = -I${LOCALBASE}/include/X11 XBOINGINCLUDE = -I./include LEVEL_INSTALL_DIR = $(XBOING_DIR)/levels SOUNDS_DIR = $(XBOING_DIR)/sounds diff --git a/games/xbomb/Makefile b/games/xbomb/Makefile index 6cf7112..0d62591 100644 --- a/games/xbomb/Makefile +++ b/games/xbomb/Makefile @@ -25,7 +25,7 @@ PLIST_FILES= bin/xbomb \ PLIST_DIRS= lib/X11/xbomb do-build: - cd ${BUILD_WRKSRC} && ${CC} ${CFLAGS} -DX11BASE=\"${X11BASE}\" \ + cd ${BUILD_WRKSRC} && ${CC} ${CFLAGS} -DLOCALBASE=\"${LOCALBASE}\" \ `pkg-config --cflags xaw8` *.c -o xbomb \ `pkg-config --libs xaw8` diff --git a/games/xbomb/files/patch-hiscore.c b/games/xbomb/files/patch-hiscore.c index 5ea85294..6d7a940 100644 --- a/games/xbomb/files/patch-hiscore.c +++ b/games/xbomb/files/patch-hiscore.c @@ -5,9 +5,9 @@ /*+ The names of the high score tables. +*/ -static char *filenames[NTYPES]={"/var/tmp/xbomb6.hi","/var/tmp/xbomb4.hi","/var/tmp/xbomb3.hi"}; -+static char *filenames[NTYPES]={X11BASE"/lib/X11/xbomb/xbomb6.hi", -+ X11BASE"/lib/X11/xbomb/xbomb4.hi", -+ X11BASE"/lib/X11/xbomb/xbomb3.hi"}; ++static char *filenames[NTYPES]={LOCALBASE"/lib/X11/xbomb/xbomb6.hi", ++ LOCALBASE"/lib/X11/xbomb/xbomb4.hi", ++ LOCALBASE"/lib/X11/xbomb/xbomb3.hi"}; /*+ The names of the positions in the high score tables. +*/ static char pos[11][5]={"Top","2nd","3rd","4th","5th","6th","7th","8th","9th","10th","Lost"}; diff --git a/games/xbomber/Makefile b/games/xbomber/Makefile index a57b38e..8518138 100644 --- a/games/xbomber/Makefile +++ b/games/xbomber/Makefile @@ -7,7 +7,7 @@ PORTNAME= xbomber PORTVERSION= 0.8 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= games MASTER_SITES= ftp://ftp.billsgames.com/unix/x/xbomber/ DISTNAME= ${PORTNAME}.${PORTVERSION} @@ -16,8 +16,8 @@ MAINTAINER= marcus@FreeBSD.org COMMENT= A game based on "Super Bomberman" for the Super Nintendo WRKSRC= ${WRKDIR}/${PORTNAME} +USE_XORG= x11 -USE_X_PREFIX= yes MAKEFILE= makefile do-install: diff --git a/games/xbomber/files/patch-aa b/games/xbomber/files/patch-aa index f2dcd11..d4e650e 100644 --- a/games/xbomber/files/patch-aa +++ b/games/xbomber/files/patch-aa @@ -8,7 +8,7 @@ +CC?=gcc MATHLIB=-lm -CFLAGS=-I/usr/X11/include -+CFLAGS+=-I${X11BASE}/include -DDATADIR=\"${PREFIX}/share/xbomber\" ++CFLAGS+=-I${LOCALBASE}/include -DDATADIR=\"${PREFIX}/share/xbomber\" # Change this to "touch" if your system doesn't have the "strip" command: POSTPROCESS=strip @@ -22,7 +22,7 @@ # uncomment for FreeBSD -#XLIB=-L /usr/X11R6/lib -lX11 -lcompat -+XLIB=-L${X11BASE}/lib -lX11 -lcompat ++XLIB=-L${LOCALBASE}/lib -lX11 -lcompat # End of makefile user-definable variables----------------------------------- diff --git a/games/xbubble/Makefile b/games/xbubble/Makefile index 8fe9be1..4b2e7e8 100644 --- a/games/xbubble/Makefile +++ b/games/xbubble/Makefile @@ -6,7 +6,7 @@ PORTNAME= xbubble PORTVERSION= 0.5.8 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= games MASTER_SITES= ${MASTER_SITE_GENTOO} MASTER_SITE_SUBDIR= distfiles @@ -18,7 +18,7 @@ LIB_DEPENDS= png.5:${PORTSDIR}/graphics/png MAN6= xbubble.6 -USE_X_PREFIX= yes +USE_XORG= x11 xmu GNU_CONFIGURE= yes USE_GMAKE= yes diff --git a/games/xcheckers/Makefile b/games/xcheckers/Makefile index 9494083..f2d19b2 100644 --- a/games/xcheckers/Makefile +++ b/games/xcheckers/Makefile @@ -23,7 +23,7 @@ post-patch: @${REINPLACE_CMD} '/^#/d' ${WRKSRC}/Local.config pre-install: - @${REINPLACE_CMD} 's:@X11BASE@:${X11BASE}:g' \ + @${REINPLACE_CMD} 's:@LOCALBASE@:${LOCALBASE}:g' \ ${WRKSRC}/xcheckers.src/xcheckers.man .include diff --git a/games/xcheckers/files/patch-xcheckers.src_xcheckers.man b/games/xcheckers/files/patch-xcheckers.src_xcheckers.man index a5cd640..5d4a4da 100644 --- a/games/xcheckers/files/patch-xcheckers.src_xcheckers.man +++ b/games/xcheckers/files/patch-xcheckers.src_xcheckers.man @@ -8,7 +8,7 @@ $FreeBSD$ .I ~/.xcheckersrc and in -.I /usr/lib/X11/app-defaults/XCheckers. -+.I @X11BASE@/lib/X11/app-defaults/XCheckers. ++.I @LOCALBASE@/lib/X11/app-defaults/XCheckers. (First mentioned places overriding) .TP @@ -17,13 +17,13 @@ $FreeBSD$ .SH FILES -.I /usr/lib/X11/app-defaults/XCheckers, -+.I @X11BASE@/lib/X11/app-defaults/XCheckers, ++.I @LOCALBASE@/lib/X11/app-defaults/XCheckers, .br -.I /usr/lib/X11/xcheckers/scene.xpm, -+.I @X11BASE@/share/xcheckers/scene.xpm, ++.I @LOCALBASE@/share/xcheckers/scene.xpm, .br -.I /usr/lib/X11/xcheckers/stars.xpm -+.I @X11BASE@/share/xcheckers/stars.xpm ++.I @LOCALBASE@/share/xcheckers/stars.xpm .SH SEE ALSO .BR simplech (6), diff --git a/games/xcogitate/Makefile b/games/xcogitate/Makefile index 86141b6..25d24f6 100644 --- a/games/xcogitate/Makefile +++ b/games/xcogitate/Makefile @@ -7,7 +7,7 @@ PORTNAME= xcogitate PORTVERSION= 1.02 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= games MASTER_SITES= ${MASTER_SITE_LOCAL} MASTER_SITE_SUBDIR= mph @@ -16,12 +16,11 @@ MAINTAINER= ports@FreeBSD.org COMMENT= A logic game with board and stones PLIST_FILES= bin/xcogitate -USE_X_PREFIX= yes -USE_XPM= yes +USE_XORG= xpm WRKSRC= ${WRKDIR}/XCOGITATE_SOURCE do-build: - cd ${WRKSRC} && ${CC} ${CFLAGS} -I${X11BASE}/include -o xcogitate xcogitate.c -L${X11BASE}/lib -lX11 -lXpm + cd ${WRKSRC} && ${CC} ${CFLAGS} -I${LOCALBASE}/include -o xcogitate xcogitate.c -L${LOCALBASE}/lib -lX11 -lXpm do-install: @ ${INSTALL_PROGRAM} ${WRKSRC}/xcogitate ${PREFIX}/bin diff --git a/games/xdeblock/Makefile b/games/xdeblock/Makefile index 81ef274..6e2592d 100644 --- a/games/xdeblock/Makefile +++ b/games/xdeblock/Makefile @@ -18,7 +18,7 @@ COMMENT= Block action game WRKSRC= ${WRKDIR}/xdeblo_v1.0 USE_IMAKE= yes -USE_XPM= yes +USE_XORG= xpm NO_INSTALL_MANPAGES= yes post-patch: diff --git a/games/xdemineur/Makefile b/games/xdemineur/Makefile index f92feff..e5de4bd 100644 --- a/games/xdemineur/Makefile +++ b/games/xdemineur/Makefile @@ -17,7 +17,7 @@ MAINTAINER= ports@FreeBSD.org COMMENT= Another minesweeper game for the X Window System USE_IMAKE= yes -USE_XPM= yes +USE_XORG= xpm MAN1= xdemineur.1 PLIST_FILES= bin/xdemineur diff --git a/games/xdesktopwaves/Makefile b/games/xdesktopwaves/Makefile index dc24ca2..f1976b7 100644 --- a/games/xdesktopwaves/Makefile +++ b/games/xdesktopwaves/Makefile @@ -7,17 +7,15 @@ PORTNAME= xdesktopwaves PORTVERSION= 1.3 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= games -MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} -MASTER_SITE_SUBDIR= ${PORTNAME} +MASTER_SITES= SF MAINTAINER= ports@FreeBSD.org COMMENT= Simulation of water waves on the desktop -USE_X_PREFIX= yes - MAN1= xdesktopwaves.1 +USE_XORG= x11 xext PLIST_FILES= bin/xdesktopwaves diff --git a/games/xdesktopwaves/files/patch-makefile b/games/xdesktopwaves/files/patch-makefile index ab57a74a..a4eacbc 100644 --- a/games/xdesktopwaves/files/patch-makefile +++ b/games/xdesktopwaves/files/patch-makefile @@ -7,22 +7,22 @@ -CC = gcc -CFLAGS = -I/usr/X11R6/include -O2 +#CC = gcc -+CFLAGS += -I$(X11BASE)/include ++CFLAGS += -I$(LOCALBASE)/include #============================= Linker configuration ============================ -LINK = gcc -LFLAGS = -L/usr/X11R6/lib +LINK = $(CC) -+LFLAGS = -L$(X11BASE)/lib ++LFLAGS = -L$(LOCALBASE)/lib LIBS = -lm -lX11 -lXext #============================ Installer configuration ========================== -BINDIR = /usr/X11R6/bin -MAN1DIR = /usr/X11R6/man/man1 -+BINDIR = $(X11BASE)/bin -+MAN1DIR = $(X11BASE)/man/man1 ++BINDIR = $(LOCALBASE)/bin ++MAN1DIR = $(LOCALBASE)/man/man1 INSTALL = install RM = rm -f -v diff --git a/games/xevil/Makefile b/games/xevil/Makefile index 27662ad..ba410fb 100644 --- a/games/xevil/Makefile +++ b/games/xevil/Makefile @@ -7,7 +7,7 @@ PORTNAME= xevil PORTVERSION= 2.02.r2 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= games MASTER_SITES= http://www.xevil.com/download/stable/ DISTNAME= xevilsrc${PORTVERSION:S/.r/r/} @@ -15,9 +15,8 @@ DISTNAME= xevilsrc${PORTVERSION:S/.r/r/} MAINTAINER= ports@FreeBSD.org COMMENT= A fast-action, networked, anti-social, kill-everything game -USE_X_PREFIX= yes USE_ZIP= yes -USE_XPM= yes +USE_XORG= xpm MAKE_ENV= CXX="${CXX}" CXXFLAGS="${CXXFLAGS}" MAKEFILE= makefile ALL_TARGET= freebsd diff --git a/games/xevil/files/patch-aa b/games/xevil/files/patch-aa index 5ef4b4f..a786c4e 100644 --- a/games/xevil/files/patch-aa +++ b/games/xevil/files/patch-aa @@ -29,7 +29,7 @@ -INCL_DIRS="-I/usr/X11R6/include" LIBS_DIRS="-L/usr/X11R6/lib" \ + @$(MAKE) CC="${CXX}" \ +CFLAGS="-DUSE_RANDOM -DUSE_UINT_NET_LENGTH -DUNAME_USR_BIN ${CXXFLAGS}" \ -+INCL_DIRS="-I$(X11BASE)/include" LIBS_DIRS="-L$(X11BASE)/lib" \ ++INCL_DIRS="-I$(LOCALBASE)/include" LIBS_DIRS="-L$(LOCALBASE)/lib" \ OBJ_DIR=$(DEPTH)/x11/FREEBSD PCKG_NAME="freebsd" \ LIBS="-lXpm -lX11 -lm" $(TARGETS) diff --git a/games/xeyesplus/Makefile b/games/xeyesplus/Makefile index 830ba9c..4f740d1 100644 --- a/games/xeyesplus/Makefile +++ b/games/xeyesplus/Makefile @@ -7,7 +7,7 @@ PORTNAME= xeyes+ PORTVERSION= 2.02 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= games MASTER_SITES= http://www.asahi-net.or.jp/~fj9y-ynym/ DISTNAME= ${PORTNAME}${PORTVERSION} @@ -15,14 +15,13 @@ DISTNAME= ${PORTNAME}${PORTVERSION} MAINTAINER= ports@FreeBSD.org COMMENT= Horrible eyes looking at your mouse cursor -USE_X_PREFIX= yes -USE_XPM= yes +USE_XORG= xpm PLIST_FILES= bin/xeyes+ do-build: - cd ${WRKSRC} && ${CC} ${CFLAGS} -I${X11BASE}/include -DXPM -DUSLEEP \ - -o xeyes+ xeyes+.c -L${X11BASE}/lib -lX11 -lXpm -lm + cd ${WRKSRC} && ${CC} ${CFLAGS} -I${LOCALBASE}/include -DXPM -DUSLEEP \ + -o xeyes+ xeyes+.c -L${LOCALBASE}/lib -lX11 -lXpm -lm do-install: ${INSTALL_PROGRAM} ${WRKSRC}/xeyes+ ${PREFIX}/bin diff --git a/games/xfireworks/Makefile b/games/xfireworks/Makefile index 2fa8b486..92265d1 100644 --- a/games/xfireworks/Makefile +++ b/games/xfireworks/Makefile @@ -7,15 +7,14 @@ PORTNAME= xfireworks PORTVERSION= 1.4 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= games MASTER_SITES= http://hp.vector.co.jp/authors/VA014157/myfreesoft/ MAINTAINER= ports@FreeBSD.org COMMENT= Fireworks on X -USE_X_PREFIX= yes - +USE_XORG= x11 MAN1= xfireworks.1 do-install: diff --git a/games/xfireworks/files/patch-aa b/games/xfireworks/files/patch-aa index 508d6c9..dd7d742 100644 --- a/games/xfireworks/files/patch-aa +++ b/games/xfireworks/files/patch-aa @@ -1,8 +1,8 @@ ---- Makefile~ Fri Nov 3 05:36:55 2000 -+++ Makefile Fri Nov 3 05:38:11 2000 -@@ -1,7 +1,7 @@ - VERSION = XFireworks-1.3 - PKGNAME = xfireworks-1.3 +--- ./Makefile.orig 2000-08-06 04:00:44.000000000 +0200 ++++ ./Makefile 2008-04-13 01:15:22.000000000 +0200 +@@ -1,18 +1,18 @@ + VERSION = XFireworks-1.4 + PKGNAME = xfireworks-1.4 -PREFIX = /usr/X11R6 -X11BASE = /usr/X11R6 +#PREFIX = /usr/X11R6 @@ -10,9 +10,12 @@ BINDIR = $(PREFIX)/bin LIBDIR = $(PREFIX)/etc -@@ -10,9 +10,9 @@ - XINCLUDEDIR = $(X11BASE)/include - XLIBDIR = $(X11BASE)/lib + MANDIR = $(PREFIX)/man/man1 + +-XINCLUDEDIR = $(X11BASE)/include +-XLIBDIR = $(X11BASE)/lib ++XINCLUDEDIR = $(LOCALBASE)/include ++XLIBDIR = $(LOCALBASE)/lib -CFLAGS = -O +#CFLAGS = -O diff --git a/games/xfrisk/Makefile b/games/xfrisk/Makefile index 58c11a6..4ba26c4 100644 --- a/games/xfrisk/Makefile +++ b/games/xfrisk/Makefile @@ -7,7 +7,7 @@ PORTNAME= xfrisk PORTVERSION= 1.2 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= games MASTER_SITES= http://tuxick.net/xfrisk/files/ DISTNAME= XFrisk-${PORTVERSION} @@ -19,10 +19,8 @@ LIB_DEPENDS= Xaw3d.${XAWVER}:${PORTSDIR}/x11-toolkits/Xaw3d NO_CDROM= Possible trademark infringement -USE_X_PREFIX= yes NO_INSTALL_MANPAGES= yes WRKSRC= ${WRKDIR}/XFrisk USE_GMAKE= yes -MAKE_ENV+= XDIR=${X11BASE} .include diff --git a/games/xgalaga/Makefile b/games/xgalaga/Makefile index 0412ba5..862b30f 100644 --- a/games/xgalaga/Makefile +++ b/games/xgalaga/Makefile @@ -7,21 +7,18 @@ PORTNAME= xgalaga PORTVERSION= 2.0.34 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= games MASTER_SITES= http://people.FreeBSD.org/~linimon/public_distfiles/ MAINTAINER= ports@FreeBSD.org COMMENT= Galaga resurrected on X -USE_X_PREFIX= yes -USE_XPM= yes +USE_XORG= xpm xmu HAS_CONFIGURE= yes # xgalaga has a very strange usage of these variables... -CONFIGURE_ARGS= --prefix=${X11BASE}/lib/X11/xgalaga \ - --exec_prefix=${X11BASE}/bin \ - --x-includes=${X11BASE}/include \ - --x-libraries=${X11BASE}/lib +CONFIGURE_ARGS= --prefix=${LOCALBASE}/lib/X11/xgalaga \ + --exec_prefix=${LOCALBASE}/bin .if defined(NOSOUND) CONFIGURE_ARGS+= --without-sound diff --git a/games/xglk/files/patch-Makefile b/games/xglk/files/patch-Makefile index 7afde85..f5ef629 100644 --- a/games/xglk/files/patch-Makefile +++ b/games/xglk/files/patch-Makefile @@ -6,8 +6,8 @@ # for Red Hat Linux -XINCLUDE = -I/usr/X11R6/include/X11 -XLIB = -L/usr/X11R6/lib -lX11 -+XINCLUDE = -I${X11BASE}/include -+XLIB = -L${X11BASE}/lib -lX11 ++XINCLUDE = -I${LOCALBASE}/include ++XLIB = -L${LOCALBASE}/lib -lX11 # for SparcStation / Solaris #XINCLUDE = -I/usr/openwin/include diff --git a/games/xgospel/Makefile b/games/xgospel/Makefile index f955c94..f186f3e 100644 --- a/games/xgospel/Makefile +++ b/games/xgospel/Makefile @@ -6,7 +6,7 @@ PORTNAME= xgospel PORTVERSION= 1.12d -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= games MASTER_SITES= http://www.teaser.fr/~jlgailly/ @@ -15,8 +15,7 @@ COMMENT= An X11 Go (weiqi, baduk) client for the Internet Go Server LIB_DEPENDS= Xaw3d:${PORTSDIR}/x11-toolkits/Xaw3d -USE_XLIB= yes -USE_XPM= yes +USE_XORG= xpm x11 ice GNU_CONFIGURE= yes CONFIGURE_ARGS= --with-x --with-xpm --with-xaw3d diff --git a/games/xinvaders/Makefile b/games/xinvaders/Makefile index 9bfb0ff..08ff361 100644 --- a/games/xinvaders/Makefile +++ b/games/xinvaders/Makefile @@ -7,7 +7,7 @@ PORTNAME= xinvaders PORTVERSION= 2.1.1 -PORTREVISION= 4 +PORTREVISION= 5 CATEGORIES= games MASTER_SITES= ${MASTER_SITE_SUNSITE} MASTER_SITE_SUBDIR= games/arcade/invaders @@ -20,7 +20,7 @@ ONLY_FOR_ARCHS= i386 NO_CDROM= "don't sell for profit" USE_GETTEXT= yes -USE_X_PREFIX= yes +USE_XORG= x11 xmu xaw xt USE_AUTOTOOLS= automake:14 autoconf:213 AUTOMAKE_ARGS= --include-deps CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \ diff --git a/games/xinvaders3d/Makefile b/games/xinvaders3d/Makefile index 18ae5c1..28d688b 100644 --- a/games/xinvaders3d/Makefile +++ b/games/xinvaders3d/Makefile @@ -7,17 +7,16 @@ PORTNAME= xinvaders3d PORTVERSION= 1.3.6 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= games -MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} -MASTER_SITE_SUBDIR= ${PORTNAME} +MASTER_SITES= SF DISTNAME= ${PORTNAME}-${PORTVERSION}.src MAINTAINER= ports@FreeBSD.org COMMENT= 3D Vector-graphics Space Invaders clone for X +USE_XORG= x11 PLIST_FILES= bin/xinv3d -USE_X_PREFIX= yes WRKSRC= ${WRKDIR}/${PORTNAME} do-install: diff --git a/games/xinvaders3d/files/patch-aa b/games/xinvaders3d/files/patch-aa index 659bb4a..a09d750 100644 --- a/games/xinvaders3d/files/patch-aa +++ b/games/xinvaders3d/files/patch-aa @@ -6,7 +6,7 @@ -CC = gcc -XLIB = -L/usr/X11R6/lib -I/usr/X11R6/include +CC?= gcc -+XLIB = -L$(X11BASE)/lib -I$(X11BASE)/include ++XLIB = -L$(LOCALBASE)/lib -I$(LOCALBASE)/include LIBS = -lm -lX11 OBJS = game.o aliens.o player.o effects.o \ object.o camera.o main-x11.o vec4x1.o mat4x4.o diff --git a/games/xjewel/Makefile b/games/xjewel/Makefile index 244ddfc3..3bb1479 100644 --- a/games/xjewel/Makefile +++ b/games/xjewel/Makefile @@ -7,7 +7,7 @@ PORTNAME= xjewel PORTVERSION= 1.6 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= games MASTER_SITES= ftp://ftp.warwick.ac.uk/pub/x11/ \ ftp://ftp.x.org/R5contrib/ @@ -16,8 +16,9 @@ EXTRACT_SUFX= .tar.z MAINTAINER= jmz@FreeBSD.org COMMENT= X11 dropping jewels game -BUILD_DEPENDS= bdftopcf:${X_CLIENTS_PORT} -RUN_DEPENDS= mkfontdir:${X_CLIENTS_PORT} +BUILD_DEPENDS= bdftopcf:${PORTSDIR}/x11-fonts/bdftopcf \ + mkfontdir:${PORTSDIR}/x11-fonts/mkfontdir \ + mkfontscale:${PORTSDIR}/x11-fonts/mkfontscale USE_IMAKE= yes diff --git a/games/xjig/Makefile b/games/xjig/Makefile index 4e7f69d..2336804 100644 --- a/games/xjig/Makefile +++ b/games/xjig/Makefile @@ -7,7 +7,7 @@ PORTNAME= xjig PORTVERSION= 2.4 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= games MASTER_SITES= ${MASTER_SITE_XCONTRIB} MASTER_SITE_SUBDIR= games @@ -16,7 +16,7 @@ EXTRACT_SUFX= .tgz MAINTAINER= ports@FreeBSD.org COMMENT= Jigsaw puzzle game for X11 -USE_XLIB= yes +USE_XORG= x11 xproto xext MAKEFILE= Makefile.Linux MAN1= xjig.1 PLIST_FILES= bin/xjig diff --git a/games/xjig/files/patch-aa b/games/xjig/files/patch-aa index ca2c923..8f8f62c 100644 --- a/games/xjig/files/patch-aa +++ b/games/xjig/files/patch-aa @@ -15,10 +15,10 @@ ### Directories for include files of X11 and libraries -X_INCLUDE = /usr/X11R6/include -+X_INCLUDE = $(X11BASE)/include ++X_INCLUDE = $(LOCALBASE)/include -XLIB_DIR = /usr/X11R6/lib -+XLIB_DIR = $(X11BASE)/lib ++XLIB_DIR = $(LOCALBASE)/lib ################################################################### diff --git a/games/xjump/Makefile b/games/xjump/Makefile index 4143501..60364e1 100644 --- a/games/xjump/Makefile +++ b/games/xjump/Makefile @@ -7,7 +7,7 @@ PORTNAME= xjump PORTVERSION= 2.7.5 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= games MASTER_SITES= ${MASTER_SITE_DEBIAN_POOL} DISTNAME= ${PORTNAME}_${PORTVERSION}.orig @@ -18,10 +18,9 @@ COMMENT= A simple X game where one tries to jump up as many levels as possible WRKSRC= ${WRKDIR}/${DISTNAME:S/_/-/g} PLIST_FILES= bin/xjump -USE_X_PREFIX= yes -USE_XPM= yes +USE_XORG= xpm xaw MAKE_ARGS= CC="${CC} ${CFLAGS}" RECORD_FILE="/var/games/xjump.record" \ - IDIR="-I${X11BASE}/include" LDIR="-L${X11BASE}/lib" + IDIR="-I${LOCALBASE}/include" LDIR="-L${LOCALBASE}/lib" ALL_TARGET= xjump do-install: diff --git a/games/xjumpx/Makefile b/games/xjumpx/Makefile index b4c05dd..d6a4b03 100644 --- a/games/xjumpx/Makefile +++ b/games/xjumpx/Makefile @@ -7,15 +7,14 @@ PORTNAME= xjumpx PORTVERSION= 1.4 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= games MASTER_SITES= http://fenix.ne.jp/~cdrtk/soft/dl/ MAINTAINER= ports@FreeBSD.org COMMENT= Improved version of xjump -USE_X_PREFIX= yes -USE_XPM= yes +USE_XORG= xpm xaw MAN1= xjumpx.1 MANCOMPRESSED= yes diff --git a/games/xlines/Makefile b/games/xlines/Makefile index 411818b..3f78993 100644 --- a/games/xlines/Makefile +++ b/games/xlines/Makefile @@ -7,7 +7,7 @@ PORTNAME= xlines PORTVERSION= 1.1 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= games MASTER_SITES= ftp://ftp.trolltech.com/contrib/ DISTNAME= ${PORTNAME} @@ -16,7 +16,6 @@ MAINTAINER= ports@FreeBSD.org COMMENT= Remove as many balls from board as you can USE_QT_VER= 3 -USE_X_PREFIX= yes NO_WRKSUBDIR= yes MAKE_ENV= PTHREAD_CFLAGS="${PTHREAD_CFLAGS}" PTHREAD_LIBS="${PTHREAD_LIBS}" diff --git a/games/xlines/files/patch-aa b/games/xlines/files/patch-aa index 9b5e76c..3d0c53c 100644 --- a/games/xlines/files/patch-aa +++ b/games/xlines/files/patch-aa @@ -6,11 +6,11 @@ -LFLAGS=-L/usr/local/qt/lib -lqt -L/usr/X11/lib -lX11 -CC=gcc -MOC=/usr/local/qt/bin/moc -+INCDIR=${X11BASE}/include/ -+CXXFLAGS+=-I${X11BASE}/include -DSHOW_NEXT_COLORS ${PTHREAD_CFLAGS} -+LFLAGS=-L${X11BASE}/lib -lqt-mt ${PTHREAD_LIBS} ++INCDIR=${LOCALBASE}/include/ ++CXXFLAGS+=-I${LOCALBASE}/include -DSHOW_NEXT_COLORS ${PTHREAD_CFLAGS} ++LFLAGS=-L${LOCALBASE}/lib -lqt-mt ${PTHREAD_LIBS} +CC?=gcc -+MOC=${X11BASE}/bin/moc ++MOC=${LOCALBASE}/bin/moc SRC=lines.cpp lines.moc OBJECTS=lines.o diff --git a/games/xmastermind/Makefile b/games/xmastermind/Makefile index 60c8be6..279eb04 100644 --- a/games/xmastermind/Makefile +++ b/games/xmastermind/Makefile @@ -7,7 +7,7 @@ PORTNAME= xmastermind PORTVERSION= 0.1 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= games MASTER_SITES= ${MASTER_SITE_SUNSITE} MASTER_SITE_SUBDIR= games/strategy @@ -17,7 +17,7 @@ COMMENT= Mastermind game for X Window System LIB_DEPENDS= forms.1:${PORTSDIR}/x11-toolkits/xforms -USE_X_PREFIX= yes +USE_XORG= x11 xpm pre-patch: @${REINPLACE_CMD} -e 's|malloc.h|stdlib.h|' \ diff --git a/games/xmastermind/files/patch-aa b/games/xmastermind/files/patch-aa index ee322a4..afb6f35 100644 --- a/games/xmastermind/files/patch-aa +++ b/games/xmastermind/files/patch-aa @@ -5,14 +5,14 @@ CC = gcc -CFLAGS = -O2 -Wall -Wpointer-arith -Wstrict-prototypes -pedantic -ansi -+.if exists(${X11BASE}/include/X11/forms.h) -+XFORMSINC=-I${X11BASE}/include/X11 ++.if exists(${LOCALBASE}/include/X11/forms.h) ++XFORMSINC=-I${LOCALBASE}/include/X11 +.endif -+CFLAGS+= -Wall -Wpointer-arith -Wstrict-prototypes -pedantic -ansi -I${X11BASE}/include ${XFORMSINC} ++CFLAGS+= -Wall -Wpointer-arith -Wstrict-prototypes -pedantic -ansi -I${LOCALBASE}/include ${XFORMSINC} CLIBS = -lm #GRAPHLIBS = -lforms -L/usr/X11R6/lib/ -lX11 -static -GRAPHLIBS = -lforms -L/usr/X11R6/lib/ -lX11 -+GRAPHLIBS = -lforms -L${X11BASE}/lib -lX11 -lXpm ++GRAPHLIBS = -lforms -L${LOCALBASE}/lib -lX11 -lXpm MF = Makefile ALLLIBS = $(GRAPHLIBS) $(CLIBS) diff --git a/games/xmemory/Makefile b/games/xmemory/Makefile index 5276e73..c5cb48d 100644 --- a/games/xmemory/Makefile +++ b/games/xmemory/Makefile @@ -20,9 +20,9 @@ USE_IMAKE= yes MAN1= xmemory.1 post-install: - @${MKDIR} ${X11BASE}/lib/X11/xmemory + @${MKDIR} ${LOCALBASE}/lib/X11/xmemory ${INSTALL_DATA} ${WRKSRC}/home.mem ${WRKSRC}/sports.mem \ - ${X11BASE}/lib/X11/xmemory - ${LN} -sf home.mem ${X11BASE}/lib/X11/xmemory/default.mem + ${LOCALBASE}/lib/X11/xmemory + ${LN} -sf home.mem ${LOCALBASE}/lib/X11/xmemory/default.mem .include diff --git a/games/xminehunter/files/patch-aa b/games/xminehunter/files/patch-aa index 19500eb..13e1d26 100644 --- a/games/xminehunter/files/patch-aa +++ b/games/xminehunter/files/patch-aa @@ -6,12 +6,12 @@ - -INCLUDES = -I/usr/local/X11R5/include -LIBS = -L/usr/local/X11R5/lib -lXm -lXt -lXpm -lXext -lX11 -+INSTALL_BIN_PATH = ${X11BASE}/bin -+INSTALL_SCORE_PATH = ${X11BASE}/lib/X11/xminehunter ++INSTALL_BIN_PATH = ${LOCALBASE}/bin ++INSTALL_SCORE_PATH = ${LOCALBASE}/lib/X11/xminehunter -+INCLUDES = -I${X11BASE}/include -+LIBS = -L${X11BASE}/lib ${MOTIFLIB} -lXt -lXpm -lXext -lX11 -+LIBS+= -Wl,-rpath,${X11BASE}/lib ++INCLUDES = -I${LOCALBASE}/include ++LIBS = -L${LOCALBASE}/lib ${MOTIFLIB} -lXt -lXpm -lXext -lX11 ++LIBS+= -Wl,-rpath,${LOCALBASE}/lib CC = g++ diff --git a/games/xmines/Makefile b/games/xmines/Makefile index d9c7b92..20fa6b2 100644 --- a/games/xmines/Makefile +++ b/games/xmines/Makefile @@ -7,7 +7,7 @@ PORTNAME= xmines PORTVERSION= 1.0 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= games MASTER_SITES= ${MASTER_SITE_SUNSITE} MASTER_SITE_SUBDIR= games/strategy @@ -16,7 +16,7 @@ DISTNAME= ${PORTNAME} MAINTAINER= ports@FreeBSD.org COMMENT= Minesweeper game for the X Window System -USE_X_PREFIX= yes +USE_XORG= x11 xt post-install: .if !defined(NOPORTDOCS) diff --git a/games/xmines/files/patch-aa b/games/xmines/files/patch-aa index b31bdc3..d154385 100644 --- a/games/xmines/files/patch-aa +++ b/games/xmines/files/patch-aa @@ -12,8 +12,8 @@ -SCOREFILES = /usr/X386/lib/X11/games +CFLAGS += -DSCOREfILE=\"$(SCOREFILES)/scores\" +CC ?= gcc -+INCLUDE = ${X11BASE}/include -+LIBRARY = ${X11BASE}/lib ++INCLUDE = ${LOCALBASE}/include ++LIBRARY = ${LOCALBASE}/lib +BIN = ${PREFIX}/bin +SCOREFILES = ${PREFIX}/share/xmines diff --git a/games/xmoto/Makefile b/games/xmoto/Makefile index 25fc5b4..bf04c7d58 100644 --- a/games/xmoto/Makefile +++ b/games/xmoto/Makefile @@ -18,7 +18,7 @@ COMMENT= Challenging 2D motocross platform game LIB_DEPENDS= png.5:${PORTSDIR}/graphics/png \ jpeg.9:${PORTSDIR}/graphics/jpeg \ curl.4:${PORTSDIR}/ftp/curl -BUILD_DEPENDS= ${X11BASE}/lib/libode.a:${PORTSDIR}/devel/ode +BUILD_DEPENDS= ${LOCALBASE}/lib/libode.a:${PORTSDIR}/devel/ode GNU_CONFIGURE= yes USE_GMAKE= yes @@ -30,8 +30,8 @@ USE_DOS2UNIX= src/*.cpp src/*.h CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL} CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}" -CPPFLAGS= -I${LOCALBASE}/include -I${X11BASE}/include -I${LUA_INCDIR} -LDFLAGS= -L${LOCALBASE}/lib -L${X11BASE}/lib -L${LUA_LIBDIR} +CPPFLAGS= -I${LOCALBASE}/include -I${LUA_INCDIR} +LDFLAGS= -L${LOCALBASE}/lib -L${LUA_LIBDIR} WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION} diff --git a/games/xmris/Makefile b/games/xmris/Makefile index 5defc82..ee56d450 100644 --- a/games/xmris/Makefile +++ b/games/xmris/Makefile @@ -27,6 +27,6 @@ post-configure: -e 's/^INSTMRISFLAGS.*/INSTMRISFLAGS = \$(OWNER) -m 2555/' Makefile post-install: - @${CHMOD} g+w ${X11BASE}/lib/X11/xmris + @${CHMOD} g+w ${LOCALBASE}/lib/X11/xmris .include diff --git a/games/xoids/Makefile b/games/xoids/Makefile index 2c138ba..e4ae702 100644 --- a/games/xoids/Makefile +++ b/games/xoids/Makefile @@ -16,7 +16,7 @@ MAINTAINER= ports@FreeBSD.org COMMENT= X Window Asteroids style game with full color pixmaps USE_IMAKE= yes -USE_XPM= yes +USE_XORG= xpm MAN6= xoids.6 post-extract: diff --git a/games/xoj/Makefile b/games/xoj/Makefile index fb5f845..d1ee62f 100644 --- a/games/xoj/Makefile +++ b/games/xoj/Makefile @@ -16,7 +16,7 @@ EXTRACT_SUFX= .tgz MAINTAINER= ports@FreeBSD.org COMMENT= O. J. Simpson Simulator root window demo -USE_XPM= yes +USE_XORG= xpm USE_IMAKE= yes NO_INSTALL_MANPAGES= yes PLIST_FILES= bin/xoj diff --git a/games/xonix/Makefile b/games/xonix/Makefile index 76f5f7a..f3c44ef 100644 --- a/games/xonix/Makefile +++ b/games/xonix/Makefile @@ -15,7 +15,7 @@ MAINTAINER= joerg@FreeBSD.org COMMENT= Try to win land without colliding with `flyers' and `eaters' USE_IMAKE= yes -USE_XPM= yes +USE_XORG= xpm MAN1= xonix.1 .include diff --git a/games/xonotic/Makefile b/games/xonotic/Makefile index c206cd7..1404c86 100644 --- a/games/xonotic/Makefile +++ b/games/xonotic/Makefile @@ -7,9 +7,9 @@ PORTNAME= nexuiz PORTVERSION= 2.4 +PORTREVISION= 1 CATEGORIES= games -MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} -MASTER_SITE_SUBDIR= ${PORTNAME} +MASTER_SITES= SF DISTNAME= ${PORTNAME}-${PORTVERSION:S/.//g} DISTFILES= ${DISTNAME}${EXTRACT_SUFX} @@ -49,7 +49,8 @@ RUN_DEPENDS= ${LOCALBASE}/lib/libvorbis.so:${PORTSDIR}/audio/libvorbis \ .endif .if !defined(WITHOUT_CLIENT) -USE_GL= yes +USE_GL= glut +USE_XORG= x11 xpm xxf86vm xxf86dga xext ALL_TARGET+= cl-release PLIST_SUB+= CLIENT="" .else @@ -74,7 +75,7 @@ PLIST_SUB+= SERVER="@comment " post-extract: @${EXTRACT_CMD} ${WRKDIR}/Nexuiz/sources/enginesource20080229.zip \ -d ${WRKDIR}/Nexuiz/sources - @${REINPLACE_CMD} -e 's,/usr/X11R6,${X11BASE},' ${WRKSRC}/${MAKEFILE} + @${REINPLACE_CMD} -e 's,/usr/X11R6,${LOCALBASE},' ${WRKSRC}/${MAKEFILE} @${REINPLACE_CMD} -E 's,(fs_basedir\, )"",\1"${DATADIR}",' ${WRKSRC}/fs.c do-build: diff --git a/games/xosmulti/Makefile b/games/xosmulti/Makefile index cc304de..ccf4af9 100644 --- a/games/xosmulti/Makefile +++ b/games/xosmulti/Makefile @@ -7,7 +7,7 @@ PORTNAME= xosmulti PORTVERSION= 1.00 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= games MASTER_SITES= ${MASTER_SITE_LOCAL} MASTER_SITE_SUBDIR= flathill @@ -18,8 +18,7 @@ MAINTAINER= ports@FreeBSD.org COMMENT= A little girl cartoon on the top of the active window WRKSRC= ${WRKDIR}/xosmulti -USE_X_PREFIX= yes -USE_XORG= xbitmaps +USE_XORG= xbitmaps x11 xt xi do-install: ${INSTALL_PROGRAM} ${WRKSRC}/xosmulti ${PREFIX}/bin diff --git a/games/xosmulti/files/patch-aa b/games/xosmulti/files/patch-aa index 3f3eadd..e7190fb 100644 --- a/games/xosmulti/files/patch-aa +++ b/games/xosmulti/files/patch-aa @@ -29,7 +29,7 @@ -# INC_DIR = -I/usr/X11R6/include -# LIB_DIR = -L/usr/X11R6/lib -+INC_DIR = -I${X11BASE}/include -+LIB_DIR = -L${X11BASE}/lib ++INC_DIR = -I${LOCALBASE}/include ++LIB_DIR = -L${LOCALBASE}/lib all: $(TARGET) diff --git a/games/xpat2/Makefile b/games/xpat2/Makefile index d3f4f2a..7791706 100644 --- a/games/xpat2/Makefile +++ b/games/xpat2/Makefile @@ -18,7 +18,7 @@ MAINTAINER= ports@FreeBSD.org COMMENT= An X11 solitaire game with 14 variations USE_IMAKE= yes -USE_XPM= yes +USE_XORG= xpm MAN6= xpat2.6 MANCOMPRESSED= no diff --git a/games/xpilot-ng-server/Makefile b/games/xpilot-ng-server/Makefile index 0cbd0f5..0e4f38f 100644 --- a/games/xpilot-ng-server/Makefile +++ b/games/xpilot-ng-server/Makefile @@ -7,10 +7,9 @@ PORTNAME= xpilot-ng PORTVERSION= 4.7.2 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= games -MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} -MASTER_SITE_SUBDIR= xpilot +MASTER_SITES= SF/xpilot PKGNAMESUFFIX?= -server MAINTAINER= ports@FreeBSD.org @@ -44,10 +43,8 @@ MAN6= xpilot-ng-replay.6 \ xpilot-ng-x11.6 \ xpilot-ng-xp-mapedit.6 -USE_X_PREFIX= yes - -CPPFLAGS+= -I${X11BASE}/include -LDFLAGS+= -I${X11BASE}/include +CPPFLAGS+= -I${LOCALBASE}/include +LDFLAGS+= -I${LOCALBASE}/include OPTIONS= SDL "SDL/OpenGL client" on \ SOUND "Sound" off diff --git a/games/xpuzzletama/Makefile b/games/xpuzzletama/Makefile index a0d0fbc..14991d7 100644 --- a/games/xpuzzletama/Makefile +++ b/games/xpuzzletama/Makefile @@ -18,7 +18,7 @@ COMMENT= Puzzle tama, a tetris like game WRKSRC= ${WRKDIR}/${PORTNAME} USE_IMAKE= yes -USE_XPM= yes +USE_XORG= xpm NO_INSTALL_MANPAGES= yes PLIST_FILES= bin/xpuzzletama lib/X11/xpuzzletama/tama_score diff --git a/games/xquarto/Makefile b/games/xquarto/Makefile index 0ba738d..bc9bc4e 100644 --- a/games/xquarto/Makefile +++ b/games/xquarto/Makefile @@ -15,7 +15,7 @@ MAINTAINER= ports@FreeBSD.org COMMENT= X version of simple but tricky board game USE_IMAKE= yes -USE_XPM= yes +USE_XORG= xpm MAN6= xquarto.6 PLIST_FILES= bin/xquarto diff --git a/games/xracer/Makefile b/games/xracer/Makefile index e196240..18d8f52 100644 --- a/games/xracer/Makefile +++ b/games/xracer/Makefile @@ -21,8 +21,8 @@ LIB_DEPENDS= jpeg.9:${PORTSDIR}/graphics/jpeg \ USE_GMAKE= yes USE_AUTOTOOLS= automake:14 autoconf:213 -CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include -I${X11BASE}/include ${PTHREAD_CFLAGS}" \ - LIBS="-L${LOCALBASE}/lib -L${X11BASE}/lib ${PTHREAD_LIBS}" +CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include ${PTHREAD_CFLAGS}" \ + LIBS="-L${LOCALBASE}/lib ${PTHREAD_LIBS}" CONFIGURE_ARGS= --disable-esd PORTDOCS= AUTHORS README README.html diff --git a/games/xrally/Makefile b/games/xrally/Makefile index 090d198..a134a18 100644 --- a/games/xrally/Makefile +++ b/games/xrally/Makefile @@ -10,8 +10,7 @@ PORTNAME= xrally PORTVERSION= 1.1.1 PORTREVISION= 4 CATEGORIES= games -MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} -MASTER_SITE_SUBDIR= xrally +MASTER_SITES= SF/xrally DISTNAME= ${PORTNAME}-1.1 MAINTAINER= edwin@mavetju.org @@ -24,11 +23,11 @@ HAS_CONFIGURE= yes USE_XORG= x11 xi xpm USE_BZIP2= yes USE_GMAKE= yes -CONFIGURE_ENV= LDFLAGS="-L${LOCALBASE}/lib -L${X11BASE}/lib ${PTHREAD_LIBS}" \ - CFLAGS="${PTHREAD_CFLAGS} -I${X11BASE}/include" +CONFIGURE_ENV= LDFLAGS="-L${LOCALBASE}/lib ${PTHREAD_LIBS}" \ + CFLAGS="${PTHREAD_CFLAGS}" MAKE_ENV= LDFLAGS="-L${LOCALBASE}/lib ${PTHREAD_LIBS}" \ - CFLAGS="${PTHREAD_CFLAGS} -I${X11BASE}/include" \ - INCLUDES="-I${X11BASE}/include" + CFLAGS="${PTHREAD_CFLAGS} -I${LOCALBASE}/include" \ + INCLUDES="-I${LOCALBASE}/include" .include diff --git a/games/xroach/Makefile b/games/xroach/Makefile index 5e69dfc..1fb742a 100644 --- a/games/xroach/Makefile +++ b/games/xroach/Makefile @@ -7,7 +7,7 @@ PORTNAME= xroach PORTVERSION= 4.4 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= games MASTER_SITES= ${MASTER_SITE_BACKUP} DISTNAME= ${PORTNAME} @@ -15,11 +15,11 @@ DISTNAME= ${PORTNAME} MAINTAINER= ports@FreeBSD.org COMMENT= Cockroaches hide under your windows +USE_XORG= x11 MAN6= xroach.6 MANCOMPRESSED= maybe PLIST_FILES= bin/xroach -USE_X_PREFIX= yes IGNOREFILES= ${DISTFILES} WRKSRC= ${WRKDIR}/pub/bsd-sources/4.4BSD-Lite/usr/src/games/xroach diff --git a/games/xroach/files/patch-aa b/games/xroach/files/patch-aa index 928b141..a5c1aea 100644 --- a/games/xroach/files/patch-aa +++ b/games/xroach/files/patch-aa @@ -11,14 +11,14 @@ -LDADD= -lX11/X11 -lm +MAN6= xroach.6 + -+DPADD+= ${X11BASE}/lib/libX11.a ${LIBM} -+CFLAGS+= -I${X11BASE}/include -I${.CURDIR}/bitmaps -+LDADD+= -L${X11BASE}/lib -lX11 -lm ++DPADD+= ${LOCALBASE}/lib/libX11.a ${LIBM} ++CFLAGS+= -I${LOCALBASE}/include -I${.CURDIR}/bitmaps ++LDADD+= -L${LOCALBASE}/lib -lX11 -lm + -+MANDIR= ${X11BASE}/man/man ++MANDIR= ${LOCALBASE}/man/man + +BINOWN= bin -+BINDIR= ${X11BASE}/bin ++BINDIR= ${LOCALBASE}/bin +BINMODE= 755 .include diff --git a/games/xroads/files/patch-aa b/games/xroads/files/patch-aa index 7f0e9be..0d0c353 100644 --- a/games/xroads/files/patch-aa +++ b/games/xroads/files/patch-aa @@ -7,7 +7,7 @@ -DATAPATH = /usr/games/xroads/ -BINPATH = /usr/X11R6/bin/ +PREFIX ?= /usr/X11R6 -+X11BASE ?= /usr/X11R6 ++LOCALBASE ?= /usr/X11R6 +DATAPATH = ${PREFIX}/share/xroads +BINPATH = ${PREFIX}/bin # I imagine you would use this BINPATH for Solaris: @@ -18,7 +18,7 @@ #CFLAGS = -fomit-frame-pointer -O2 -Wall -DXRMPATH=\"$(DATAPATH)\" -CFLAGS = -O6 -mpentium -g -Wall -DXRMPATH=\"$(DATAPATH)\" -+CFLAGS += -DXRMPATH=\"$(DATAPATH)\" -I${X11BASE}/include ++CFLAGS += -DXRMPATH=\"$(DATAPATH)\" -I${LOCALBASE}/include ########################################################################### # Links necessary for X11 @@ -27,7 +27,7 @@ ### Linux machines use this line: -LINK = -L/usr/X11R6/lib -I/usr/X11R6/include -lX11 -lm -+LINK = -L${X11BASE}/lib -lX11 -lm ++LINK = -L${LOCALBASE}/lib -lX11 -lm ### This line should work on Sun machines: #LINK = -L/usr/openwin/lib -I/usr/openwin/include -lX11 -lm diff --git a/games/xrot/Makefile b/games/xrot/Makefile index 961d651..9f537f7 100644 --- a/games/xrot/Makefile +++ b/games/xrot/Makefile @@ -20,7 +20,7 @@ ALL_TARGET= xrot PLIST_FILES= bin/xrot WRKSRC= ${WRKDIR}/xrot USE_IMAKE= yes -USE_XPM= yes +USE_XORG= xpm do-install: ${INSTALL_PROGRAM} ${WRKSRC}/xrot ${PREFIX}/bin diff --git a/games/xsc/Makefile b/games/xsc/Makefile index 9fd02e1..4c269aa 100644 --- a/games/xsc/Makefile +++ b/games/xsc/Makefile @@ -7,17 +7,17 @@ PORTNAME= xsc PORTVERSION= 1.5 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= games MASTER_SITES= http://www.panix.com/~mbh/xsc/ MAINTAINER= ports@FreeBSD.org COMMENT= A vector graphics space shoot'em up game -USE_X_PREFIX= yes +USE_XORG= x11 GNU_CONFIGURE= yes -CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS} -I${X11BASE}/include" \ - LDFLAGS="${LDFLAGS} -L${X11BASE}/lib" +CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" \ + LDFLAGS="${LDFLAGS}" PLIST_FILES= bin/xsc .include diff --git a/games/xscorch/Makefile b/games/xscorch/Makefile index fe94fbf..5489710 100644 --- a/games/xscorch/Makefile +++ b/games/xscorch/Makefile @@ -7,7 +7,7 @@ PORTNAME= xscorch PORTVERSION= 0.2.0 -PORTREVISION= 3 +PORTREVISION= 4 CATEGORIES= games MASTER_SITES= http://chaos2.org/xscorch/ \ http://mirror.dok.org/xscorch/ @@ -17,8 +17,7 @@ COMMENT= Multiplayer tank shoot-em-up LIB_DEPENDS= mikmod.2:${PORTSDIR}/audio/libmikmod -USE_X_PREFIX= yes -USE_XPM= yes +USE_XORG= xpm USE_GMAKE= yes USE_GNOME= gtk12 WANT_GNOME= yes diff --git a/games/xscrabble/Makefile b/games/xscrabble/Makefile index acde1cd..9c7c4eb 100644 --- a/games/xscrabble/Makefile +++ b/games/xscrabble/Makefile @@ -16,7 +16,7 @@ COMMENT= X version of the popular board game USE_BZIP2= yes USE_IMAKE= yes -USE_XPM= yes +USE_XORG= xpm NO_INSTALL_MANPAGES= yes XSCRABBLEDIR= ${PREFIX}/lib/X11/xscrabble diff --git a/games/xshisen/Makefile b/games/xshisen/Makefile index 8ad6cea..e385bd9 100644 --- a/games/xshisen/Makefile +++ b/games/xshisen/Makefile @@ -7,15 +7,14 @@ PORTNAME= xshisen PORTVERSION= 1.51 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= games MASTER_SITES= http://www.techfirm.co.jp/~masaoki/ MAINTAINER= ports@FreeBSD.org COMMENT= Shisen-sho puzzle game for X11 -USE_X_PREFIX= yes -USE_XPM= yes +USE_XORG= xpm GNU_CONFIGURE= yes CONFIGURE_ARGS= --sharedstatedir="${DATADIR}" INSTALL_TARGET= install-prog diff --git a/games/xshogi/Makefile b/games/xshogi/Makefile index dd2e60d..a4a0233 100644 --- a/games/xshogi/Makefile +++ b/games/xshogi/Makefile @@ -7,7 +7,7 @@ PORTNAME= xshogi PORTVERSION= ${GNUSHOGI_PORTVERSION} -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= games MASTER_SITES= ${GNUSHOGI_MASTER_SITES} MASTER_SITE_SUBDIR= ${GNUSHOGI_MASTER_SITE_SUBDIR} @@ -20,7 +20,7 @@ RUN_DEPENDS= gnushogi:${PORTSDIR}/games/gnushogi BUILD_WRKSRC= ${WRKSRC}/xshogi -USE_X_PREFIX= yes +USE_XORG= xt xaw x11 GNU_CONFIGURE= yes MAN6= xshogi.6 diff --git a/games/xsokoban/Makefile b/games/xsokoban/Makefile index c4c674c..71f9b77 100644 --- a/games/xsokoban/Makefile +++ b/games/xsokoban/Makefile @@ -17,7 +17,7 @@ COMMENT= A puzzle of pushing objects to the goals USE_IMAKE= yes USE_PERL5_BUILD=yes -USE_XPM= yes +USE_XORG= xpm WRKSRC= ${WRKDIR}/xsokoban ALL_TARGET= xsokoban MAN1= xsokoban.1 diff --git a/games/xteddy/Makefile b/games/xteddy/Makefile index 32b8eb1..7dd8b42 100644 --- a/games/xteddy/Makefile +++ b/games/xteddy/Makefile @@ -17,8 +17,8 @@ COMMENT= A cuddlesome teddy for the X desktop NO_CDROM= Can only be distributed for free GNU_CONFIGURE= yes -CONFIGURE_ENV= CPPFLAGS="-I${X11BASE}/include -I${LOCALBASE}/include" \ - LDFLAGS="-L${X11BASE}/lib -L${LOCALBASE}/lib" +CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \ + LDFLAGS="-L${LOCALBASE}/lib" USE_GNOME= imlib MAN6= xteddy.6 diff --git a/games/xtic/Makefile b/games/xtic/Makefile index 7021e14..16a9a4c 100644 --- a/games/xtic/Makefile +++ b/games/xtic/Makefile @@ -17,11 +17,11 @@ MAINTAINER= ports@FreeBSD.org COMMENT= An X version of a simple but tricky board game USE_IMAKE= yes -USE_XPM= yes +USE_XORG= xpm MAN1= xtic.1 PLIST_FILES= bin/xtic post-patch: - @${REINPLACE_CMD} -e "s|%%X11BASE%%|${X11BASE}|g" ${WRKSRC}/configure.h + @${REINPLACE_CMD} -e "s|%%LOCALBASE%%|${LOCALBASE}|g" ${WRKSRC}/configure.h .include diff --git a/games/xtic/files/patch-aa b/games/xtic/files/patch-aa index 193a8f1..386c6c7 100644 --- a/games/xtic/files/patch-aa +++ b/games/xtic/files/patch-aa @@ -5,4 +5,4 @@ * Change this to the correct place, if needed */ -#define XPMLIBRARY -L/usr/local/lib -lXpm -+#define XPMLIBRARY -L%%X11BASE%%/lib -lXpm ++#define XPMLIBRARY -L%%LOCALBASE%%/lib -lXpm diff --git a/games/xtrojka/Makefile b/games/xtrojka/Makefile index d7b21ee..7fbc6c0 100644 --- a/games/xtrojka/Makefile +++ b/games/xtrojka/Makefile @@ -7,7 +7,7 @@ PORTNAME= xtrojka PORTVERSION= 1.1 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= games MASTER_SITES= ftp://ftp.funet.fi/pub/unix/games/ DISTNAME= ${PORTNAME} @@ -15,10 +15,10 @@ DISTNAME= ${PORTNAME} MAINTAINER= e@ik.nu COMMENT= Game of skill similar to T*tris +USE_XORG= x11 xt xproto xaw WRKSRC= ${WRKDIR} MAN6= xtrojka.6 MANCOMPRESSED= yes -USE_XLIB= yes pre-install: ${MKDIR} ${PREFIX}/share/xtrojka diff --git a/games/xtrojka/files/patch-aa b/games/xtrojka/files/patch-aa index c84978d..fc405e5 100644 --- a/games/xtrojka/files/patch-aa +++ b/games/xtrojka/files/patch-aa @@ -21,7 +21,7 @@ # add library search path # -CFLAGS+=-L/usr/X11/lib -+CFLAGS+=-L${X11BASE}/lib ++CFLAGS+=-L${LOCALBASE}/lib # on some systems you might add this line, because gcc starts wining # about 'sizeof(Display)', since Display might be an empty struct; @@ -52,7 +52,7 @@ #LIBS=-lnsl +# FreeBSD -+XDIR=${X11BASE}/include ++XDIR=${LOCALBASE}/include +LIBS=-lm + # diff --git a/games/xtron/files/patch-aa b/games/xtron/files/patch-aa index d86897f..4324ff0 100644 --- a/games/xtron/files/patch-aa +++ b/games/xtron/files/patch-aa @@ -11,8 +11,8 @@ +CC?= gcc +CFLAGS?= -O4 -Wall +DEFINES= -DPREFIX=\"${PREFIX}\" -+INCLUDES= -I${X11BASE}/include -I${X11BASE}/include/X11 -+LIBS= -L${X11BASE}/lib ++INCLUDES= -I${LOCALBASE}/include -I${LOCALBASE}/include/X11 ++LIBS= -L${LOCALBASE}/lib LDLIBS= -lXpm -lX11 DEPEND= makedepend OBJS= wintype.o xtron.o main.o xpm2pixmap.o resource.o diff --git a/games/xtruco/Makefile b/games/xtruco/Makefile index f5f35dc..5b6d026 100644 --- a/games/xtruco/Makefile +++ b/games/xtruco/Makefile @@ -7,7 +7,7 @@ PORTNAME= xtruco PORTVERSION= 1.0 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= games MASTER_SITES= ${MASTER_SITE_XCONTRIB} MASTER_SITE_SUBDIR= games @@ -16,8 +16,8 @@ DISTNAME= ${PORTNAME} MAINTAINER= ports@FreeBSD.org COMMENT= Simple version for X Window of the famous card game Super Truco +USE_XORG= x11 PLIST_FILES= bin/xtruco -USE_X_PREFIX= yes do-install: ${INSTALL_PROGRAM} ${WRKSRC}/xtruco ${PREFIX}/bin diff --git a/games/xtruco/files/patch-aa b/games/xtruco/files/patch-aa index fad5bbb..dc7a6b4 100644 --- a/games/xtruco/files/patch-aa +++ b/games/xtruco/files/patch-aa @@ -5,13 +5,13 @@ ################################ -INCLUDES = -I/usr/X11/include -+INCLUDES = -I${X11BASE}/include ++INCLUDES = -I${LOCALBASE}/include # Remove '-DIPC_OK' if you have problems with 'shared-memory' (IPC routines) OPC = -DIPC_OK -LIBRARIES = -lX11 -L/usr/X11/lib -+LIBRARIES = -lX11 -L${X11BASE}/lib ++LIBRARIES = -lX11 -L${LOCALBASE}/lib CFILES = xtruco.c bitmap.c cursor.c display.c event.c gc.c pixmap.c\ topwind.c window.c color.c button.c font.c read.c diff --git a/games/xtux/Makefile b/games/xtux/Makefile index 3ed2ac8..6585c84 100644 --- a/games/xtux/Makefile +++ b/games/xtux/Makefile @@ -7,10 +7,9 @@ PORTNAME= xtux PORTVERSION= 2003.03.06 -PORTREVISION= 3 +PORTREVISION= 4 CATEGORIES= games -MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} -MASTER_SITE_SUBDIR= ${PORTNAME} +MASTER_SITES= SF DISTNAME= ${PORTNAME}-src-${PORTVERSION:S/.//g} MAINTAINER= ports@FreeBSD.org @@ -18,8 +17,7 @@ COMMENT= Humorous Arcade game for X WRKSRC= ${WRKDIR}/${PORTNAME} -USE_X_PREFIX= yes -USE_XPM= yes +USE_XORG= xpm USE_GMAKE= yes MAKE_ENV= CPP="${CC} -E" CC="${CC}" @@ -31,7 +29,7 @@ post-patch: s|^CFLAGS|#CFLAGS|g ; \ s|^CPP|#CPP|g ; \ s|^MAKE|#MAKE|g ; \ - s|/usr/X11R6|$${X11BASE}|g' + s|/usr/X11R6|$${LOCALBASE}|g' do-install: ${INSTALL_PROGRAM} ${WRKSRC}/xtux ${PREFIX}/bin diff --git a/games/xvmahjongg/Makefile b/games/xvmahjongg/Makefile index 9bca551..f0b4e64 100644 --- a/games/xvmahjongg/Makefile +++ b/games/xvmahjongg/Makefile @@ -7,7 +7,7 @@ PORTNAME= xvmahjongg PORTVERSION= 2.1 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= games MASTER_SITES= ftp://ftp.x.org/R5contrib/ DISTFILES= ${PORTNAME}${PORTVERSION}.tar.Z @@ -18,7 +18,6 @@ COMMENT= Mahjongg for XView with multicolored tiles LIB_DEPENDS= xview.3:${PORTSDIR}/x11-toolkits/xview ALL_TARGET= mahjongg.swap -USE_X_PREFIX= yes WRKSRC= ${WRKDIR}/mahjongg2.1 MAN6= xvmahjongg.6 diff --git a/games/xvmahjongg/files/patch-ab b/games/xvmahjongg/files/patch-ab index 38eddec..5a10346 100644 --- a/games/xvmahjongg/files/patch-ab +++ b/games/xvmahjongg/files/patch-ab @@ -5,13 +5,13 @@ # Root directory of XView developers package # For OpenWindows users, this is the same as $OPENWINHOME. -XVIEWROOT = ${OPENWINHOME} -+XVIEWROOT = ${X11BASE} ++XVIEWROOT = ${LOCALBASE} # If not in OpenWindows, need to specify directory where libxview # and libolgx are. # For OpenWindows users, this is taken care of via $LD_LIBRARY_PATH. -XVIEWLIBDIR = -+XVIEWLIBDIR = -L${X11BASE}/lib ++XVIEWLIBDIR = -L${LOCALBASE}/lib # e.g., XVIEWLIBDIR = -L/usr/openwin/lib # This -L... stuff may only be appropriate in a SunOS environment, # so do what's appropriate in your environment. The -L diff --git a/games/xvmines/files/patch-aa b/games/xvmines/files/patch-aa index 0e79ce3..f2e3dcb 100644 --- a/games/xvmines/files/patch-aa +++ b/games/xvmines/files/patch-aa @@ -3,7 +3,7 @@ @@ -1,7 +1,8 @@ -WHERE :sh = (tmp=`echo /usr/openwin`;echo ${OPENWINHOME:=$tmp}) +#WHERE :sh = (tmp=`echo /usr/openwin`;echo ${OPENWINHOME:=$tmp}) -+WHERE=${X11BASE} ++WHERE=${LOCALBASE} #CC = gcc -CC = cc diff --git a/games/xworm/Makefile b/games/xworm/Makefile index 305206b..e133062 100644 --- a/games/xworm/Makefile +++ b/games/xworm/Makefile @@ -7,7 +7,7 @@ PORTNAME= xworm PORTVERSION= 1.02 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= games MASTER_SITES= http://www.ekran.no/archive/x/ DISTNAME= ${PORTNAME}102 @@ -15,12 +15,12 @@ DISTNAME= ${PORTNAME}102 MAINTAINER= ports@FreeBSD.org COMMENT= Classic game with apples and hungry worm +USE_XORG= x11 xt WRKSRC= ${WRKDIR}/XWorm -USE_X_PREFIX= yes ALL_TARGET= linux -MAKE_ARGS= CC="${CC}" INCDIR="-I${X11BASE}/include" \ +MAKE_ARGS= CC="${CC}" INCDIR="-I${LOCALBASE}/include" \ LINUXFLAGS='${CFLAGS} -DXWORMDIR=\"${DATADIR}\"' \ - LINUXLINK="-L${X11BASE}/lib -lXt -lX11 -lm" + LINUXLINK="-L${LOCALBASE}/lib -lXt -lX11 -lm" DATA= font grid raw PLIST_FILES= bin/xworm ${DATA:S/^/%%DATADIR%%\/xworm./} diff --git a/games/xzip/files/patch-aa b/games/xzip/files/patch-aa index cf0d776..f447320 100644 --- a/games/xzip/files/patch-aa +++ b/games/xzip/files/patch-aa @@ -6,8 +6,8 @@ -XINCLUDE = /usr/include/X11 -XLIB = /usr/lib/X11 -+XINCLUDE = $(X11BASE)/include -+XLIB = $(X11BASE)/lib ++XINCLUDE = $(LOCALBASE)/include ++XLIB = $(LOCALBASE)/lib + +SYSTEMFLAGS = -DAUTO_END_MODE diff --git a/games/yadex/Makefile b/games/yadex/Makefile index dbebe04..f54a836 100644 --- a/games/yadex/Makefile +++ b/games/yadex/Makefile @@ -7,7 +7,7 @@ PORTNAME= yadex PORTVERSION= 1.7.0 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= games MASTER_SITES= http://www.teaser.fr/~amajorel/yadex/ \ http://hjem.get2net.dk/RasII/amajorel/yadex/ @@ -16,9 +16,9 @@ DIST_SUBDIR= ${PORTNAME} MAINTAINER= danfe@FreeBSD.org COMMENT= A WAD-file editor, for games like Doom and Hexen -USE_XLIB= yes USE_GMAKE= yes USE_PERL5_BUILD= yes +USE_XORG= x11 MAKEFILE= GNUmakefile HAS_CONFIGURE= yes CONFIGURE_ENV= CC="${CC}" CXX="${CXX}" PREFIX="${PREFIX}" diff --git a/games/yadex/files/patch-GNUmakefile b/games/yadex/files/patch-GNUmakefile index 394ea89..5e816a6 100644 --- a/games/yadex/files/patch-GNUmakefile +++ b/games/yadex/files/patch-GNUmakefile @@ -6,8 +6,8 @@ else - X11LIBDIR = /usr/X11R6/lib - X11INCLUDEDIR = /usr/X11R6/include -+ X11LIBDIR = $(X11BASE)/lib -+ X11INCLUDEDIR = $(X11BASE)/include ++ X11LIBDIR = $(LOCALBASE)/lib ++ X11INCLUDEDIR = $(LOCALBASE)/include endif endif -- cgit v1.1