Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 26 Jul 2013 06:55:13 +0000 (UTC)
From:      Baptiste Daroussin <bapt@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r323697 - head/graphics/gsnapshot
Message-ID:  <201307260655.r6Q6tDHq019093@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bapt
Date: Fri Jul 26 06:55:13 2013
New Revision: 323697
URL: http://svnweb.freebsd.org/changeset/ports/323697

Log:
  Fix build with linker that does not copy the dt_need from libraries it links
  with like recent binutils.
  While here:
  - New options framework
  - USE_GMAKE -> USES=gmake

Modified:
  head/graphics/gsnapshot/Makefile

Modified: head/graphics/gsnapshot/Makefile
==============================================================================
--- head/graphics/gsnapshot/Makefile	Fri Jul 26 06:51:58 2013	(r323696)
+++ head/graphics/gsnapshot/Makefile	Fri Jul 26 06:55:13 2013	(r323697)
@@ -10,14 +10,16 @@ MASTER_SITES=	SF/gould/${PORTNAME}/relea
 MAINTAINER=	ports@FreeBSD.org
 COMMENT=	GTK+ based screen capture
 
-USES=		pkgconfig
+OPTIONS_DEFINE=	DOCS
+
+USES=		pkgconfig gmake
 USE_AUTOTOOLS=	aclocal autoheader automake autoconf libtool
 AUTOMAKE_ARGS=	--add-missing
 USE_GNOME=	gtk20 libwnck libxml2
 USE_XORG=	x11 xmu
-USE_GMAKE=	yes
 
 CFLAGS+=	-fPIC -I${LOCALBASE}/include/libxml2
+LDFLAGS+=	-lgmodule-2.0
 
 PORTDOCS=	AUTHORS COPYING INSTALL README TODO
 
@@ -28,13 +30,15 @@ DESKTOP_ENTRIES=	"gsnapshot" \
 			"Graphics;GTK;" \
 			"false"
 
+.include <bsd.port.options.mk>
+
 pre-configure:
 	@${LN} -sf ${AUTOMAKE_DIR}/install-sh ${WRKSRC}
 	@${LN} -sf ${AUTOMAKE_DIR}/depcomp ${WRKSRC}
 	@${LN} -sf ${AUTOMAKE_DIR}/missing ${WRKSRC}
 
 post-install:
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
 	@${MKDIR} ${DOCSDIR}
 .for doc in ${PORTDOCS}
 	@${INSTALL_DATA} ${WRKSRC}/${doc} ${DOCSDIR}



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201307260655.r6Q6tDHq019093>