diff options
author | Rusmir Dusko <nemysis@FreeBSD.org> | 2014-03-26 12:16:59 +0000 |
---|---|---|
committer | Rusmir Dusko <nemysis@FreeBSD.org> | 2014-03-26 12:16:59 +0000 |
commit | a1bcf95cef630ad011740d0f59f1b4eb5e23d052 (patch) | |
tree | f5a0e9ddca0bafe541c8d5199dc87984d4f44c24 /graphics/gnofract4d/Makefile | |
parent | d81c43708539d1ff24203ddde8d7ad9c3d509bae (diff) |
- Update to 3.14.1
- Take maintainership
- Change license BSD to BSD3CLAUSE
- Use the new format for LIB_DEPENDS
- USES pathfix instead of USE_GNOME gnomehack
- Add USES desktop-file-utils pkgconfig shared-mime-info
- Use PYDISTUTILS_AUTOPLIST=yes and PLIST_FILES instead of pkg-plist
- Add USE_GCC=yes and add REINPLACE, fix bad gcc usage
- Support STAGEDIR
- Comply with OptionsNG
- Simplify DOCS installation handling, install conditional and add Option
- Remove obsolete REINPLACE, changed by upstream
- Strip library
- Add manual page
- Change pkg-descr
PR: ports/177352
Submitted by: nemysis (self)
Approved by: maintainer
Notes
Notes:
svn path=/head/; revision=349244
Diffstat (limited to 'graphics/gnofract4d/Makefile')
-rw-r--r-- | graphics/gnofract4d/Makefile | 79 |
1 files changed, 35 insertions, 44 deletions
diff --git a/graphics/gnofract4d/Makefile b/graphics/gnofract4d/Makefile index f157d4c6d25c..3b8dafc1e92a 100644 --- a/graphics/gnofract4d/Makefile +++ b/graphics/gnofract4d/Makefile @@ -2,66 +2,57 @@ # $FreeBSD$ PORTNAME= gnofract4d -PORTVERSION= 3.14 -PORTREVISION= 1 +PORTVERSION= 3.14.1 CATEGORIES= graphics gnome MASTER_SITES= SF -MAINTAINER= sylvio@FreeBSD.org +MAINTAINER= nemysis@FreeBSD.org COMMENT= Weird GNOME fractal generator -LIB_DEPENDS= jpeg.11:${PORTSDIR}/graphics/jpeg \ - png15:${PORTSDIR}/graphics/png +LICENSE= BSD3CLAUSE -LICENSE= BSD +LIB_DEPENDS= libjpeg.so:${PORTSDIR}/graphics/jpeg \ + libpng15.so:${PORTSDIR}/graphics/png -USE_GNOME= gnomehack gnomeprefix intlhack libgnomeui lthack \ - pygtk2 +USES= desktop-file-utils pathfix pkgconfig shared-mime-info +USE_GNOME= gnomeprefix intlhack libgnomeui lthack pygtk2 USE_PYTHON= yes -USE_PYDISTUTILS=yes - -CFLAGS+= -I${LOCALBASE}/include -PORTDOCS= README COPYING +USE_PYDISTUTILS= yes +PYDISTUTILS_AUTOPLIST= yes INSTALLS_EGGINFO= yes PYDISTUTILS_EGGINFODIR= ${PYTHON_SITELIBDIR} +USE_GCC= yes -NO_STAGE= yes -.include <bsd.port.pre.mk> +CFLAGS+= -I${LOCALBASE}/include -post-patch: - # where to install libraries - @${REINPLACE_CMD} \ - -e 's,\(^install_lib =\).*,\1${PREFIX}/lib/${PORTNAME},' \ - ${WRKSRC}/setup.cfg +PLIST_FILES= man/man1/gnofract4d.1.gz - # contain in DATADIR - # ('share/foobar/gnofract4d' -> # 'share/gnofract4d/foobar') - @${FIND} ${WRKSRC} -name '*.py' -exec \ - ${REINPLACE_CMD} \ - -e "s,\([\"']\)share/\([^/]*\)/gnofract4d\1,\1${DATADIR:C/${PREFIX}\///}/\2\1," {} \; +PORTDOCS= README +OPTIONS_DEFINE= DOCS - # libraries again - @${REINPLACE_CMD} -e "s,%%PREFIX%%,${PREFIX}," ${WRKSRC}/gnofract4d +.include <bsd.port.options.mk> - # fix NOPORTDOCS - @${REINPLACE_CMD} -e '249,251d' ${WRKSRC}/setup.py +post-patch: + @${REINPLACE_CMD} -e 's|/usr/include/|${LOCALBASE}/include/|; \ + /# doc files/,+2d' \ + ${WRKSRC}/setup.py + @${REINPLACE_CMD} -e 's|"CC"|"${CC}"|; s|"gcc"|"${CC}"|' \ + ${WRKSRC}/setup.py \ + ${WRKSRC}/fract4d/test_fractconfig.py \ + ${WRKSRC}/fract4d/fc.py + @${REINPLACE_CMD} -e 's|gcc|${CC}|' \ + ${WRKSRC}/fract4d/test_codegen.py \ + ${WRKSRC}/fract4d/fractconfig.py - # fixup library detection - @${REINPLACE_CMD} -e "s/libpng/libpng15/" ${WRKSRC}/setup.py - @${REINPLACE_CMD} \ - -e "s,/usr/include/jpeglib.h,${LOCALBASE}/include/jpeglib.h," \ - ${WRKSRC}/setup.py +post-install: +.for l in fract4d_stdlib fract4dc + ${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/fract4d/${l}.so +.endfor - # png14 - @${REINPLACE_CMD} -e "s/png_infopp_NULL/NULL/g" \ - -e "s/png_bytepp_NULL/NULL/g" \ - -e "s/int_p_NULL/NULL/g" \ - ${WRKSRC}/fract4d/c/imageIO.cpp + ${INSTALL_MAN} ${WRKSRC}/doc/${PORTNAME}.1 \ + ${STAGEDIR}${MAN1PREFIX}/man/man1/ -post-install: -.if !defined(NOPORTDOCS) - @${MKDIR} ${DOCSDIR} - @${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${DOCSDIR}/ -.endif + @${MKDIR} ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR} -.include <bsd.port.post.mk> +.include <bsd.port.mk> |