# This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # rawgl # rawgl/files # rawgl/files/rawgl.in # rawgl/files/patch-Makefile # rawgl/files/pkg-message.in # rawgl/files/patch-main.cpp # rawgl/Makefile # rawgl/distinfo # rawgl/pkg-descr # echo c - rawgl mkdir -p rawgl > /dev/null 2>&1 echo c - rawgl/files mkdir -p rawgl/files > /dev/null 2>&1 echo x - rawgl/files/rawgl.in sed 's/^X//' >rawgl/files/rawgl.in << '22c3349060b15fa58a6c0378b5026249' X#!/bin/sh X Xif [ -n "$(find %%DATADIR%% -type f 2>/dev/null)" ]; then X exec %%PREFIX%%/libexec/rawgl --datapath=%%DATADIR%% "$@" Xelse X exec %%PREFIX%%/libexec/rawgl "$@" Xfi 22c3349060b15fa58a6c0378b5026249 echo x - rawgl/files/patch-Makefile sed 's/^X//' >rawgl/files/patch-Makefile << '30754a0b9e30f3f65ab7faf6953292d1' X--- Makefile.orig 2018-04-04 14:11:53 UTC X+++ Makefile X@@ -4,7 +4,7 @@ SDL_LIBS = `sdl2-config --libs` -lSDL2_mixer -lGL X X DEFINES = -DBYPASS_PROTECTION X X-CXXFLAGS := -g -O -MMD -Wall $(SDL_CFLAGS) $(DEFINES) X+CXXFLAGS += -fPIC -MMD -Wall $(SDL_CFLAGS) $(DEFINES) X X SRCS = aifcplayer.cpp bitmap.cpp file.cpp engine.cpp graphics_gl.cpp graphics_soft.cpp \ X script.cpp mixer.cpp pak.cpp resource.cpp resource_mac.cpp resource_nth.cpp \ 30754a0b9e30f3f65ab7faf6953292d1 echo x - rawgl/files/pkg-message.in sed 's/^X//' >rawgl/files/pkg-message.in << '0d5d1fecfe8b0c7f2a43434f6a4d9c63' X[ X{ type: install X message: <rawgl/files/patch-main.cpp << 'f80468ec50dedf1212a059aea3f82da6' X--- main.cpp.orig 2018-03-21 01:29:10 UTC X+++ main.cpp X@@ -83,7 +83,7 @@ static const int DEFAULT_WINDOW_H = 400; X int main(int argc, char *argv[]) { X char *dataPath = 0; X int part = 16001; X- Language lang = LANG_FR; X+ Language lang = LANG_US; X int graphicsType = GRAPHICS_GL; X DisplayMode dm; X dm.mode = DisplayMode::WINDOWED; f80468ec50dedf1212a059aea3f82da6 echo x - rawgl/Makefile sed 's/^X//' >rawgl/Makefile << '0304ae587063e7706257674fb99864c8' X# Created by: Piotr Kubaj X# $FreeBSD$ X XPORTNAME= rawgl XPORTVERSION= g20180321 XCATEGORIES= games X XMAINTAINER= pkubaj@anongoth.pl XCOMMENT= Another World engine reimplementation X XLICENSE= NONE X XUSE_GITHUB= yes XGH_ACCOUNT= cyxx XGH_TAGNAME= b6dd795 X XUSES= gl sdl XUSE_GL= gl XUSE_SDL= mixer2 sdl2 XALL_TARGET= rawgl X XSUB_FILES= pkg-message rawgl XSUB_LIST= DATADIR=${DATADIR} X XPLIST_FILES= bin/${PORTNAME} libexec/${PORTNAME} '@dir %%DATADIR%%' XPORTDOCS= * X XDESKTOP_ENTRIES="raw(gl)" \ X "" \ X "" \ X rawgl \ X "Game;ActionGame;" \ X "" X XOPTIONS_DEFINE= DOCS X Xpost-patch: X @${REINPLACE_CMD} -e 's|MIX_INIT_FLUIDSYNTH|MIX_INIT_MID|' ${WRKSRC}/mixer.cpp X Xdo-install: X @${MKDIR} ${STAGEDIR}${DATADIR} X ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} \ X ${STAGEDIR}${PREFIX}/libexec/ X ${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME} \ X ${STAGEDIR}${PREFIX}/bin/ X Xdo-install-DOCS-on: X @${MKDIR} ${STAGEDIR}${DOCSDIR} X ${INSTALL_DATA} ${WRKSRC}/README.md ${STAGEDIR}${DOCSDIR}/ X X.include 0304ae587063e7706257674fb99864c8 echo x - rawgl/distinfo sed 's/^X//' >rawgl/distinfo << 'dca1c04175b2bfd46b6081164ee1b92c' XTIMESTAMP = 1574268090 XSHA256 (cyxx-rawgl-g20180321-b6dd795_GH0.tar.gz) = 1f3d362450d03a25f3b01f2dfc269fe8f9013bef8f2475bd9d76b747ebc85233 XSIZE (cyxx-rawgl-g20180321-b6dd795_GH0.tar.gz) = 70179 dca1c04175b2bfd46b6081164ee1b92c echo x - rawgl/pkg-descr sed 's/^X//' >rawgl/pkg-descr << '303803fa59db43165b0ac90377291b3c' Xrawgl is a re-implementation of the engine used in the game Another World. X XWWW: https://github.com/cyxx/rawgl 303803fa59db43165b0ac90377291b3c exit