svn commit: r362178 - head/devel/librest

Alexey Dokuchaev danfe at FreeBSD.org
Fri Jul 18 06:10:50 UTC 2014


Author: danfe
Date: Fri Jul 18 06:10:49 2014
New Revision: 362178
URL: http://svnweb.freebsd.org/changeset/ports/362178
QAT: https://qat.redports.org/buildarchive/r362178/

Log:
  - Make GNOME dependency optional (but still on by default)
  - Use OPTIONS helpers and clean up things a bit while I'm here
  
  Approved by:	maintainer

Modified:
  head/devel/librest/Makefile

Modified: head/devel/librest/Makefile
==============================================================================
--- head/devel/librest/Makefile	Fri Jul 18 05:44:31 2014	(r362177)
+++ head/devel/librest/Makefile	Fri Jul 18 06:10:49 2014	(r362178)
@@ -13,19 +13,22 @@ COMMENT=	Easy access to RESTful web serv
 LICENSE=	LGPL21
 
 BUILD_DEPENDS=	ca_root_nss>0:${PORTSDIR}/security/ca_root_nss
-LIB_DEPENDS=	libsoup-gnome-2.4.so:${PORTSDIR}/devel/libsoup-gnome
-RUN_DEPENDS=	ca_root_nss>0:${PORTSDIR}/security/ca_root_nss
+RUN_DEPENDS:=	${BUILD_DEPENDS}
 
-USES=		pathfix pkgconfig gmake tar:xz
+USES=		gmake pathfix pkgconfig tar:xz
 GNU_CONFIGURE=	yes
+CONFIGURE_ARGS=	--with-ca-certificates=${LOCALBASE}/share/certs/ca-root-nss.crt
 USE_LDCONFIG=	yes
 USE_GNOME=	glib20 intlhack libxml2 introspection:build
 
-CONFIGURE_ARGS=	--with-ca-certificates=${LOCALBASE}/share/certs/ca-root-nss.crt
-
 PORTEXAMPLES=	*.c
 
-OPTIONS_DEFINE=	EXAMPLES
+OPTIONS_DEFINE=	GNOME EXAMPLES
+OPTIONS_DEFAULT=	GNOME
+
+GNOME_LIB_DEPENDS=	libsoup-gnome-2.4.so:${PORTSDIR}/devel/libsoup-gnome
+GNOME_CONFIGURE_OFF=	--without-gnome
+GNOME_LIB_DEPENDS_OFF=	libsoup-2.4.so:${PORTSDIR}/devel/libsoup
 
 post-install:
 	@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}


More information about the svn-ports-all mailing list