View | Details | Raw Unified | Return to bug 185171
Collapse All | Expand All

(-)Makefile (-17 / +21 lines)
Lines 2-16 Link Here
2
# $FreeBSD$
2
# $FreeBSD$
3
3
4
PORTNAME=	deng
4
PORTNAME=	deng
5
PORTVERSION=	1.9.0b6.9
5
PORTVERSION=	1.12.2
6
PORTREVISION=	3
7
CATEGORIES=	games
6
CATEGORIES=	games
8
MASTER_SITES=	SF/${PORTNAME}/Doomsday%20Engine/1.9.0-beta6.9
7
MASTER_SITES=	SF/${PORTNAME}/Doomsday%20Engine/${PORTVERSION}
9
DISTNAME=	${PORTNAME}-${PORTVERSION:S/b/-beta/}
8
DISTNAME=	doomsday-${PORTVERSION}
10
9
11
MAINTAINER=	ports@FreeBSD.org
10
MAINTAINER=	ports@FreeBSD.org
12
COMMENT=	Enhanced Doom, Heretic, and Hexen source port
11
COMMENT=	Enhanced Doom, Heretic, and Hexen source port
13
12
13
LICENSE=	GPLv2
14
14
BUILD_DEPENDS=	zip:${PORTSDIR}/archivers/zip
15
BUILD_DEPENDS=	zip:${PORTSDIR}/archivers/zip
15
LIB_DEPENDS=	libcurl.so:${PORTSDIR}/ftp/curl \
16
LIB_DEPENDS=	libcurl.so:${PORTSDIR}/ftp/curl \
16
		libpng15.so:${PORTSDIR}/graphics/png
17
		libpng15.so:${PORTSDIR}/graphics/png
Lines 21-32 Link Here
21
USE_SDL=	sdl mixer net
22
USE_SDL=	sdl mixer net
22
USE_XORG=	x11
23
USE_XORG=	x11
23
USE_PYTHON=	yes
24
USE_PYTHON=	yes
24
USES=		cmake:outsource
25
USES=		qmake pkgconfig
25
CMAKE_SOURCE_PATH=	${WRKSRC}/doomsday
26
USE_QT4=	qmake_build
27
QMAKE_SOURCE_PATH=	${WRKSRC}/doomsday
26
CFLAGS+=	-I${LOCALBASE}/include/libpng15
28
CFLAGS+=	-I${LOCALBASE}/include/libpng15
27
CMAKE_ARGS+=	-DCMAKE_EXE_LINKER_FLAGS:STRING="-Wl,--export-dynamic"
29
QMAKE_ARGS+=	QMAKE_LFLAGS+="-Wl,--export-dynamic" \
30
		CONFIG+="deng_notools deng_nosnowberry"
28
LDFLAGS+=	-lm
31
LDFLAGS+=	-lm
29
32
33
CONFIGURE_WRKSRC=	${WRKDIR}/build
34
BUILD_WRKSRC=		${CONFIGURE_WRKSRC}
35
INSTALL_WRKSRC=		${CONFIGURE_WRKSRC}
36
30
OPTIONS_DEFINE=	OPENAL DOCS
37
OPTIONS_DEFINE=	OPENAL DOCS
31
OPTIONS_DEFAULT=	DOCS
38
OPTIONS_DEFAULT=	DOCS
32
OPENAL_DESC=	Build OpenAL sound plugin
39
OPENAL_DESC=	Build OpenAL sound plugin
Lines 35-59 Link Here
35
42
36
.if ${PORT_OPTIONS:MOPENAL}
43
.if ${PORT_OPTIONS:MOPENAL}
37
USE_OPENAL=	al
44
USE_OPENAL=	al
38
CMAKE_ARGS+=	-DBUILDOPENAL:BOOL=ON
45
QMAKE_ARGS+=	CONFIG+=deng_openal
39
PLIST_SUB=	OPENAL=""
46
PLIST_SUB=	OPENAL=""
40
.else
47
.else
41
CMAKE_ARGS+=	-DBUILDOPENAL:BOOL=OFF
48
QMAKE_ARGS+=	CONFIG+=deng_noopenal
42
PLIST_SUB=	OPENAL="@comment "
49
PLIST_SUB=	OPENAL="@comment "
43
.endif
50
.endif
44
51
45
post-patch:
52
pre-configure:
46
	${REINPLACE_CMD} \
