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

(-)Makefile (-60 / +32 lines)
Lines 3-9 Link Here
3
3
4
PORTNAME=	ufoai
4
PORTNAME=	ufoai
5
PORTVERSION=	2.5
5
PORTVERSION=	2.5
6
PORTREVISION=	9
6
PORTREVISION=	10
7
CATEGORIES=	games
7
CATEGORIES=	games
8
MASTER_SITES=	SF/${PORTNAME}/UFO_AI%202.x/${PORTVERSION}
8
MASTER_SITES=	SF/${PORTNAME}/UFO_AI%202.x/${PORTVERSION}
9
DISTNAME=	${PORTNAME:S/$/-/}${PORTVERSION}-source
9
DISTNAME=	${PORTNAME:S/$/-/}${PORTVERSION}-source
Lines 20-37 Link Here
20
		libcurl.so:ftp/curl \
20
		libcurl.so:ftp/curl \
21
		libtheora.so:multimedia/libtheora \
21
		libtheora.so:multimedia/libtheora \
22
		libxvidcore.so:multimedia/xvid \
22
		libxvidcore.so:multimedia/xvid \
23
		libmxml.so:textproc/mxml
23
		libmxml.so:textproc/mxml \
24
		libogg.so:audio/libogg
24
BUILD_DEPENDS=	zip:archivers/zip
25
BUILD_DEPENDS=	zip:archivers/zip
25
RUN_DEPENDS=	${LOCALBASE}/share/${PORTNAME}/base/default.cfg:games/ufoai-data
26
RUN_DEPENDS=	${LOCALBASE}/share/${PORTNAME}/base/default.cfg:games/ufoai-data
26
27
27
ALL_TARGET=	all lang
28
USES=		compiler:c++11-lang gettext gl gmake jpeg localbase openal:soft \
28
USES=		compiler:c++11-lang gettext gl gmake jpeg openal:soft \
29
		pkgconfig python:build sdl tar:bzip2
29
		pkgconfig python:build sdl tar:bzip2
30
USE_GL=		yes
30
USE_GL=		gl
31
USE_SDL=	sdl image mixer ttf
31
USE_SDL=	sdl image mixer ttf
32
USE_CXXSTD=	c++11
32
USE_CXXSTD=	c++11
33
HAS_CONFIGURE=	yes
33
HAS_CONFIGURE=	yes
34
CONFIGURE_ARGS+=	--enable-release --target-os=freebsd
34
CONFIGURE_ARGS=	--enable-release --target-os=freebsd
35
ALL_TARGET=	all lang
35
LDFLAGS+=	-lpthread -lexecinfo
36
LDFLAGS+=	-lpthread -lexecinfo
36
37
37
DATADIR=	share/${PORTNAME}
38
DATADIR=	share/${PORTNAME}
Lines 42-102 Link Here
42
43
43
OPTIONS_DEFINE=		SERVER UFO2MAP UFORADIANT
44
OPTIONS_DEFINE=		SERVER UFO2MAP UFORADIANT
44
OPTIONS_DEFAULT=	SERVER UFO2MAP
45
OPTIONS_DEFAULT=	SERVER UFO2MAP
46
OPTIONS_SUB=		yes
45
47
46
SERVER_DESC=		Install dedicated server
48
SERVER_DESC=		Install dedicated server
47
UFO2MAP_DESC=		Install UFO tools
49
UFO2MAP_DESC=		Install UFO tools
48
UFORADIANT_DESC=	Install UFO map editor
50
UFORADIANT_DESC=	Install UFO map editor
49
51
50
.include <bsd.port.options.mk>
52
SERVER_CONFIGURE_ENABLE=ufoded
53
SERVER_VARS=		UFO_FILES+=ufoded
51
54
52
.if ${PORT_OPTIONS:MSERVER}
55
UFO2MAP_CONFIGURE_ENABLE=ufo2map
53
CONFIGURE_ARGS+=	--enable-ufoded
56
UFO2MAP_VARS=		UFO_FILES+=ufo2map
54
UFO_FILES+=	ufoded
55
PLIST_SUB+=	UFOSERVER=""
56
.else
57
CONFIGURE_ARGS+=	--disable-ufoded
58
PLIST_SUB+=	UFOSERVER="@comment "
59
.endif
60
57
61
.if ${PORT_OPTIONS:MUFO2MAP}
58
UFORADIANT_ALL_TARGET=	uforadiant
62
CONFIGURE_ARGS+=	--enable-ufo2map
59
UFORADIANT_CONFIGURE_ENABLE=uforadiant
63
UFO_FILES+=	ufo2map
60
UFORADIANT_USES=	gnome
64
PLIST_SUB+=	UFO2MAP=""
61
UFORADIANT_USE=		GNOME=gtk20,glib20,gtksourceview2,libxml2
65
.else
62
UFORADIANT_LIB_DEPENDS=	libgtkglext-x11-1.0.so:x11-toolkits/gtkglext
66
CONFIGURE_ARGS+=	--disable-ufo2map
67
PLIST_SUB+=	UFO2MAP="@comment "
68
.endif
69
63
70
.if ${PORT_OPTIONS:MUFORADIANT}
71
ALL_TARGET+=	uforadiant
72
CONFIGURE_ARGS+=--enable-uforadiant
73
USES+=		gnome
74
USE_GNOME+=	gtk20 glib20 gtksourceview2 libxml2
75
LIB_DEPENDS+=	libgtkglext-x11-1.0.so:x11-toolkits/gtkglext
76
RADIANT_FILES=	colours.xml game.xml input.xml mapdef.template menu.xml user.xml
77
RADIANT_DIRS=	bitmaps i18n prefabs sourceviewer
78
PLIST_SUB+=	UFORADIANT=""
79
.else
80
CONFIGURE_ARGS+=--disable-uforadiant
81
PLIST_SUB+=	UFORADIANT="@comment "
82
.endif
83
84
.include <bsd.port.pre.mk>
64
.include <bsd.port.pre.mk>
85
65
86
post-extract:
66
post-extract:
87
	@${MKDIR} ${WRKSRC}/base/maps ${WRKSRC}/base/models
