Changeset View
Changeset View
Standalone View
Standalone View
cad/brickutils/Makefile
Show All 34 Lines | |||||
OPTIONS_DEFINE= DOCS | OPTIONS_DEFINE= DOCS | ||||
SUB_FILES= ${PORTNAME} \ | SUB_FILES= ${PORTNAME} \ | ||||
pkg-message | pkg-message | ||||
INSTALLS_ICONS= yes | INSTALLS_ICONS= yes | ||||
ICON_SIZES= 32x32 48x48 64x64 72x72 96x96 128x128 | ICON_SIZES= 32x32 48x48 64x64 72x72 96x96 128x128 | ||||
.include <bsd.port.options.mk> | DOCS_DISTFILES= ${PORTNAME}-manual-it.pdf:docs \ | ||||
.if ${PORT_OPTIONS:MDOCS} | |||||
DISTFILES+= ${PORTNAME}-manual-it.pdf:docs \ | |||||
${PORTNAME}-manual.pdf:docs | ${PORTNAME}-manual.pdf:docs | ||||
.endif | |||||
post-patch: | post-patch: | ||||
@${REINPLACE_CMD} -e 's|/usr/share/|${PREFIX}|' \ | @${REINPLACE_CMD} -e 's|/usr/share/|${PREFIX}|' \ | ||||
${WRKSRC}/pyBrickUtils.py | ${WRKSRC}/pyBrickUtils.py | ||||
do-build: | do-build: | ||||
@${PYTHON_CMD} -m compileall ${WRKSRC} | @${PYTHON_CMD} -m compileall ${WRKSRC} | ||||
@${PYTHON_CMD} -O -m compileall ${WRKSRC} | @${PYTHON_CMD} -O -m compileall ${WRKSRC} | ||||
Show All 14 Lines | |||||
.for s in ${ICON_SIZES} | .for s in ${ICON_SIZES} | ||||
@${MKDIR} ${STAGEDIR}${PREFIX}/share/icons/hicolor/${s}/apps/ | @${MKDIR} ${STAGEDIR}${PREFIX}/share/icons/hicolor/${s}/apps/ | ||||
${INSTALL_DATA} ${WRKDIR}/${PORTNAME}_${s}.png \ | ${INSTALL_DATA} ${WRKDIR}/${PORTNAME}_${s}.png \ | ||||
${STAGEDIR}${PREFIX}/share/icons/hicolor/${s}/apps/${PORTNAME}.png | ${STAGEDIR}${PREFIX}/share/icons/hicolor/${s}/apps/${PORTNAME}.png | ||||
.endfor | .endfor | ||||
${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} | do-install-DOCS-on: | ||||
@${MKDIR} ${STAGEDIR}${DOCSDIR} | @${MKDIR} ${STAGEDIR}${DOCSDIR} | ||||
${INSTALL_DATA} ${DOC_FILES1:S|^|${DOCSRCDIR1}/|} ${STAGEDIR}${DOCSDIR} | ${INSTALL_DATA} ${DOC_FILES1:S|^|${DOCSRCDIR1}/|} ${STAGEDIR}${DOCSDIR} | ||||
@(cd ${_DISTDIR} && ${CP} -a *.pdf ${STAGEDIR}${DOCSDIR}) | @(cd ${_DISTDIR} && ${CP} -a *.pdf ${STAGEDIR}${DOCSDIR}) | ||||
.endif | |||||
.include <bsd.port.mk> | .include <bsd.port.mk> |