53
	${MKDIR} ${CONFIGURE_WRKSRC}
47
		-e '/CHECK_LIBRARY_EXIST/s/dl//' \
48
		-e '/TARGET_LINK_LIBRARIES/s/dl//' \
49
		${WRKSRC}/doomsday/CMakeLists.txt
50
54
51
post-install:
55
post-install:
52
	${LN} -s doomsday ${STAGEDIR}${PREFIX}/bin/deng
56
	${LN} -s doomsday ${STAGEDIR}${PREFIX}/bin/deng
53
	${INSTALL_MAN} ${WRKSRC}/doomsday/engine/doc/doomsday.6 ${STAGEDIR}${MANPREFIX}/man/man6/
57
	${INSTALL_MAN} ${WRKSRC}/doomsday/doc/output/doomsday.6 ${STAGEDIR}${MANPREFIX}/man/man6/
54
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
58
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
55
.for i in LICENSE changelog.txt cnsname.txt cvars.txt deddoc.txt dhistory.txt naming.txt network.txt
59
.for i in changelog.txt dhistory.txt
56
	${INSTALL_DATA} ${WRKSRC}/doomsday/engine/doc/${i} ${STAGEDIR}${DOCSDIR}/
60
	${INSTALL_DATA} ${WRKSRC}/doomsday/client/doc/changelogs/${i} ${STAGEDIR}${DOCSDIR}/
57
.endfor
61
.endfor
58
62
59
.include <bsd.port.mk>
63
.include <bsd.port.mk>
(-)distinfo (-2 / +2 lines)
Lines 1-2 Link Here
1
SHA256 (deng-1.9.0-beta6.9.tar.gz) = 3553f6a58660916fdedbe0594f5b22dac4738ee6e02b042992d3140d358954af
1
SHA256 (doomsday-1.12.2.tar.gz) = a021fd1d7540b43075b0906167c45e82fe698105222613097befdeb793363a4e
2
SIZE (deng-1.9.0-beta6.9.tar.gz) = 6085833
2
SIZE (doomsday-1.12.2.tar.gz) = 13028633
(-)files/patch-doomsday-config__unix.pri (+20 lines)
Line 0 Link Here
1
--- doomsday/config_unix.pri.orig	2013-12-24 05:39:13.000000000 -0700
2
+++ doomsday/config_unix.pri	2013-12-24 05:40:08.000000000 -0700
3
@@ -43,7 +43,7 @@
4
 }
5
 
6
 # Target location for plugin libraries.
7
-DENG_PLUGIN_LIB_DIR = $$DENG_LIB_DIR/doomsday
8
+DENG_PLUGIN_LIB_DIR = $$DENG_LIB_DIR/deng
9
 
10
 # When installing libraries to a non-standard location, instruct
11
 # the linker where to find them.
12
@@ -51,7 +51,7 @@
13
     QMAKE_LFLAGS += -Wl,-rpath,$$DENG_LIB_DIR
14
 }
15
 
16
-DENG_BASE_DIR = $$PREFIX/share/doomsday
17
+DENG_BASE_DIR = $$PREFIX/share/deng
18
 DENG_DATA_DIR = $$DENG_BASE_DIR/data
19
 
20
 DEFINES += DENG_BASE_DIR=\"\\\"$${DENG_BASE_DIR}/\\\"\"
(-)files/patch-doomsday-dep__zlib.pri (+13 lines)
Line 0 Link Here
1
--- doomsday/dep_zlib.pri.orig	2013-11-02 07:38:18.000000000 -0700
2
+++ doomsday/dep_zlib.pri	2013-12-24 04:55:18.000000000 -0700
3
@@ -12,6 +12,10 @@
4
     # Mac OS X.
