1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-23 09:10:43 +00:00
freebsd-ports/games/megamario/Makefile
Tijl Coosemans 60945f0277 Replace USES=libtool:oldver with USES=libtool or USES=libtool:keepla in
the 32 ports that still use it.  Bump PORTREVISION on their dependent
ports except the ones that depend on these:

audio/libogg
audio/libvorbis
devel/pcre
ftp/curl
graphics/jpeg
graphics/libart_lgpl
graphics/tiff
textproc/expat2
textproc/libxslt

In these cases the same trick as in the recent gettext update is used.
The ports install a symlink with the old library version.  When enough
of their dependent ports have had regular updates the remaining ones can
get a PORTREVISION bump and the links can be removed.

Also remove the devel/pcre dependency from USE_GNOME=glib20.  It causes
over 2200 packages to depend on devel/pcre while less than 200 actually
link with it.  The glib20 package still depends on devel/pcre so this
should not make a difference for ports with USE_GNOME=glib20.  Also,
libdata/pkgconfig/glib-2.0.pc lists pcre as a private library so
USE_GNOME=glib20 should not propagate it.

PR:		195724
Exp-run by:	antoine
Approved by:	portmgr (antoine)
2014-12-08 16:48:38 +00:00

71 lines
2.0 KiB
Makefile

# Created by: Rusmir Dusko <nemysis@FreeBSD.org>
# $FreeBSD$
PORTNAME= megamario
PORTVERSION= 1.7
PORTREVISION= 3
CATEGORIES= games
MASTER_SITES= SF/mmario/Mega%20Mario%20Full%20Game/Mega%20Mario%20v${PORTVERSION}%20%28Full%20Game%2C%20high%20Quality%20music%29/
DISTNAME= MegaMario_v${PORTVERSION}_full
MAINTAINER= ports@FreeBSD.org
COMMENT= Super Mario Bros 1 clone
LICENSE= LGPL21
LICENSE_FILE= ${WRKSRC}/licence.txt
WRKSRC= ${WRKDIR}/${DISTNAME}
EXTRACT_AFTER_ARGS= -d ${WRKSRC}
USES= dos2unix gmake zip
DOS2UNIX_GLOB= *.cpp *.h *.ini Makefile* *.txt *.desktop
USE_SDL= sdl image mixer ttf
USE_GL= glu
ALL_TARGET= ${PORTNAME}
pre-extract:
@${MKDIR} ${WRKDIR}/${DISTNAME}
PORTDOCS= *
DOCSRCDIR1= ${WRKSRC}
DOC_FILES1= CONTROLS.txt fixes_v1.7.txt readme.txt
DOCSRCDIR2= ${WRKSRC}/help
DOCSDIR2= ${DOCSDIR}/help
DOC_FILES2= *
DOCSRCDIR3= ${WRKSRC}/screens
DOCSDIR3= ${DOCSDIR}/screens
DOC_FILES3= *
OPTIONS_DEFINE= DOCS
post-patch:
@${REINPLACE_CMD} -e 's|/usr/share/pixmaps/megamario.png|${PORTNAME}|; \
s|Name=megamario|Name=Mega Mario|' \
${WRKSRC}/${PORTNAME}.desktop
@${REINPLACE_CMD} -e 's|slidebar.PNG|slidebar.png|' \
${WRKSRC}/data/levels/Edit2/main ${WRKSRC}/data/levels/3_2/main
@(cd ${WRKSRC}/help && ${MV} editor_R*.PNG editor_Roehren.png)
@for i in `${FIND} ${WRKSRC} -name \*.JPG -or -name \*.PNG`; do \
${MV} $$i `echo $$i | ${SED} -e 's/PNG/png/;s/JPG/jpg/'`; done
post-install:
${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
@(cd ${WRKSRC} && ${COPYTREE_SHARE} mp3music ${STAGEDIR}${DATADIR})
${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.png \
${STAGEDIR}${PREFIX}/share/pixmaps/
${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.desktop ${STAGEDIR}${DESKTOPDIR}
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${DOC_FILES1:S|^|${DOCSRCDIR1}/|} ${STAGEDIR}${DOCSDIR}
@${MKDIR} ${STAGEDIR}${DOCSDIR2}
${INSTALL_DATA} ${DOC_FILES2:S|^|${DOCSRCDIR2}/|} ${STAGEDIR}${DOCSDIR2}
@${MKDIR} ${STAGEDIR}${DOCSDIR3}
${INSTALL_DATA} ${DOC_FILES3:S|^|${DOCSRCDIR3}/|} ${STAGEDIR}${DOCSDIR3}
.include <bsd.port.mk>