Skip to content

Commit

Permalink
Integrate from the Ports Collection.
Browse files Browse the repository at this point in the history
  • Loading branch information
pgj committed Feb 6, 2015
1 parent 1a1a5c8 commit 29b7839
Show file tree
Hide file tree
Showing 9 changed files with 36 additions and 75 deletions.
34 changes: 18 additions & 16 deletions games/hedgewars/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
# $FreeBSD$

PORTNAME= hedgewars
PORTVERSION= 0.9.20.5
PORTREVISION= 4
PORTVERSION= 0.9.21.1
CATEGORIES= games
MASTER_SITES= http://download.gna.org/hedgewars/ \
http://mirror.amdmi3.ru/distfiles/
Expand All @@ -15,6 +14,8 @@ COMMENT= Free Worms-like turn based strategy game
LICENSE= GPLv2 GFDL
LICENSE_COMB= multi

LIB_DEPENDS= libphysfs.so:${PORTSDIR}/devel/physfs

ONLY_FOR_ARCHS= i386 amd64
ONLY_FOR_ARCHS_REASON= depends on fpc which is only available for i386 and amd64

Expand All @@ -30,11 +31,10 @@ USE_LDCONFIG= yes
WRKSRC= ${WRKDIR}/${DISTNAME:C/\.[0-9]$//}

PLIST_FILES= bin/${PORTNAME} bin/hwengine \
share/appdata/hedgewars.appdata.xml \
share/applications/${PORTNAME}.desktop \
share/pixmaps/${PORTNAME}.png \
lib/libhwphysfs.so \
lib/libhwphysfs.so.1 \
lib/libhwphysfs.so.2.1.0 \
share/pixmaps/${PORTNAME}.xpm \
lib/libphyslayer.so
PORTDATA= *

Expand All @@ -48,17 +48,19 @@ SERVER_DESC= Build server (requires haskell)
#VIDEOREC_LIB_DEPENDS=libavcodec0.so:${PORTSDIR}/multimedia/ffmpeg0
#VIDEOREC_CMAKE_OFF=-DNOVIDEOREC=1

SERVER_BUILD_DEPENDS=\
ghc:${PORTSDIR}/lang/ghc \
hs-vector>=0:${PORTSDIR}/devel/hs-vector \
hs-network>=0:${PORTSDIR}/net/hs-network \
hs-utf8-string>=0:${PORTSDIR}/devel/hs-utf8-string \
hs-bytestring-show>=0:${PORTSDIR}/devel/hs-bytestring-show \
hs-dataenc>=0:${PORTSDIR}/converters/hs-dataenc \
hs-random>=0:${PORTSDIR}/devel/hs-random \
hs-hslogger>=0:${PORTSDIR}/devel/hs-hslogger
SERVER_CMAKE_OFF=-DNOSERVER=1
SERVER_PLIST_FILES=bin/${PORTNAME}-server
SERVER_BUILD_DEPENDS= ghc:${PORTSDIR}/lang/ghc \
hs-vector>=0:${PORTSDIR}/devel/hs-vector \
hs-network>=0:${PORTSDIR}/net/hs-network \
hs-utf8-string>=0:${PORTSDIR}/devel/hs-utf8-string \
hs-bytestring-show>=0:${PORTSDIR}/devel/hs-bytestring-show \
hs-dataenc>=0:${PORTSDIR}/converters/hs-dataenc \
hs-random>=0:${PORTSDIR}/devel/hs-random \
hs-hslogger>=0:${PORTSDIR}/devel/hs-hslogger \
hs-SHA>=0:${PORTSDIR}/security/hs-SHA \
hs-entropy>=0:${PORTSDIR}/security/hs-entropy \
hs-zlib>=0:${PORTSDIR}/archivers/hs-zlib
SERVER_CMAKE_OFF= -DNOSERVER=1
SERVER_PLIST_FILES= bin/${PORTNAME}-server

post-patch:
@${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|' ${WRKSRC}/cmake_modules/*.cmake
Expand Down
4 changes: 2 additions & 2 deletions games/hedgewars/distinfo
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
SHA256 (hedgewars-src-0.9.20.5.tar.bz2) = a6d0896fe88d5746a4272c8f495c7457b17586e8d16ef429ce50dfa449c0adcc
SIZE (hedgewars-src-0.9.20.5.tar.bz2) = 161550331
SHA256 (hedgewars-src-0.9.21.1.tar.bz2) = 590a9458d2123c5550d5eb39edfed28d0663703d76e13c8987237c92ca41f3f8
SIZE (hedgewars-src-0.9.21.1.tar.bz2) = 160250791
12 changes: 12 additions & 0 deletions games/hedgewars/files/patch-CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
Fix ghc stack overflow while building server
--- CMakeLists.txt.orig 2015-01-06 23:55:59.000000000 +0300
+++ CMakeLists.txt 2015-01-24 22:39:01.000000000 +0300
@@ -108,7 +108,7 @@
endif()
endif()

-list(APPEND haskell_flags ${ghflags_parsed} "-O2")
+list(APPEND haskell_flags ${ghflags_parsed})

#get BUILD_TYPE and enable/disable optimisation
message(STATUS "Using ${CMAKE_BUILD_TYPE} configuration")
11 changes: 0 additions & 11 deletions games/hedgewars/files/patch-gameServer__Actions.hs

This file was deleted.

This file was deleted.

23 changes: 0 additions & 23 deletions games/hedgewars/files/patch-tools__CMakeLists.txt

This file was deleted.

3 changes: 2 additions & 1 deletion security/hs-HsOpenSSL/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,14 @@

PORTNAME= HsOpenSSL
PORTVERSION= 0.11
PORTREVISION= 1
PORTREVISION= 2
CATEGORIES= security haskell

MAINTAINER= haskell@FreeBSD.org
COMMENT= Partial OpenSSL binding for Haskell

USE_CABAL= network>=2.1.0.0
USE_OPENSSL= yes

.include "${.CURDIR}/../../lang/ghc/bsd.cabal.mk"
.include <bsd.port.mk>
2 changes: 1 addition & 1 deletion www/hs-activehs/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

PORTNAME= activehs
PORTVERSION= 0.3.1
PORTREVISION= 9
PORTREVISION= 10
CATEGORIES= www haskell

MAINTAINER= haskell@FreeBSD.org
Expand Down
1 change: 1 addition & 0 deletions www/hs-gitit/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

PORTNAME= gitit
PORTVERSION= 0.10.6.1
PORTREVISION= 1
CATEGORIES= www haskell

MAINTAINER= haskell@FreeBSD.org
Expand Down

0 comments on commit 29b7839

Please sign in to comment.