From 2b3582f1b22a6a54d6871ca8456ec1c574b89cbb Mon Sep 17 00:00:00 2001 From: David Marec Date: Sat, 5 Feb 2022 16:14:16 +0100 Subject: [PATCH 1/1] Port to FreeBSD --- Makefile | 105 + distinfo | 3 + pkg-message | 11 + pkg-plist | 19547 ++++++++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 19666 insertions(+) create mode 100644 Makefile create mode 100644 distinfo create mode 100644 pkg-message create mode 100644 pkg-plist diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..0340129 --- /dev/null +++ b/Makefile @@ -0,0 +1,105 @@ +PORTNAME= wesnoth +PORTVERSION= 1.16.1 +PORTEPOCH= 1 +CATEGORIES= games +MASTER_SITES= SF/${PORTNAME}/${PORTNAME}-${PORTVERSION:R}/${PORTNAME}-${PORTVERSION} \ + http://files.wesnoth.org/ \ + http://ports.toco-domains.de/ + +MAINTAINER= wen@FreeBSD.org +COMMENT= Fantasy turn-based strategy game + +LICENSE= GPLv2 GPLv3 +LICENSE_COMB= dual +LICENSE_FILE= ${WRKSRC}/COPYING + +LIB_DEPENDS= libfreetype.so:print/freetype2 \ + libvorbisfile.so:audio/libvorbis \ + libboost_thread.so:devel/boost-libs \ + libpng.so:graphics/png \ + libfontconfig.so:x11-fonts/fontconfig + +LDFLAGS+= -L${LOCALBASE}/lib -lboost_system + +PORTSCOUT= limitw:1,even + +USES= cmake compiler:c++11-lang cpe gnome pkgconfig \ + python:3.6+,run readline shebangfix ssl sdl tar:bzip2 xorg +USE_SDL= image2 mixer2 ttf2 +USE_LDCONFIG= yes +USE_GNOME= cairo pango +USE_XORG= ice sm x11 xext +SHEBANG_FILES= data/tools/about_cfg_to_wiki \ + data/tools/addon_manager/html.py \ + data/tools/addon_manager/__init__.py \ + data/tools/expand-terrain-macros.py \ + data/tools/extractbindings \ + data/tools/GUI.pyw \ + data/tools/hexometer.py \ + data/tools/imgcheck \ + data/tools/steam-changelog \ + data/tools/terrain2wiki.py \ + data/tools/tmx_trackplacer \ + data/tools/trackviewer.pyw \ + data/tools/unit_tree/overview.py \ + data/tools/unit_tree/html_output.py \ + data/tools/unit_tree/update-wmlunits \ + data/tools/unit_tree/animations.py \ + data/tools/unit_tree/__init__.py \ + data/tools/unit_tree/helpers.py \ + data/tools/unit_tree/TeamColorizer \ + data/tools/unit_tree/wiki_output.py \ + data/tools/vim/wmllua.vim \ + data/tools/wesnoth/wmldata.py \ + data/tools/wesnoth/wmliterator3.py \ + data/tools/wesnoth/wmlparser.py \ + data/tools/wesnoth/wmlparser3.py \ + data/tools/wesnoth/trackplacer3/datatypes.py \ + data/tools/wesnoth/trackplacer3/cfgfileformat.py \ + data/tools/wesnoth/trackplacer3/tmxfileformat.py \ + data/tools/wesnoth/libgithub.py \ + data/tools/wesnoth/campaignserver_client.py \ + data/tools/wesnoth/wescamp.py \ + data/tools/wesnoth/wmltools3.py \ + data/tools/wesnoth_addon_manager \ + data/tools/wmlflip \ + data/tools/wmlindent \ + data/tools/wmllint \ + data/tools/wmllint-1.4 \ + data/tools/wmlscope \ + data/tools/wmlunits \ + data/tools/wmlxgettext \ + +CPE_VENDOR= ${PORTNAME} +CPE_PRODUCT= battle_for_wesnoth +CMAKE_ARGS= -DMANDIR="man" -DENABLE_STRICT_COMPILATION=off + +PORTDOCS= * +PORTDATA= * + +OPTIONS_DEFINE= GAME CAMPAIGN DOCS NLS \ + NOTIFY SERVER TEST MYSQL +OPTIONS_DEFAULT= GAME CAMPAIGN NOTIFY SERVER +OPTIONS_SUB= yes + +GAME_DESC= Standalone Game +GAME_CMAKE_OFF= -DENABLE_GAME=off +CAMPAIGN_DESC= Campaign server +CAMPAIGN_CMAKE_ON= -DENABLE_CAMPAIGN_SERVER=on +DOCS_CMAKE_OFF= -DDOCDIR=none +NLS_USES= gettext +NLS_CMAKE_ON= -DLOCALEDIR=${PREFIX}/share/locale +NLS_CMAKE_OFF= -DENABLE_NLS=off +NOTIFY_DESC= Desktop notifications +NOTIFY_LIB_DEPENDS=libdbus-1.so:devel/dbus +NOTIFY_CMAKE_OFF=-DENABLE_NOTIFICATIONS=off +SERVER_DESC= Server +SERVER_CMAKE_OFF=-DENABLE_SERVER=off +MYSQL_DESC= building MP/add-ons servers with mysql support +MYSQL_CMAKE_ON= -DENABLE_MYSQL=on +TEST_CMAKE_ON= -DENABLE_TESTS=on + +post-install: + ${FIND} ${STAGEDIR}${PREFIX}/man -type d -empty -delete + +.include diff --git a/distinfo b/distinfo new file mode 100644 index 0000000..1f6d147 --- /dev/null +++ b/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1644073902 +SHA256 (wesnoth-1.16.1.tar.bz2) = 8e33ba234b935485aa4fb194a15a4e7e2afb2520050c706abbf88ef45ae5d933 +SIZE (wesnoth-1.16.1.tar.bz2) = 473960291 diff --git a/pkg-message b/pkg-message new file mode 100644 index 0000000..a547ca5 --- /dev/null +++ b/pkg-message @@ -0,0 +1,11 @@ +[ +{ type: install + message: <