67
	@${MKDIR} ${WRKSRC}/base/maps ${WRKSRC}/base/models
88
	${REINPLACE_CMD} \
68
	@${REINPLACE_CMD} \
89
		-e 's|DEFAULT_COMPILER_CC=cc|DEFAULT_COMPILER_CC=${CC}|' \
69
		-e 's|DEFAULT_COMPILER_CC=cc|DEFAULT_COMPILER_CC=${CC}|' \
90
		-e 's|DEFAULT_COMPILER_CXX=c++|DEFAULT_COMPILER_CXX=${CXX}|' \
70
		-e 's|DEFAULT_COMPILER_CXX=c++|DEFAULT_COMPILER_CXX=${CXX}|' \
91
		${WRKSRC}/configure
71
		${WRKSRC}/configure
92
.if ${CHOSEN_COMPILER_TYPE} == "clang"
72
.if ${CHOSEN_COMPILER_TYPE} == "clang"
93
	${REINPLACE_CMD} \
73
	@${REINPLACE_CMD} \
94
		-e 's|-falign-loops=2 -falign-jumps=2 -falign-functions=2||' \
74
		-e 's|-falign-loops=2 -falign-jumps=2 -falign-functions=2||' \
95
		${WRKSRC}/build/modes/release.mk
75
		${WRKSRC}/build/modes/release.mk
96
.endif
76
.endif
77
.for LIB in SDL SDL_mixer SDL_ttf curl intl jpeg mxml ogg png theora vorbis zlib
78
	@${RM} -rf ${WRKSRC}/src/libs/${LIB}
79
.endfor
97
80
98
do-install:
81
do-install:
99
	${MKDIR} ${STAGEDIR}${UFO_DIR}
82
	@${MKDIR} ${STAGEDIR}${UFO_DIR}
100
.for FILE in ${UFO_FILES}
83
.for FILE in ${UFO_FILES}
101
	@${SED} \
84
	@${SED} \
102
		-e 's|@UFODIR@|${UFO_DIR}|' \
85
		-e 's|@UFODIR@|${UFO_DIR}|' \
Lines 105-115 Link Here
105
	${INSTALL_PROGRAM} ${WRKSRC}/${FILE} ${STAGEDIR}${UFO_DIR}
88
	${INSTALL_PROGRAM} ${WRKSRC}/${FILE} ${STAGEDIR}${UFO_DIR}
106
	${INSTALL_SCRIPT} ${WRKDIR}/${FILE} ${STAGEDIR}${PREFIX}/bin
89
	${INSTALL_SCRIPT} ${WRKDIR}/${FILE} ${STAGEDIR}${PREFIX}/bin
107
.endfor
90
.endfor
108
	${MKDIR} ${STAGEDIR}${PREFIX}/${DATADIR}/base
91
	@${MKDIR} ${STAGEDIR}${PREFIX}/${DATADIR}/base
109
	${INSTALL_PROGRAM} ${WRKSRC}/base/game.so ${STAGEDIR}${PREFIX}/${DATADIR}/base
92
	${INSTALL_PROGRAM} ${WRKSRC}/base/game.so ${STAGEDIR}${PREFIX}/${DATADIR}/base
110
93
111
.if ${PORT_OPTIONS:MUFORADIANT}
94
	@cd ${WRKSRC}/base/i18n && \
112
	${MKDIR} ${STAGEDIR}${UFO_DIR}/radiant
95
		${FIND} * -type d -exec ${MKDIR} "${STAGEDIR}${PREFIX}/${DATADIR}/base/i18n/{}" \; && \
96
			${FIND} * -type f -exec ${INSTALL_DATA} {} "${STAGEDIR}${PREFIX}/${DATADIR}/base/i18n/{}" \;
97
	${LN} -s ../../${DATADIR}/base ${STAGEDIR}${UFO_DIR}/base
