Changeset View
Changeset View
Standalone View
Standalone View
fracplanet/Makefile
Context not available. | |||||
# $FreeBSD$ | # $FreeBSD$ | ||||
PORTNAME= fracplanet | PORTNAME= fracplanet | ||||
PORTVERSION= 0.4.0 | PORTVERSION= 0.5.1 | ||||
PORTREVISION= 16 | |||||
CATEGORIES= graphics | CATEGORIES= graphics | ||||
MASTER_SITES= SF \ | MASTER_SITES= SF \ | ||||
SF/nemysisfreebsdp/:icons | SF/nemysisfreebsdp/:icons | ||||
mat: It would be better to:
1) don't rename the package for the default flavor, so the Qt4 should… | |||||
Context not available. | |||||
BROKEN_powerpc64= fails to link: obj/fracplanet.o:(.text+0x250): undefined reference to boost::program_options::options_description::options_description | BROKEN_powerpc64= fails to link: obj/fracplanet.o:(.text+0x250): undefined reference to boost::program_options::options_description::options_description | ||||
BUILD_DEPENDS= xsltproc:textproc/libxslt | |||||
LIB_DEPENDS= libboost_program_options.so:devel/boost-libs | LIB_DEPENDS= libboost_program_options.so:devel/boost-libs | ||||
WRKSRC= ${WRKDIR}/${PORTNAME} | FLAVORS= qt4 qt5 | ||||
FLAVOR?= ${FLAVORS:[1]} | |||||
qt5_PKGNAMESUFFIX= -${FLAVOR} | |||||
matUnsubmitted Not Done Inline ActionsI would write qt5_PKGNAMESUFFIX=-qt5 so that it is simpler to read and faster to parse. mat: I would write `qt5_PKGNAMESUFFIX=-qt5` so that it is simpler to read and faster to parse. | |||||
USES= gmake qmake:no_env qt:4 | USES= qmake:outsource | ||||
USE_GL= glu | USE_GL= gl glu | ||||
USE_QT= corelib moc_build qmake_build gui opengl | QMAKE_ARGS= VERSION_NUMBER=${PORTVERSION} | ||||
HAS_CONFIGURE= yes | |||||
CONFIGURE_ENV= QTDIR="${PREFIX}" | |||||
CONFIGURE_ARGS= -spec ${QMAKESPEC} | |||||
CXXFLAGS+= -include ${WRKSRC}/precompiled.h | .if ${FLAVOR} == qt4 | ||||
USES+= qt:4 | |||||
PORTDOCS= * | USE_QT= corelib gui moc_build opengl | ||||
.else | |||||
USES+= qt:5 | |||||
USE_QT= buildtools_build core gui opengl | |||||
.endif | |||||
DESKTOP_ENTRIES= "Fracplanet" \ | |||||
"" \ | |||||
"${PORTNAME}" \ | |||||
"${PORTNAME}" \ | |||||
"Graphics;" \ | |||||
"" | |||||
INSTALLS_ICONS= yes | INSTALLS_ICONS= yes | ||||
ICON_SIZES= 32x32 48x48 64x64 72x72 96x96 | PORTDOCS= * | ||||
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION} | |||||
DESKTOP_ENTRIES="Fracplanet" "" "${PORTNAME}" \ | |||||
"${PORTNAME}" "Graphics;" "" | |||||
OPTIONS_DEFINE= DOXYGEN DOCS | |||||
.include <bsd.port.pre.mk> | OPTIONS_DEFINE= DOXYGEN DOCS | ||||
DOXYGEN_BUILD_DEPENDS= doxygen:devel/doxygen | |||||
DOXYGEN_IMPLIES= DOCS | |||||
.if ${PORT_OPTIONS:MDOCS} && ${PORT_OPTIONS:MDOXYGEN} | DOCFILES= BUGS NEWS README THANKS fracplanet.css fracplanet.htm | ||||
BUILD_DEPENDS+= doxygen:devel/doxygen | ICON_SIZES= 32x32 48x48 64x64 72x72 96x96 | ||||
Done Inline ActionsThis does not seem to be used anywhere. mat: This does not seem to be used anywhere. | |||||
.endif | |||||
Done Inline ActionsThis should go just after the USES block, like line 29 or something, see https://www.freebsd.org/doc/en/books/porters-handbook/porting-order-flavors.html mat: This should go just after the USES block, like line 29 or something, see https://www.freebsd. | |||||
post-patch: | post-patch: | ||||
.for f in BUILD VERSION configure | @${REINPLACE_CMD} -Ee 's|(OBJECTS_DIR)|#\1|' ${WRKSRC}/fracplanet.pro | ||||
@${REINPLACE_CMD} -e 's|/bin/bash|/bin/sh|g' \ | |||||
${WRKSRC}/${f} | post-build-DOXYGEN-on: | ||||
.endfor | |||||
@${REINPLACE_CMD} -e 's|qmake-qt4|${QMAKE} ${QMAKE_ARGS}|' \ | |||||
${WRKSRC}/configure | |||||
@${REINPLACE_CMD} -e \ | |||||
's|-lboost_program_options|-lboost_program_options -lGLU|' \ | |||||
${WRKSRC}/fracplanet.pro | |||||
.if ${PORT_OPTIONS:MDOCS} && ${PORT_OPTIONS:MDOXYGEN} | |||||
post-build: | |||||
cd ${WRKSRC} && doxygen . | cd ${WRKSRC} && doxygen . | ||||
.endif | |||||
do-install: | do-install: | ||||
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/ | ${INSTALL_PROGRAM} ${INSTALL_WRKSRC}/${PORTNAME} \ | ||||
${STAGEDIR}${PREFIX}/bin/ | |||||
${INSTALL_MAN} ${WRKSRC}/man/man1/${PORTNAME}.1 \ | ${INSTALL_MAN} ${WRKSRC}/man/man1/${PORTNAME}.1 \ | ||||
${STAGEDIR}${MAN1PREFIX}/man/man1/ | ${STAGEDIR}${MAN1PREFIX}/man/man1/ | ||||
Context not available. | |||||
${LN} -sf ${PREFIX}/share/icons/hicolor/48x48/apps/${PORTNAME}.png \ | ${LN} -sf ${PREFIX}/share/icons/hicolor/48x48/apps/${PORTNAME}.png \ | ||||
${STAGEDIR}${PREFIX}/share/pixmaps | ${STAGEDIR}${PREFIX}/share/pixmaps | ||||
.if ${PORT_OPTIONS:MDOCS} | post-install-DOCS-on: | ||||
@${MKDIR} ${STAGEDIR}${DOCSDIR} | @${MKDIR} ${STAGEDIR}${DOCSDIR} | ||||
cd ${WRKSRC} && ${INSTALL_DATA} BUGS NEWS README THANKS \ | (cd ${WRKSRC} && ${INSTALL_DATA} ${DOCFILES} ${STAGEDIR}${DOCSDIR}) | ||||
fracplanet.css fracplanet.htm ${STAGEDIR}${DOCSDIR} | |||||
. if ${PORT_OPTIONS:MDOXYGEN} | post-install-DOXYGEN-on: | ||||
@(cd ${WRKSRC} && ${COPYTREE_SHARE} "html latex" ${STAGEDIR}${DOCSDIR}) | @${MKDIR} ${STAGEDIR}${DOCSDIR} | ||||
. endif | (cd ${WRKSRC} && ${COPYTREE_SHARE} "html latex" ${STAGEDIR}${DOCSDIR}) | ||||
.endif | |||||
.include <bsd.port.post.mk> | .include <bsd.port.mk> | ||||
Context not available. |
It would be better to: