diff options
author | Beech Rintoul <beech@FreeBSD.org> | 2013-03-06 00:28:55 +0000 |
---|---|---|
committer | Beech Rintoul <beech@FreeBSD.org> | 2013-03-06 00:28:55 +0000 |
commit | b6f130f07932567bc83486cc014c86bbd437cbff (patch) | |
tree | d77449dfab44f6ce221fce7c2c2bc6731d222b1e /graphics/evolvotron | |
parent | 0a75a27f0ff74362ef240021dc0da7090b928969 (diff) | |
download | ports-b6f130f07932567bc83486cc014c86bbd437cbff.tar.gz ports-b6f130f07932567bc83486cc014c86bbd437cbff.zip |
- add documenttion, icons, pkg-plist
- Pass maintainership to submitter
PR: ports/176665
Submitted by: nemysis <nemysis@gmx.ch>
Notes
Notes:
svn path=/head/; revision=313486
Diffstat (limited to 'graphics/evolvotron')
-rw-r--r-- | graphics/evolvotron/Makefile | 57 | ||||
-rw-r--r-- | graphics/evolvotron/distinfo | 2 | ||||
-rw-r--r-- | graphics/evolvotron/pkg-plist | 32 |
3 files changed, 75 insertions, 16 deletions
diff --git a/graphics/evolvotron/Makefile b/graphics/evolvotron/Makefile index a211aa573a10..b4dd8a9c4b58 100644 --- a/graphics/evolvotron/Makefile +++ b/graphics/evolvotron/Makefile @@ -3,10 +3,14 @@ PORTNAME= evolvotron PORTVERSION= 0.6.3 +PORTREVISION= 1 CATEGORIES= graphics -MASTER_SITES= SF +MASTER_SITES= SF \ + SF/nemysisfreebsdp/:icons +DISTFILES= ${PORTNAME}-${DISTVERSION}${EXTRACT_SUFX} \ + ${PORTNAME}_icons${EXTRACT_SUFX}:icons -MAINTAINER= ports@FreeBSD.org +MAINTAINER= nemysis@gmx.ch COMMENT= Generative software that evolves images/textures/patterns LICENSE= GPLv2 @@ -24,14 +28,24 @@ CONFIGURE_ENV= QTDIR="${QT_PREFIX}" MAKE_JOBS_UNSAFE= yes MAN1= evolvotron.1 evolvotron_mutate.1 evolvotron_render.1 -PORTDOCS= * -PLIST_FILES= bin/evolvotron bin/evolvotron_mutate bin/evolvotron_render \ - lib/libevolvotron.a lib/libfunction.a -DESKTOP_ENTRIES="Evolvotron" "Interactive image generator" "" "${PORTNAME}" \ - "Graphics;2DGraphics;" true +PORTDOCS= NEWS README TODO USAGE evolvotron.html + +INSTALLS_ICONS= yes +ICON_SIZES= 32x32 48x48 64x64 72x72 96x96 128x128 + +DESKTOP_ENTRIES="Evolvotron" "Interactive image generator" \ + "${PREFIX}/share/pixmaps/${PORTNAME}.png" \ + "${PORTNAME}" "Graphics;2DGraphics;" true .include <bsd.port.pre.mk> +.include <bsd.port.options.mk> + +.if ${PORT_OPTIONS:MDOCS} +PLIST_SUB+= PORTDOCS="" +.else +PLIST_SUB+= PORTDOCS="@comment " +.endif .if ${CXX:T:M*clang*} || ${OSVERSION} >= 1000024 .for i in libevolvotron libfunction @@ -43,27 +57,38 @@ QMAKEFLAGS+= CONFIG+=precompile_header .endif post-patch: - @${REINPLACE_CMD} -e \ - 's|/bin/bash|/bin/sh|' ${WRKSRC}/configure + @${REINPLACE_CMD} \ + -e 's|/bin/bash|/bin/sh|' \ + ${WRKSRC}/configure ${WRKSRC}/VERSION @${REINPLACE_CMD} -e \ '/^CONFIG/s|precompile_header|| ; \ /DEFINES/s|_LINUX|_BSD|' ${WRKSRC}/common.pro post-configure: - @(cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${QMAKE} ${QMAKEFLAGS} \ - VERSION_NUMBER="${PORTVERSION}" main.pro) + @cd ${WRKSRC} && ${SETENV} ${CONFIGURE_ENV} \ + ${QMAKE} ${QMAKEFLAGS} PREFIX=${PREFIX} \ + VERSION_NUMBER="${PORTVERSION}" main.pro do-install: .for i in evolvotron evolvotron_mutate evolvotron_render - (cd ${WRKSRC}/${i} && ${INSTALL_PROGRAM} ${i} ${PREFIX}/bin) - (cd ${WRKSRC}/man/man1 && ${INSTALL_MAN} ${i}.1 ${MANPREFIX}/man/man1) + ${INSTALL_PROGRAM} ${WRKSRC}/${i}/${i} ${PREFIX}/bin/ .endfor -.for i in libevolvotron libfunction - (cd ${WRKSRC}/${i} && ${INSTALL_DATA} ${i}.a ${PREFIX}/lib) +.for lib in libevolvotron libfunction + ${INSTALL_DATA} ${WRKSRC}/${lib}/${lib}.a ${PREFIX}/lib/ .endfor + +post-install: +.for s in ${ICON_SIZES} + ${MKDIR} ${PREFIX}/share/icons/hicolor/${s}/apps + ${INSTALL_DATA} ${WRKDIR}/${PORTNAME}_${s}.png \ + ${PREFIX}/share/icons/hicolor/${s}/apps/${PORTNAME}.png +.endfor + ${LN} -sf ${PREFIX}/share/icons/hicolor/48x48/apps/${PORTNAME}.png ${PREFIX}/share/pixmaps/ + (cd ${WRKSRC}/man/man1 && ${INSTALL_MAN} ${MAN1} ${MAN1PREFIX}/man/man1/) + .if ${PORT_OPTIONS:MDOCS} @${MKDIR} ${DOCSDIR} - (cd ${WRKSRC} && ${INSTALL_DATA} evolvotron.html ${DOCSDIR}) + ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR} .endif .include <bsd.port.post.mk> diff --git a/graphics/evolvotron/distinfo b/graphics/evolvotron/distinfo index fc685edf8592..0f8e803762dd 100644 --- a/graphics/evolvotron/distinfo +++ b/graphics/evolvotron/distinfo @@ -1,2 +1,4 @@ SHA256 (evolvotron-0.6.3.tar.gz) = d1735fe84d90be004888017068f49fa00c97378fd7cca11a90a4a889ef681393 SIZE (evolvotron-0.6.3.tar.gz) = 182357 +SHA256 (evolvotron_icons.tar.gz) = f7d98eab15bf39d6de66a548457223daaffab4e5fe4aa444c926343786400d85 +SIZE (evolvotron_icons.tar.gz) = 93696 diff --git a/graphics/evolvotron/pkg-plist b/graphics/evolvotron/pkg-plist new file mode 100644 index 000000000000..a360cfb01510 --- /dev/null +++ b/graphics/evolvotron/pkg-plist @@ -0,0 +1,32 @@ +bin/evolvotron +bin/evolvotron_mutate +bin/evolvotron_render +lib/libevolvotron.a +lib/libfunction.a +%%PORTDOCS%%%%DOCSDIR%%/NEWS +%%PORTDOCS%%%%DOCSDIR%%/README +%%PORTDOCS%%%%DOCSDIR%%/TODO +%%PORTDOCS%%%%DOCSDIR%%/USAGE +%%PORTDOCS%%%%DOCSDIR%%/evolvotron.html +share/icons/hicolor/128x128/apps/evolvotron.png +share/icons/hicolor/32x32/apps/evolvotron.png +share/icons/hicolor/48x48/apps/evolvotron.png +share/icons/hicolor/64x64/apps/evolvotron.png +share/icons/hicolor/72x72/apps/evolvotron.png +share/icons/hicolor/96x96/apps/evolvotron.png +share/pixmaps/evolvotron.png +@dirrmtry share/icons/hicolor/96x96/apps +@dirrmtry share/icons/hicolor/96x96 +@dirrmtry share/icons/hicolor/72x72/apps +@dirrmtry share/icons/hicolor/72x72 +@dirrmtry share/icons/hicolor/64x64/apps +@dirrmtry share/icons/hicolor/64x64 +@dirrmtry share/icons/hicolor/48x48/apps +@dirrmtry share/icons/hicolor/48x48 +@dirrmtry share/icons/hicolor/32x32/apps +@dirrmtry share/icons/hicolor/32x32 +@dirrmtry share/icons/hicolor/128x128/apps +@dirrmtry share/icons/hicolor/128x128 +@dirrmtry share/icons/hicolor +@dirrmtry share/icons +%%PORTDOCS%%@dirrm %%DOCSDIR%% |