mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-03 01:23:49 +00:00
60945f0277
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)
63 lines
1.8 KiB
Makefile
63 lines
1.8 KiB
Makefile
# Created by: Dmitry Marakasov <amdmi3@amdmi3.ru>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= quantumminigolf
|
|
PORTVERSION= 1.1.1
|
|
PORTREVISION= 6
|
|
CATEGORIES= games
|
|
MASTER_SITES= SF
|
|
DISTNAME= ${PORTNAME}-${PORTVERSION}.src
|
|
|
|
MAINTAINER= amdmi3@FreeBSD.org
|
|
COMMENT= Computer game visualizing quantum mechanics
|
|
|
|
LIB_DEPENDS= libfftw3f.so:${PORTSDIR}/math/fftw3-float \
|
|
libfftw3.so:${PORTSDIR}/math/fftw3
|
|
|
|
USES= gmake compiler:env
|
|
USE_SDL= sdl ttf
|
|
|
|
PLIST_FILES= bin/${PORTNAME}
|
|
PORTDOCS= README THANKS
|
|
PORTDATA= *
|
|
|
|
DESKTOP_ENTRIES="Quantum Minigolf" \
|
|
"A game of minigolf where the ball obeys the laws of quantum mechanics" \
|
|
"${DATADIR}/gfx/icon.bmp" \
|
|
"quantumminigolf" \
|
|
"Game;ArcadeGame;" \
|
|
false
|
|
|
|
OPTIONS_DEFINE= OPTIMIZED_CFLAGS DOCS
|
|
OPTIONS_DEFAULT=OPTIMIZED_CFLAGS
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if ${PORT_OPTIONS:MOPTIMIZED_CFLAGS}
|
|
CXXFLAGS+= -O3 -fomit-frame-pointer -finline-functions -funroll-all-loops
|
|
. if ${ARCH} == "i386" && ${COMPILER_TYPE} != "clang"
|
|
CXXFLAGS+= -malign-double
|
|
. endif
|
|
.endif
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e 's|gfx/|${DATADIR}/&|' ${WRKSRC}/Renderer.cpp
|
|
@${REINPLACE_CMD} -e 's|fonts/|${DATADIR}/&|' ${WRKSRC}/Renderer.cpp
|
|
@${REINPLACE_CMD} -e 's|tracks/|${DATADIR}/&|' ${WRKSRC}/TrackSelector.cpp
|
|
@${REINPLACE_CMD} -e 's|malloc.h|stdlib.h|' ${WRKSRC}/QuantumSimulator.h
|
|
|
|
do-install:
|
|
${INSTALL_PROGRAM} ${WRKSRC}/quantumminigolf ${STAGEDIR}${PREFIX}/bin
|
|
${MKDIR} ${STAGEDIR}${DATADIR}/gfx ${STAGEDIR}${DATADIR}/fonts \
|
|
${STAGEDIR}${DATADIR}/tracks
|
|
${INSTALL_DATA} ${WRKSRC}/gfx/*.bmp ${STAGEDIR}${DATADIR}/gfx
|
|
${INSTALL_DATA} ${WRKSRC}/fonts/*.ttf ${STAGEDIR}${DATADIR}/fonts
|
|
${INSTALL_DATA} ${WRKSRC}/tracks/*.bmp ${WRKSRC}/tracks/*.cfg \
|
|
${STAGEDIR}${DATADIR}/tracks
|
|
${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
.for f in ${PORTDOCS}
|
|
${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${DOCSDIR}
|
|
.endfor
|
|
|
|
.include <bsd.port.post.mk>
|