diff -ruN --exclude=CVS /usr/ports/graphics/mhgui/Makefile ./Makefile --- /usr/ports/graphics/mhgui/Makefile 2013-01-14 17:57:12.000000000 +0100 +++ ./Makefile 2013-03-20 15:40:50.000000000 +0100 @@ -1,25 +1,23 @@ -# New ports collection makefile for: mhgui -# Date created: 31 Mar 2007 -# Whom: Dmitry Marakasov -# +# Created by: Dmitry Marakasov # $FreeBSD: head/graphics/mhgui/Makefile 302037 2012-08-04 22:52:02Z kwm $ -# PORTNAME= mhgui PORTVERSION= 0.2 -PORTREVISION= 5 +PORTREVISION= 6 CATEGORIES= graphics MASTER_SITES= SF/makehuman/MakeHuman%20Source/MakeHuman_091 MAINTAINER= amdmi3@FreeBSD.org COMMENT= GUI widget library for MakeHuman +LICENSE= GPLv2 + LIB_DEPENDS= animorph.0:${PORTSDIR}/graphics/animorph \ png15:${PORTSDIR}/graphics/png GNU_CONFIGURE= yes USE_GMAKE= yes -USE_GNOME= pkgconfig +USE_PKGCONFIG= build USE_LDCONFIG= yes USE_XORG= xi xmu ice sm USE_GL= glut @@ -27,15 +25,28 @@ CPPFLAGS+= -I${LOCALBASE}/include LDFLAGS+= -L${LOCALBASE}/lib -.if !defined(NOPORTDOCS) -PORTDOCS= * -.endif +PORTDOCS= AUTHORS TODO + +.include post-patch: @${REINPLACE_CMD} -e '/^libmhguidocdir =/ s|doc/|share/doc/|' ${WRKSRC}/Makefile.in @${REINPLACE_CMD} -e '/^pkgconfigdir =/ s|\$$(libdir)|\$$(exec_prefix)/libdata|' ${WRKSRC}/Makefile.in -.if defined(NOPORTDOCS) - @${REINPLACE_CMD} -e '/^install-data-am:/ s|install-libmhguidocDATA||' ${WRKSRC}/Makefile.in + +.if ! ${PORT_OPTIONS:MDOCS} + @${REINPLACE_CMD} -i '' '/install-libmhguidocDATA: $$(libmhguidoc_DATA)/,/done/s/^/#/' \ + ${WRKSRC}/Makefile.in +.endif + +.if ${PORT_OPTIONS:MDOCS} + @${REINPLACE_CMD} -i '' '/libmhguidoc_DATA =/,/TODO/s/^/#/' \ + ${WRKSRC}/Makefile.in +.endif + +post-install: +.if ${PORT_OPTIONS:MDOCS} + @${MKDIR} ${DOCSDIR} + ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR} .endif .include