- Update to version 1.0.3

- Prevent ld(1) from picking up wrong -lstdc++ when using non-default
  compiler (e.g. GCC from ports) and thus unbreak the build [1]
- Mute chmod(1) command
- Adjust Makefile header and touch couple of comments while here

PR:	ports/150442 [1]
This commit is contained in:
Alexey Dokuchaev 2010-09-22 10:37:51 +00:00
parent 50ae66069b
commit cb0f480dec
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=261624
2 changed files with 10 additions and 9 deletions

View file

@ -1,4 +1,4 @@
# New ports collection makefile for: Frogatto
# New ports collection makefile for: Frogatto & Friends
# Date created: 14 Jul 2010
# Whom: Alexey Dokuchaev <danfe@FreeBSD.org>
#
@ -6,8 +6,7 @@
#
PORTNAME= frogatto
PORTVERSION= 1.0
PORTREVISION= 2
PORTVERSION= 1.0.3
CATEGORIES= games
MASTER_SITES= http://www.frogatto.com/files/
@ -31,8 +30,9 @@ post-patch:
@${REINPLACE_CMD} -E -e 's,(ccache )?g\+\+,$$(CXX) $$(CXXFLAGS),' \
-e 's,-O2,, ; s,-g,, ; s,/usr/X11R6,${LOCALBASE},' \
-e 's,-mt,,g ; /server/s,`.*mixer,${PTHREAD_LIBS},' \
-e 's,-L/usr/lib,, ; s,-L/sw/lib,,' \
-e '/server/s,-lX11,,' ${WRKSRC}/Makefile
# Point to the right location where look for the resources on FreeBSD
# Point to the right location where to look for resources on FreeBSD
@${REINPLACE_CMD} -e 's,HAVE_CONFIG_H,__FreeBSD__,' \
-e 's,DATADIR,"${DATADIR}",' ${WRKSRC}/src/filesystem.cpp
@${REINPLACE_CMD} -E 's,(music|sounds)/,${DATADIR}/&,' \
@ -43,8 +43,9 @@ do-install:
${INSTALL_PROGRAM} ${WRKSRC}/server ${PREFIX}/bin/${PORTNAME}-server
cd ${WRKSRC} && ${COPYTREE_SHARE} "data images music sounds" \
${DATADIR}
# Fix permissions on DATADIR after COPYTREE_SHARE (cpio(1) defaults to 700)
${CHMOD} 755 ${DATADIR}
# Fix permissions on DATADIR after COPYTREE_SHARE (cpio(1) defaults to 700
# if target directory (${DATADIR}) does not exist)
@${CHMOD} 755 ${DATADIR}
# Dynamically generate part of the PLIST for game resources (lots of them)
@${FIND} ${DATADIR} -not -type d | \
${SED} 's,^${PREFIX}/,,' | ${SORT} >> ${TMPPLIST}

View file

@ -1,3 +1,3 @@
MD5 (frogatto-1.0.tar.bz2) = 13035e6bf1adbf15b38b9b655d67fcb9
SHA256 (frogatto-1.0.tar.bz2) = 7a3dab049df8d4cd38a4fa0ab98ea001d5bae1d373d134fbd4e773132fb68c59
SIZE (frogatto-1.0.tar.bz2) = 136213969
MD5 (frogatto-1.0.3.tar.bz2) = 1e9ffe729c78c88d1e29147694299531
SHA256 (frogatto-1.0.3.tar.bz2) = 0f21012fa8c8980de7c030c7de6302671d0fa1036f0fba11cbcfebaa3ceaa269
SIZE (frogatto-1.0.3.tar.bz2) = 100909023