svn commit: r323697 - head/graphics/gsnapshot

Baptiste Daroussin bapt at FreeBSD.org
Fri Jul 26 06:55:13 UTC 2013


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 at 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}


More information about the svn-ports-all mailing list