http://ufoai.org/w/api.php?action=feedcontributions&user=Nukama&feedformat=atom
UFO:AI - User contributions [en]
2024-03-29T02:20:54Z
User contributions
MediaWiki 1.35.4
http://ufoai.org/w/index.php?title=FreeBSD&diff=28036
FreeBSD
2010-07-31T12:21:25Z
<p>Nukama: some minor problems</p>
<hr />
<div>== FreeBSD port ==<br />
<br />
* {{wip}} FreeBSD port for UFO:AI-2.3<br />
** {{wip}} Makefile: adjust the do-install target, port compiles and ufo can be run within the ufoai23/work/ufoai-2.3-source directory<br />
** {{done}} distinfo<br />
** {{done}} pkg-descr<br />
** {{wip}} update pkg-plist: languages and other added files/dirs<br />
** {{done}} files/pkg-message.in<br />
** {{open}} files/run-sh.in: needed?<br />
<br />
* {{wip}} FreeBSD port for UFO:AI-2.4-devel: Fetch sources from svn<br />
** {{done}} "make svn" fetches the revision specified with ${PORTVERSION}<br />
** {{open}} change to interactive mode (->"make svn 31071")<br />
** {{wip}} Makefile: adjust the do-install target, port compiles and ufo can be run within the ufoai-devel/work/trunk directory<br />
** {{done}} distinfo generated with "make makesum" inside "make svn"<br />
** {{done}} pkg-descr<br />
** {{wip}} update pkg-plist: languages and other added files/dirs<br />
** {{done}} files/pkg-message.in<br />
<br />
=== UFO:AI 2.3 ===<br />
BSD Licence for the portfiles, which are based upon ufoai-2.2.1 port.<br />
==== ufoai23/Makefile (draft) ====<br />
<pre><br />
# New ports collection makefile for: ufoai<br />
# Date created: 2006-09-03<br />
# Whom: Jose Alonso Cardenas Marquez <acm><br />
#<br />
# $FreeBSD: ports/games/ufoai23/Makefile<br />
#<br />
<br />
PORTNAME= ufoai<br />
PORTVERSION= 2.3<br />
CATEGORIES= games<br />
MASTER_SITES= SF/${PORTNAME}/UFO_AI%202.x/${PORTVERSION}<br />
DISTNAME= ${PORTNAME:S/$/-/}${PORTVERSION}<br />
DISTFILES= ufoai-${PORTVERSION}-source.tar.bz2 ufoai-${PORTVERSION}-data.tar<br />
DIST_SUBDIR= ${PORTNAME}<br />
<br />
#LATEST_LINK= ufoai23<br />
<br />
MAINTAINER= ports@FreeBSD.org<br />
COMMENT= A strategy game featuring tactical combat<br />
<br />
LIB_DEPENDS= vorbis:${PORTSDIR}/audio/libvorbis \<br />
jpeg.11:${PORTSDIR}/graphics/jpeg \<br />
png.6:${PORTSDIR}/graphics/png \<br />
curl:${PORTSDIR}/ftp/curl \<br />
theora:${PORTSDIR}/multimedia/libtheora \<br />
xvidcore:${PORTSDIR}/multimedia/xvid \<br />
gtkglext-x11:${PORTSDIR}/x11-toolkits/gtkglext<br />
<br />
# Not needed anymore, after merging ufoai-data to ufoai23?<br />
#RUN_DEPENDS= ${LOCALBASE}/share/${PORTNAME}/default.cfg:${PORTSDIR}/games/ufoai-data<br />
<br />
# pk3 files decompression<br />
EXTRACT_DEPENDS=unzip:${PORTSDIR}/archivers/unzip<br />
USE_GL= yes<br />
USE_SDL= sdl mixer ttf image<br />
USE_OPENAL= al<br />
# UFORadiant needs these. Without UFORadiant no tactical missions. <br />
# (sic!, maybe we can configure this without so much dependencies)<br />
USE_GNOME= gtk20 glib20 gtksourceview2 libxml2<br />
USE_GETTEXT= yes<br />
GNU_CONFIGURE= yes<br />
USE_GMAKE= yes<br />
CONFIGURE_ARGS+= --enable-release=yes<br />
<br />
# portlint warning for CONFIGURE_ENV+<br />
CONFIGURE_ENV+= LDFLAGS="-L${LOCALBASE}/lib ${PTHREAD_LIBS}" \<br />
CFLAGS="${CFLAGS} -I${LOCALBASE}/include" \<br />
CPPFLAGS="-I${LOCALBASE}/include ${PTHREAD_CFLAGS}"<br />
<br />
DATADIR= share/${PORTNAME}<br />
SUB_FILES= pkg-message<br />
<br />
# source-file extracts here:<br />
WRKSRC= ${WRKDIR}/${PORTNAME:S/$/-/}${PORTVERSION}-source<br />
UFO_DIR= ${PREFIX}/lib/${PORTNAME}<br />
UFO_FILES= ufo<br />
<br />
# ufoai.xpm resides in debian/ufoai.xpm<br />
# portlint doesn't want the false variable..<br />
DESKTOP_ENTRIES= "UFO:AI" "A squad-based tactical strategy game" \<br />
"${DATADIR}/ufoai.xpm" \<br />
"ufo" "Application;Game;StrategyGame;" \<br />
false<br />
<br />
OPTIONS= SERVER "Install dedicated server" on \<br />
UFO2MAP "Install UFO tools" on \<br />
UFORADIANT "Install UFORadiant mapeditor" off \<br />
<br />
.include <bsd.port.pre.mk><br />
<br />
# Can be removed, if fixed in configure.ac upstream<br />
.if ${ARCH} == "amd64"<br />
CONFIGURE_TARGET?=x86_64-portbld-freebsd${OSREL}<br />
.endif<br />
<br />
.if !defined(WITHOUT_SERVER)<br />
CONFIGURE_ARGS+= --enable-dedicated<br />
UFO_FILES+= ufoded<br />
PLIST_SUB+= UFOSERVER=""<br />
.else<br />
CONFIGURE_ARGS+= --disable-dedicated<br />
PLIST_SUB+= UFOSERVER="@comment "<br />
.endif<br />
<br />
.if !defined(WITHOUT_UFO2MAP)<br />
CONFIGURE_ARGS+= --enable-ufo2map<br />
UFO_FILES+= ufo2map<br />
PLIST_SUB+= UFO2MAP=""<br />
.else<br />
CONFIGURE_ARGS+= --disable-ufo2map<br />
PLIST_SUB+= UFO2MAP="@comment "<br />
.endif<br />
<br />
.if !defined(WITHOUT_UFORADIANT)<br />
# I'm not sure, if --enable-uforadiant should be here or in the global args<br />
CONFIGURE_ARGS+= --enable-uforadiant<br />
UFO_FILES+= uforadiant<br />
PLIST_SUB+= UFORADIANT=""<br />
.else<br />
CONFIGURE_ARGS+= --enable-uforadiant<br />
PLIST_SUB+= UFORADIANT="@comment "<br />
.endif<br />
<br />
<br />
post-patch:<br />
# Unpacking pk3 files (from ufoai-data Makefile)<br />
@cd ${WRKDIR}/base && \<br />
${FIND} * -type f -exec ${UNZIP_CMD} "{}" -d ${WRKSRC}/base \;<br />
<br />
# Maybe set an option to let the user choose, if he wants to make the pk3 files, install the ones from data.tar or without pk3<br />
@${RM} ${WRKDIR}/base/*.pk3<br />
<br />
# Resolve name collision with jpeg-8 amd API png<br />
# Nukama: still needed in 2.3?<br />
# ${REINPLACE_CMD} -e 's|jpeg_mem_src|local_jpeg_mem_src|' \<br />
# -e 's|png_set_gray_1_2_4_to_8|png_set_expand_gray_1_2_4_to_8|' \<br />
# -e 's|png_check_sig(PngFileBuffer.buffer, 8)|!png_sig_cmp(PngFileBuffer.buffer, 0, 8)|' \<br />
# ${WRKSRC}/src/client/renderer/r_image.c \<br />
# ${WRKSRC}/src/tools/ufo2map/common/imagelib.c<br />
<br />
pre-install:<br />
#. for FILE in ${UFO_FILES}<br />
# @${ECHO} "#!/bin/sh" > ${WRKDIR}/${FILE}<br />
# @${ECHO} "cd ${PREFIX}/${DATADIR} || exit 1 " >> ${WRKDIR}/${FILE}<br />
# @${ECHO} "exec ${PREFIX}/${DATADIR}/${FILE} \"$$@\"" >> ${WRKDIR}/${FILE}<br />
#. endfor<br />
<br />
post-build:<br />
@cd ${WRKSRC} && ${GMAKE} lang<br />
<br />
# UFORadiant Mapeditor doesn't work yet (with openal-soft I can start it, with some errors..)<br />
.if !defined(WITHOUT_UFORADIANT)<br />
@cd ${WRKSRC} && ${GMAKE} uforadiant<br />
.endif<br />
<br />
do-install:<br />
# @${MKDIR} ${UFO_DIR}/base/i18n<br />
#. for FILE in ${UFO_FILES}<br />
# @${SED} \<br />
# -e 's|@UFODIR@|${UFO_DIR}|' \<br />
# -e 's|@APP@|${FILE}|' \<br />
# ${FILESDIR}/run.sh.in > ${WRKDIR}/${FILE}<br />
# ${INSTALL_PROGRAM} ${WRKSRC}/${FILE} ${UFO_DIR}<br />
# ${INSTALL_SCRIPT} ${WRKDIR}/${FILE} ${PREFIX}/bin<br />
#. endfor<br />
<br />
# ${INSTALL_PROGRAM} ${WRKSRC}/base/game.so ${UFO_DIR}/base<br />
#<br />
# @cd ${WRKSRC}/base/i18n && \<br />
# ${FIND} * -type d -exec ${MKDIR} "${UFO_DIR}/base/i18n/{}" \; && \<br />
# ${FIND} * -type f -exec ${INSTALL_DATA} "{}" "${UFO_DIR}/base/i18n/{}" \;<br />
# ${LN} -s ${PREFIX}/${DATADIR}/* ${UFO_DIR}/base<br />
<br />
post-install:<br />
@${CAT} ${PKGMESSAGE}<br />
<br />
.include <bsd.port.post.mk><br />
</pre><br />
<br />
==== ufoai23/distinfo (draft) ====<br />
<pre><br />
MD5 (ufoai/ufoai-2.3-data.tar) = 08fa6d5c80231468c4d5e886600c8dcf<br />
SHA256 (ufoai/ufoai-2.3-data.tar) = 0e535ce268e9a9ae08cee9b8b62ffed055bdb3182f86bf5c429ec4c54c9fa224<br />
SIZE (ufoai/ufoai-2.3-data.tar) = 529571840<br />
MD5 (ufoai/ufoai-2.3-source.tar.bz2) = 9d180ed896a58fe0e514601cd7637dc1<br />
SHA256 (ufoai/ufoai-2.3-source.tar.bz2) = e9c231117b779bab94bcd82c6bbf2051b2b310d7a13eb4bba10085ce0b0e64dd<br />
SIZE (ufoai/ufoai-2.3-source.tar.bz2) = 9839841<br />
</pre><br />
<br />
==== ufoai23/pkg-descr (from 2.2.1) ====<br />
<pre><br />
UFO ALIEN INVASION is a strategy game featuring tactical combat against hostile<br />
alien forces which are about to infiltrate earth at this very moment. You are<br />
in command of a small special unit which has been founded to face the alien<br />
strike force. To be successful on the long run, you will also have to have a<br />
research team study the aliens and their technologies in order to learn as much<br />
as possible about their technology, their goals and the aliens themselves.<br />
<br />
WWW: http://ufoai.ninex.info/<br />
</pre><br />
<br />
==== ufoai23/pkg-plist (draft) ====<br />
<pre><br />
# I've not checked this plist yet, added entries for uforadiant<br />
bin/ufo<br />
%%UFOSERVER%%bin/ufoded<br />
%%UFO2MAP%%bin/ufo2map<br />
%%UFORADIANT%%bin/uforadiant<br />
lib/ufoai/base/game.so<br />
lib/ufoai/base/irc_motd.txt<br />
lib/ufoai/base/i18n/cs/LC_MESSAGES/ufoai.mo<br />
lib/ufoai/base/i18n/da/LC_MESSAGES/ufoai.mo<br />
lib/ufoai/base/i18n/de/LC_MESSAGES/ufoai.mo<br />
lib/ufoai/base/i18n/el/LC_MESSAGES/ufoai.mo<br />
lib/ufoai/base/i18n/en/LC_MESSAGES/ufoai.mo<br />
lib/ufoai/base/i18n/es/LC_MESSAGES/ufoai.mo<br />
lib/ufoai/base/i18n/es_ES/LC_MESSAGES/ufoai.mo<br />
lib/ufoai/base/i18n/est/LC_MESSAGES/ufoai.mo<br />
lib/ufoai/base/i18n/fi/LC_MESSAGES/ufoai.mo<br />
lib/ufoai/base/i18n/fr/LC_MESSAGES/ufoai.mo<br />
lib/ufoai/base/i18n/ja/LC_MESSAGES/ufoai.mo<br />
lib/ufoai/base/i18n/it/LC_MESSAGES/ufoai.mo<br />
lib/ufoai/base/i18n/pl/LC_MESSAGES/ufoai.mo<br />
lib/ufoai/base/i18n/pt_BR/LC_MESSAGES/ufoai.mo<br />
lib/ufoai/base/i18n/ru/LC_MESSAGES/ufoai.mo<br />
lib/ufoai/base/i18n/slo/LC_MESSAGES/ufoai.mo<br />
lib/ufoai/base/i18n/sv/LC_MESSAGES/ufoai.mo<br />
lib/ufoai/base/i18n/th/LC_MESSAGES/ufoai.mo<br />
lib/ufoai/ufo<br />
%%UFOSERVER%%lib/ufoai/ufoded<br />
%%UFO2MAP%%lib/ufoai/ufo2map<br />
%%UFORADIANT%%lib/ufoai/uforadiant<br />
lib/ufoai/base/autoexec.cfg<br />
lib/ufoai/base/dedicated.cfg<br />
lib/ufoai/base/default.cfg<br />
lib/ufoai/base/keys.cfg<br />
lib/ufoai/base/maps<br />
lib/ufoai/base/media<br />
lib/ufoai/base/models<br />
lib/ufoai/base/music<br />
lib/ufoai/base/pics<br />
lib/ufoai/base/shaders<br />
lib/ufoai/base/sound<br />
lib/ufoai/base/textures<br />
lib/ufoai/base/ufos<br />
@dirrm lib/ufoai/base/i18n/th/LC_MESSAGES/<br />
@dirrm lib/ufoai/base/i18n/th/<br />
@dirrm lib/ufoai/base/i18n/sv/LC_MESSAGES<br />
@dirrm lib/ufoai/base/i18n/sv<br />
@dirrm lib/ufoai/base/i18n/slo/LC_MESSAGES<br />
@dirrm lib/ufoai/base/i18n/slo<br />
@dirrm lib/ufoai/base/i18n/ru/LC_MESSAGES<br />
@dirrm lib/ufoai/base/i18n/ru<br />
@dirrm lib/ufoai/base/i18n/pt_BR/LC_MESSAGES<br />
@dirrm lib/ufoai/base/i18n/pt_BR<br />
@dirrm lib/ufoai/base/i18n/pl/LC_MESSAGES<br />
@dirrm lib/ufoai/base/i18n/pl<br />
@dirrm lib/ufoai/base/i18n/ja/LC_MESSAGES/<br />
@dirrm lib/ufoai/base/i18n/ja<br />
@dirrm lib/ufoai/base/i18n/it/LC_MESSAGES<br />
@dirrm lib/ufoai/base/i18n/it<br />
@dirrm lib/ufoai/base/i18n/fi/LC_MESSAGES<br />
@dirrm lib/ufoai/base/i18n/fi<br />
@dirrm lib/ufoai/base/i18n/fr/LC_MESSAGES<br />
@dirrm lib/ufoai/base/i18n/fr<br />
@dirrm lib/ufoai/base/i18n/est/LC_MESSAGES<br />
@dirrm lib/ufoai/base/i18n/est<br />
@dirrm lib/ufoai/base/i18n/es/LC_MESSAGES<br />
@dirrm lib/ufoai/base/i18n/es<br />
@dirrm lib/ufoai/base/i18n/es_ES/LC_MESSAGES<br />
@dirrm lib/ufoai/base/i18n/es_ES<br />
@dirrm lib/ufoai/base/i18n/en/LC_MESSAGES<br />
@dirrm lib/ufoai/base/i18n/en<br />
@dirrm lib/ufoai/base/i18n/el/LC_MESSAGES<br />
@dirrm lib/ufoai/base/i18n/el<br />
@dirrm lib/ufoai/base/i18n/de/LC_MESSAGES<br />
@dirrm lib/ufoai/base/i18n/de<br />
@dirrm lib/ufoai/base/i18n/da/LC_MESSAGES<br />
@dirrm lib/ufoai/base/i18n/da<br />
@dirrm lib/ufoai/base/i18n/cs/LC_MESSAGES<br />
@dirrm lib/ufoai/base/i18n/cs<br />
@dirrm lib/ufoai/base/i18n<br />
@dirrmtry lib/ufoai/base<br />
@dirrmtry lib/ufoai<br />
</pre><br />
<br />
==== ufoai23/files/pkg-message.in (draft) ====<br />
<pre><br />
###############################################################################<br />
<br />
The UFO ALien Invasion was installed<br />
<br />
1) Run the UFO Client using:<br />
<br />
# ufo<br />
<br />
2) or UFO Dedicated Server using:<br />
<br />
# ufoded<br />
<br />
3) or UFO Maps Tool using:<br />
<br />
# ufo2map<br />
<br />
4) or UFO Radiant using:<br />
<br />
# uforadiant<br />
<br />
5) If you are using the UFO CLient, you need a minimal 1024x968 resolution. It <br />
avoids some problems during the game.<br />
<br />
6) Enjoy it ;) <br />
<br />
###############################################################################<br />
</pre><br />
<br />
==== ufoai23/files/run.sh.in (from 2.2.1) ====<br />
<pre><br />
#!/bin/sh<br />
<br />
cd @UFODIR@ || exit 1<br />
exec @UFODIR@/@APP@ "$@"<br />
</pre><br />
<br />
<br />
=== UFO:AI 2.4 dev ===<br />
BSD Licence for the portfiles, which are based upon ufoai-2.2.1 port.<br />
==== ufoai-devel/Makefile (draft) ====<br />
<pre><br />
# New ports collection makefile for: ufoai-devel<br />
# Date created: 2010-07-30<br />
# Whom: Hakisho Nukama <nukama@><br />
#<br />
# $FreeBSD: ports/games/ufoai-devel/Makefile<br />
#<br />
<br />
PORTNAME= ufoai-devel<br />
PORTVERSION= 31071<br />
CATEGORIES= games<br />
MASTER_SITES= SF/${PORTNAME}/UFO_AI%202.x/${PORTVERSION}<br />
DISTNAME= ${PORTNAME}-${PORTVERSION}<br />
DISTFILES= ${PORTNAME}-${PORTVERSION}.tar.bz2<br />
DIST_SUBDIR= ${PORTNAME}<br />
<br />
MAINTAINER= nukama@<br />
COMMENT= A strategy game featuring tactical combat<br />
<br />
FETCH_DEPENDS= svn:${PORTSDIR}/devel/subversion \<br />
rsync:${PORTSDIR}/net/rsync<br />
<br />
EXTRACT_DEPENDS=unzip:${PORTSDIR}/archivers/unzip<br />
<br />
LIB_DEPENDS= vorbis:${PORTSDIR}/audio/libvorbis \<br />
jpeg.11:${PORTSDIR}/graphics/jpeg \<br />
png.6:${PORTSDIR}/graphics/png \<br />
curl:${PORTSDIR}/ftp/curl \<br />
theora:${PORTSDIR}/multimedia/libtheora \<br />
xvidcore:${PORTSDIR}/multimedia/xvid \<br />
gtkglext-x11:${PORTSDIR}/x11-toolkits/gtkglext<br />
<br />
USE_GL= yes<br />
USE_SDL= sdl mixer ttf image<br />
USE_OPENAL= al<br />
USE_GETTEXT= yes<br />
GNU_CONFIGURE= yes<br />
USE_GMAKE= yes<br />
# UFORadiant needs these. Extra configuration without these. Without UFORadiant no tactical missions.<br />
USE_GNOME= gtk20 glib20 gtksourceview2 libxml2<br />
CONFIGURE_ARGS+= --enable-release=no<br />
# portlint warning<br />
CONFIGURE_ENV+= LDFLAGS="-L${LOCALBASE}/lib ${PTHREAD_LIBS}" \<br />
CFLAGS="${CFLAGS} -I${LOCALBASE}/include" \<br />
CPPFLAGS="-I${LOCALBASE}/include ${PTHREAD_CFLAGS}"<br />
<br />
DATADIR= share/${PORTNAME}<br />
#SUB_FILES= pkg-message<br />
# sourcefile extracts here:<br />
WRKSRC= ${WRKDIR}/trunk<br />
UFO_DIR= ${PREFIX}/lib/${PORTNAME}<br />
UFO_FILES= ufo<br />
<br />
DESKTOP_ENTRIES= "UFO:AI" "A squad-based tactical strategy game" \<br />
"${DATADIR}/ufoai.xpm" \<br />
"ufo" "Application;Game;StrategyGame;" \<br />
false \<br />
<br />
OPTIONS= SVN "Fetch from subversion" on \<br />
SERVER "Install dedicated server" on \<br />
UFO2MAP "Install UFO tools" on \<br />
UFORADIANT "Install UFORADIANT mapeditor" off \<br />
LANG "Compile translation" off \<br />
MAPS "Compile MAPS" off \<br />
MAPGET "Download MAPS" off \<br />
PK3 "Assemble pk3 files" off \<br />
<br />
.include <bsd.port.pre.mk><br />
<br />
.if ${ARCH} == "amd64"<br />
CONFIGURE_TARGET?= x86_64-portbld-freebsd${OSREL}<br />
#.else<br />
#CONFIGURE_TARGET= ${ARCH}-portbld-freebsd${OSREL}<br />
.endif<br />
<br />
.if !defined(WITHOUT_SERVER)<br />
CONFIGURE_ARGS+= --enable-dedicated<br />
UFO_FILES+= ufoded<br />
PLIST_SUB+= UFOSERVER=""<br />
.else<br />
CONFIGURE_ARGS+= --disable-dedicated<br />
PLIST_SUB+= UFOSERVER="@comment "<br />
.endif<br />
<br />
.if !defined(WITHOUT_UFO2MAP)<br />
CONFIGURE_ARGS+= --enable-ufo2map<br />
UFO_FILES+= ufo2map<br />
PLIST_SUB+= UFO2MAP=""<br />
.else<br />
CONFIGURE_ARGS+= --disable-ufo2map<br />
PLIST_SUB+= UFO2MAP="@comment "<br />
.endif<br />
<br />
.if !defined(WITHOUT_UFORADIANT)<br />
CONFIGURE_ARGS+= --enable-uforadiant<br />
UFO_FILES+= uforadiant<br />
PLIST_SUB+= UFORADIANT=""<br />
.else<br />
CONFIGURE_ARGS+= --disable-uforadiant<br />
PLIST_SUB+= UFORADIANT="@comment "<br />
.endif<br />
<br />
pre-fetch:<br />
# make svn, if svn tree not existent.<br />
<br />
#Type 'make svn' to update svn source to r${PORTVERSION}<br />
#maybe implement use make svn 31071 to update to svn rev with svn co -r $1 ?<br />
svn:<br />
.if !defined(WITHOUT_SVN)<br />
svn cleanup ${DISTDIR}/${DIST_SUBDIR}/trunk/<br />
#SVN-Destination in distdir, shouldn't get wiped by a make clean.<br />
svn co -r ${PORTVERSION} https://ufoai.svn.sourceforge.net/svnroot/ufoai/ufoai/trunk ${DISTDIR}/${DIST_SUBDIR}/trunk/<br />
#RELEASE<br />
#svn co https://ufoai.svn.sourceforge.net/svnroot/ufoai/ufoai/branches/ufoai_2.3 ${DISTDIR}/ufoai-2.3/trunk<br />
#Create an empty tar in ${DISTDIR}/${DIST_SUBDIR} to please ports-system<br />
touch ${DISTDIR}/${DIST_SUBDIR}/${PORTNAME}-${PORTVERSION}.tar.bz2<br />
make makesum<br />
.endif<br />
<br />
pre-configure:<br />
.if !defined(WITHOUT_SVN)<br />
rsync -avP ${DISTDIR}/${DIST_SUBDIR}/trunk/* ${WRKDIR}/trunk/<br />
#rsync -avP ${DISTDIR}/ufoai-2.3/trunk/* ${WRKDIR}/trunk/<br />
.endif<br />
<br />
post-patch:<br />
<br />
pre-install:<br />
<br />
post-build:<br />
.if !defined(WITHOUT_LANG)<br />
@cd ${WRKSRC} && ${GMAKE} lang<br />
.endif<br />
.if !defined(WITHOUT_UFORADIANT)<br />
@cd ${WRKSRC} && ${GMAKE} uforadiant<br />
.endif<br />
.if !defined(WITHOUT_MAPS)<br />
@cd ${WRKSRC} && ${GMAKE} maps<br />
.endif<br />
.if !defined(WITHOUT_MAPGET)<br />
@cd ${WRKSRC} && contrib/scripts/map-get.py upgrade<br />
.endif<br />
.if !defined(WITHOUT_PK3)<br />
@cd ${WRKSRC} && ${GMAKE} pk3<br />
.endif<br />
<br />
do-install:<br />
<br />
post-install:<br />
# @${CAT} ${PKGMESSAGE}<br />
<br />
.include <bsd.port.post.mk><br />
</pre><br />
<br />
ufoai-devel/distinfo (generated for empty archive)<br />
<br />
ufoai-devel/pkg-descr (ufoai23-version)<br />
<br />
ufoai-devel/pkg-plist (ufoai23-version)<br />
<br />
ufoai-devel/files/pkg-message.in (ufoai23-version)<br />
<br />
<br />
=== Problems ===<br />
<br />
My build inside a fresh x86_64-jail works. <br />
But with my host system (with old packages) I experienced a problem (undefined reference to backtrace) while building src/ports/unix regardless of revision.<br />
<br />
<pre><br />
* [UFO] src/client/battlescape/cl_battlescape.c<br />
src/client/battlescape/cl_battlescape.c: In function 'Grid_DumpWholeClientMap_f':<br />
src/client/battlescape/cl_battlescape.c:271: warning: implicit declaration of function 'RT_DumpWholeMap'<br />
src/client/battlescape/cl_battlescape.c: In function 'Grid_DumpClientRoutes_f':<br />
src/client/battlescape/cl_battlescape.c:284: warning: implicit declaration of function 'RT_WriteCSVFiles'<br />
<br />
* [UFO] src/server/sv_ccmds.c<br />
src/server/sv_ccmds.c: In function 'Grid_DumpWholeServerMap_f':<br />
src/server/sv_ccmds.c:583: warning: implicit declaration of function 'RT_DumpWholeMap'<br />
src/server/sv_ccmds.c: In function 'Grid_DumpServerRoutes_f':<br />
src/server/sv_ccmds.c:596: warning: implicit declaration of function 'RT_WriteCSVFiles'<br />
<br />
* [UFO] src/ports/unix/unix_main.c<br />
* [UFO] ... linking -L/usr/local/lib -pthread (-L/usr/local/lib -lvorbis -lm -logg -lm -lz -L/usr/local/lib -lcurl -rpath=/usr/lib:/usr/local/lib -lssl -lcrypto -lz -ljpeg -L/usr/local/lib -lpng -lz -lm -Wl,-rpath,/usr/local/lib -pthread -L/usr/local/lib -lSDL -Wl,-rpath,/usr/local/lib -pthread -L/usr/local/lib -lSDL_image -lSDL -Wl,-rpath,/usr/local/lib -pthread -L/usr/local/lib -lSDL_mixer -lSDL -lSDL_ttf -logg -lxvidcore -L/usr/local/lib -ltheora -logg -lintl -lxvidcore -lGL -Wl,-rpath,/usr/local/lib -pthread -L/usr/local/lib -lSDL )<br />
debug-freebsd-x86_64/client/ports/unix/unix_main.o(.text+0xb48): In function `Sys_Backtrace':<br />
src/ports/unix/unix_main.c:380: undefined reference to `backtrace'<br />
debug-freebsd-x86_64/client/ports/unix/unix_main.o(.text+0xb5f):src/ports/unix/unix_main.c:381: undefined reference to `backtrace_symbols_fd'<br />
gmake: *** [ufo] Error 1<br />
</pre><br />
<br />
=== possible upstream changes ===<br />
* {{open}} fix in configure.ac upstream: sysctl -n hw.machine_arch -> amd64 -> x86_64<br />
<pre><br />
#Makefile fix<br />
.if ${ARCH} == "amd64"<br />
CONFIGURE_TARGET?=x86_64-portbld-freebsd${OSREL}<br />
.endif<br />
</pre></div>
Nukama