diff options
author | bar <bar@FreeBSD.org> | 2013-01-27 18:05:18 +0800 |
---|---|---|
committer | bar <bar@FreeBSD.org> | 2013-01-27 18:05:18 +0800 |
commit | 92ce2e38f640dbb9d647c5b8155c58195fd15960 (patch) | |
tree | 8e4159c99167d2930a60035922e9aea7d4c69728 | |
parent | 3a7360065001c5fc16ae0368a537d5c0c38c60b3 (diff) | |
download | freebsd-ports-gnome-92ce2e38f640dbb9d647c5b8155c58195fd15960.tar.gz freebsd-ports-gnome-92ce2e38f640dbb9d647c5b8155c58195fd15960.tar.zst freebsd-ports-gnome-92ce2e38f640dbb9d647c5b8155c58195fd15960.zip |
- remove a missed shlib version from LIB_DEPENDS
- add a patch to make the content pane of the vlaunch window scrollable
the patch has been sent upstream on 24 Dec., but there is still no feedback
Approved by: flo (maintainer)
-rw-r--r-- | games/vavoom/Makefile | 4 | ||||
-rw-r--r-- | games/vavoom/files/patch-utils__vlaunch__vlaunch.cpp | 78 |
2 files changed, 80 insertions, 2 deletions
diff --git a/games/vavoom/Makefile b/games/vavoom/Makefile index 5aef54371c98..d6217f0f3851 100644 --- a/games/vavoom/Makefile +++ b/games/vavoom/Makefile @@ -3,7 +3,7 @@ PORTNAME= vavoom PORTVERSION= 1.33 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= games MASTER_SITES= SF/${PORTNAME}/Vavoom-source/${PORTVERSION} @@ -36,7 +36,7 @@ CFLAGS:= ${CFLAGS:N-fno-strict-aliasing} CXXFLAGS:= ${CFLAGS:N-fno-strict-aliasing} .if ${PORT_OPTIONS:MALLEGRO} -LIB_DEPENDS+= alleg.42:${PORTSDIR}/devel/allegro +LIB_DEPENDS+= alleg:${PORTSDIR}/devel/allegro CMAKE_ARGS+= -DWITH_ALLEGRO=Y .else CMAKE_ARGS+= -DWITH_ALLEGRO=N diff --git a/games/vavoom/files/patch-utils__vlaunch__vlaunch.cpp b/games/vavoom/files/patch-utils__vlaunch__vlaunch.cpp new file mode 100644 index 000000000000..dd4c3941e41b --- /dev/null +++ b/games/vavoom/files/patch-utils__vlaunch__vlaunch.cpp @@ -0,0 +1,78 @@ +--- utils/vlaunch/vlaunch.cpp.orig 2011-01-01 12:51:56.000000000 +0100 ++++ utils/vlaunch/vlaunch.cpp 2012-12-24 00:17:28.000000000 +0100 +@@ -145,7 +145,7 @@ + wxNotebook* nbook = new wxNotebook(panel, -1, wxPoint(0, 105), wxSize(447, 270)); + mainsizer->Add(nbook); + +- wxPanel* page = new wxPanel(nbook); ++ wxScrolledWindow* page = new wxScrolledWindow(nbook); + nbook->AddPage(page, wxT("Main")); + wxFlexGridSizer* gsizer = new wxFlexGridSizer(2); + +@@ -185,12 +185,17 @@ + gsizer->Add(EditMisc, 0, wxALL, 4); + page->SetSizer(gsizer); + gsizer->Layout(); ++ gsizer->FitInside(page); ++ page->SetScrollRate(10, 10); + + // Video options +- page = new wxPanel(nbook); ++ page = new wxScrolledWindow(nbook); + nbook->AddPage(page, wxT("Video")); + wxFlexGridSizer* vsizer = new wxFlexGridSizer(2); + ++ vsizer->Add(new wxStaticText(page, -1, wxT(" ")), 0, wxALL, 4); ++ vsizer->Add(new wxStaticText(page, -1, wxT(" ")), 0, wxALL, 4); ++ + vsizer->Add(new wxStaticText(page, -1, wxT("Renderer:")), 0, wxALL, 4); + wxString RendChoices[2]; + RendChoices[0] = wxT("OpenGL"); +@@ -237,9 +242,11 @@ + vsizer->Add(Particles, 0, wxALL, 4); + page->SetSizer(vsizer); + vsizer->Layout(); ++ vsizer->FitInside(page); ++ page->SetScrollRate(10, 10); + + // Sound options +- page = new wxPanel(nbook); ++ page = new wxScrolledWindow(nbook); + nbook->AddPage(page, wxT("Sound")); + wxFlexGridSizer* ssizer = new wxFlexGridSizer(2); + +@@ -272,9 +279,11 @@ + ssizer->Add(PatchFiles, 0, wxALL, 4); + page->SetSizer(ssizer); + ssizer->Layout(); ++ ssizer->FitInside(page); ++ page->SetScrollRate(10, 10); + + // Input options +- page = new wxPanel(nbook); ++ page = new wxScrolledWindow(nbook); + nbook->AddPage(page, wxT("Input")); + wxFlexGridSizer* isizer = new wxFlexGridSizer(2); + +@@ -297,9 +306,11 @@ + isizer->Add(MouseY, 0, wxALL, 4); + page->SetSizer(isizer); + isizer->Layout(); ++ isizer->FitInside(page); ++ page->SetScrollRate(10, 10); + + // Network options +- page = new wxPanel(nbook); ++ page = new wxScrolledWindow(nbook); + nbook->AddPage(page, wxT("Network")); + gsizer = new wxFlexGridSizer(2); + gsizer->AddSpacer(1); +@@ -331,6 +342,8 @@ + gsizer->Add(EditMasterIPAddress, 0, wxALL, 4); + page->SetSizer(gsizer); + gsizer->Layout(); ++ gsizer->FitInside(page); ++ page->SetScrollRate(10, 10); + + wxBoxSizer* bsizer = new wxBoxSizer(wxHORIZONTAL); + bsizer->Add(new wxButton(panel, VLaunch_Run, wxT("Run")), 0, wxALL, 4); |