5
     LIBS += -lz
6
 }
7
+else:freebsd-* {
8
+    # FreeBSD
9
+    LIBS += -lz
10
+}
11
 else {
12
     # Generic Unix.
13
     QMAKE_CFLAGS += $$system(pkg-config zlib --cflags)
(-)files/patch-gl_png.c (-10 lines)
Lines 1-10 Link Here
1
--- doomsday/engine/portable/src/gl_png.c.orig	2010-04-07 22:52:50.000000000 +0200
2
+++ doomsday/engine/portable/src/gl_png.c	2012-04-29 06:31:36.000000000 +0200
3
@@ -32,6 +32,7 @@
4
 // HEADER FILES ------------------------------------------------------------
5
 
6
 #include <png.h>
7
+#include <pngpriv.h>
8
 #include <setjmp.h>
9
 
10
 #include "de_base.h"
(-)pkg-message (+7 lines)
Line 0 Link Here
1
========================================================================
2
3
If you use an Intel graphics adapter and experience missing or
4
corrupted textures during gameplay, try launching doomsday with the
5
"-notexcomp" option.
6
7
========================================================================
(-)pkg-plist (-22 / +87 lines)
Lines 1-27 Link Here
1
bin/deng
1
bin/deng
2
bin/doomsday
2
bin/doomsday
3
bin/doomsday-server
4
%%OPENAL%%lib/deng/libaudio_openal.so
5
%%OPENAL%%lib/deng/libaudio_openal.so.1
6
%%OPENAL%%lib/deng/libaudio_openal.so.1.2
7
%%OPENAL%%lib/deng/libaudio_openal.so.1.2.4
8
lib/deng/libdehread.so
9
lib/deng/libdehread.so.2
10
lib/deng/libdehread.so.2.0
11
lib/deng/libdehread.so.2.0.0
12
lib/deng/libdoom.so
13
lib/deng/libdoom.so.1
14
lib/deng/libdoom.so.1.12
15
lib/deng/libdoom.so.1.12.2
16
lib/deng/libdoom64.so
17
lib/deng/libdoom64.so.1
18
lib/deng/libdoom64.so.1.12
19
lib/deng/libdoom64.so.1.12.2
20
lib/deng/libexample.so
21
lib/deng/libexample.so.1
22
lib/deng/libexample.so.1.2
23
lib/deng/libexample.so.1.2.0
24
lib/deng/libheretic.so
25
lib/deng/libheretic.so.1
26
lib/deng/libheretic.so.1.12
27
lib/deng/libheretic.so.1.12.2
28
lib/deng/libhexen.so
29
lib/deng/libhexen.so.1
30
lib/deng/libhexen.so.1.12
31
lib/deng/libhexen.so.1.12.2
32
lib/deng/libwadmapconverter.so
33
lib/deng/libwadmapconverter.so.1
34
lib/deng/libwadmapconverter.so.1.1
35
lib/deng/libwadmapconverter.so.1.1.0
36
lib/libdeng1.so
37
lib/libdeng1.so.1
38
lib/libdeng1.so.1.12
39
lib/libdeng1.so.1.12.2
40
lib/libdeng2.so
41
lib/libdeng2.so.2
42
lib/libdeng2.so.2.0
43
lib/libdeng2.so.2.0.0
44
lib/libdeng_gui.so
45
lib/libdeng_gui.so.1
46
lib/libdeng_gui.so.1.12
47
lib/libdeng_gui.so.1.12.2
48
lib/libdeng_shell.so
49
lib/libdeng_shell.so.0
50
lib/libdeng_shell.so.0.1
51
lib/libdeng_shell.so.0.1.0
3
man/man6/doomsday.6.gz
52
man/man6/doomsday.6.gz
4
lib/libdpdehread.so
5
lib/libdpwadmapconverter.so
6
%%OPENAL%%lib/libdsopenal.so
7
lib/libjdoom.so
8
lib/libjheretic.so
9
lib/libjhexen.so
10
%%DATADIR%%/data/doomsday.pk3
11
%%DATADIR%%/data/jdoom/jdoom.pk3
12
%%DATADIR%%/data/jheretic/jheretic.pk3
13
%%DATADIR%%/data/jhexen/jhexen.pk3
14
%%PORTDOCS%%%%DOCSDIR%%/LICENSE
15
%%PORTDOCS%%%%DOCSDIR%%/changelog.txt
53
%%PORTDOCS%%%%DOCSDIR%%/changelog.txt
16
%%PORTDOCS%%%%DOCSDIR%%/cnsname.txt
17
%%PORTDOCS%%%%DOCSDIR%%/cvars.txt
18
%%PORTDOCS%%%%DOCSDIR%%/deddoc.txt
19
%%PORTDOCS%%%%DOCSDIR%%/dhistory.txt
54
%%PORTDOCS%%%%DOCSDIR%%/dhistory.txt
20
%%PORTDOCS%%%%DOCSDIR%%/naming.txt
55
%%DATADIR%%/data/doomsday.pk3
21
%%PORTDOCS%%%%DOCSDIR%%/network.txt
56
%%DATADIR%%/data/fonts/console11.dfn
22
%%PORTDOCS%%@dirrm %%DOCSDIR%%
57
%%DATADIR%%/data/fonts/console14.dfn
23
@dirrm %%DATADIR%%/data/jdoom
58
%%DATADIR%%/data/fonts/console18.dfn
24
@dirrm %%DATADIR%%/data/jhexen
59
%%DATADIR%%/data/fonts/normal12.dfn
25
@dirrm %%DATADIR%%/data/jheretic
60
%%DATADIR%%/data/fonts/normal18.dfn
26
@dirrm %%DATADIR%%/data
61
%%DATADIR%%/data/fonts/normal24.dfn
27
@dirrm %%DATADIR%%
62
%%DATADIR%%/data/fonts/normalbold12.dfn
63
%%DATADIR%%/data/fonts/normalbold18.dfn
64
%%DATADIR%%/data/fonts/normalbold24.dfn
65
%%DATADIR%%/data/fonts/normallight12.dfn
66
%%DATADIR%%/data/fonts/normallight18.dfn
67
%%DATADIR%%/data/fonts/normallight24.dfn
68
%%DATADIR%%/data/graphics/background.pcx
69
%%DATADIR%%/data/graphics/loading1.png
70
%%DATADIR%%/data/graphics/loading2.png
71
%%DATADIR%%/data/graphics/logo.png
72
%%DATADIR%%/data/jdoom/libdoom.pk3
73
%%DATADIR%%/data/jdoom64/libdoom64.pk3
74
%%DATADIR%%/data/jheretic/libheretic.pk3
75
%%DATADIR%%/data/jhexen/libhexen.pk3
76
%%DATADIR%%/modules/Config.de
77
%%DATADIR%%/modules/appconfig.de
78
%%DATADIR%%/modules/bootstrap.de
79
%%DATADIR%%/modules/gui.de
80
%%DATADIR%%/modules/recutil.de
81
share/man/man6/doomsday.6
82
@dirrmtry %%DATADIR%%/modules
83
@dirrmtry %%DATADIR%%/data/jhexen
84
@dirrmtry %%DATADIR%%/data/jheretic
85
@dirrmtry %%DATADIR%%/data/jdoom64
86
@dirrmtry %%DATADIR%%/data/jdoom
87
@dirrmtry %%DATADIR%%/data/graphics
88
@dirrmtry %%DATADIR%%/data/fonts
89
@dirrmtry %%DATADIR%%/data
90
@dirrmtry %%DATADIR%%
91
%%PORTDOCS%%@dirrmtry %%DOCSDIR%%
92
@dirrmtry lib/deng

Return to bug 185171