98
99
do-install-UFORADIANT-on:
100
	@${MKDIR} ${STAGEDIR}${UFO_DIR}/radiant
113
	@${SED} \
101
	@${SED} \
114
		-e 's|@UFODIR@|${UFO_DIR}/radiant|' \
102
		-e 's|@UFODIR@|${UFO_DIR}/radiant|' \
115
		-e 's|@APP@|uforadiant|' \
103
		-e 's|@APP@|uforadiant|' \
Lines 116-137 Link Here
116
		${FILESDIR}/run.sh.in > ${WRKDIR}/uforadiant
104
		${FILESDIR}/run.sh.in > ${WRKDIR}/uforadiant
117
	${INSTALL_PROGRAM} ${WRKSRC}/radiant/uforadiant ${STAGEDIR}${UFO_DIR}/radiant
105
	${INSTALL_PROGRAM} ${WRKSRC}/radiant/uforadiant ${STAGEDIR}${UFO_DIR}/radiant
118
	${INSTALL_SCRIPT} ${WRKDIR}/uforadiant ${STAGEDIR}${PREFIX}/bin
106
	${INSTALL_SCRIPT} ${WRKDIR}/uforadiant ${STAGEDIR}${PREFIX}/bin
107
	@cd ${WRKSRC}/radiant && ${COPYTREE_SHARE} . ${STAGEDIR}${UFO_DIR}/radiant
119
108
120
.for FILE in ${RADIANT_FILES}
121
	${INSTALL_DATA} ${WRKSRC}/radiant/${FILE} ${STAGEDIR}${UFO_DIR}/radiant
122
.endfor
123
124
.for DIRE in ${RADIANT_DIRS}
125
	${MKDIR} ${STAGEDIR}${UFO_DIR}/radiant/${DIRE}
126
	cd ${WRKSRC}/radiant/${DIRE} && \
127
		${FIND} * -type d -exec ${MKDIR} "${STAGEDIR}${UFO_DIR}/radiant/${DIRE}/{}" \; && \
128
		${FIND} * -type f -exec ${INSTALL_DATA} {} "${STAGEDIR}${UFO_DIR}/radiant/${DIRE}/{}" \;
129
.endfor
130
.endif
131
132
	cd ${WRKSRC}/base/i18n && \
133
		${FIND} * -type d -exec ${MKDIR} "${STAGEDIR}${PREFIX}/${DATADIR}/base/i18n/{}" \; && \
134
			${FIND} * -type f -exec ${INSTALL_DATA} {} "${STAGEDIR}${PREFIX}/${DATADIR}/base/i18n/{}" \;
135
	${LN} -s ${PREFIX}/${DATADIR}/base ${STAGEDIR}${UFO_DIR}/base
136
137
.include <bsd.port.post.mk>
109
.include <bsd.port.post.mk>
(-)files/patch-src__libs__vorbis__config.h (-11 lines)
Lines 1-11 Link Here
1
--- ./src/libs/vorbis/config.h.orig	2014-06-05 06:18:39.000000000 +0200
2
+++ ./src/libs/vorbis/config.h	2014-08-07 16:49:53.700302995 +0200
3
@@ -14,7 +14,7 @@
4
 
5
 /* Define to 1 if you have <alloca.h> and it should be used (not on Ultrix).
6
    */
7
-#define HAVE_ALLOCA_H 1
8
+/* #define HAVE_ALLOCA_H 1 */
9
 
10
 /* Define to 1 if you have the <dlfcn.h> header file. */
11
 #define HAVE_DLFCN_H 1
(-)pkg-plist (-2 / +2 lines)
Lines 1-6 Link Here
1
bin/ufo
1
bin/ufo
2
bin/ufomodel
2
bin/ufomodel
3
%%UFOSERVER%%bin/ufoded
3
%%SERVER%%bin/ufoded
4
%%UFO2MAP%%bin/ufo2map
4
%%UFO2MAP%%bin/ufo2map
5
%%UFORADIANT%%bin/uforadiant
5
%%UFORADIANT%%bin/uforadiant
6
%%DATADIR%%/base/game.so
6
%%DATADIR%%/base/game.so
Lines 34-40 Link Here
34
%%DATADIR%%/base/i18n/zh_TW/LC_MESSAGES/ufoai.mo
34
%%DATADIR%%/base/i18n/zh_TW/LC_MESSAGES/ufoai.mo
35
lib/ufoai/ufo
35
lib/ufoai/ufo
36
lib/ufoai/ufomodel
36
lib/ufoai/ufomodel
37
%%UFOSERVER%%lib/ufoai/ufoded
37
%%SERVER%%lib/ufoai/ufoded
38
%%UFO2MAP%%lib/ufoai/ufo2map
38
%%UFO2MAP%%lib/ufoai/ufo2map
39
lib/ufoai/base
39
lib/ufoai/base
40
%%UFORADIANT%%lib/ufoai/radiant/bitmaps/texwindow_hideunused.png
40
%%UFORADIANT%%lib/ufoai/radiant/bitmaps/texwindow_hideunused.png

Return to bug 242612