svn commit: r357661 - head/misc/metalink-tools

Pawel Pekala pawel at FreeBSD.org
Fri Jun 13 09:18:54 UTC 2014


Author: pawel
Date: Fri Jun 13 09:18:53 2014
New Revision: 357661
URL: http://svnweb.freebsd.org/changeset/ports/357661
QAT: https://qat.redports.org/buildarchive/r357661/

Log:
  - Add staging support
  - Convert to new LIB_DEPENDS format, options framework

Modified:
  head/misc/metalink-tools/Makefile

Modified: head/misc/metalink-tools/Makefile
==============================================================================
--- head/misc/metalink-tools/Makefile	Fri Jun 13 09:12:16 2014	(r357660)
+++ head/misc/metalink-tools/Makefile	Fri Jun 13 09:18:53 2014	(r357661)
@@ -11,14 +11,14 @@ PKGNAMESUFFIX?=	-tools
 MAINTAINER=	ports at FreeBSD.org
 COMMENT=	Metalink generation tool
 
-LIB_DEPENDS=	gcrypt:${PORTSDIR}/security/libgcrypt \
-		glibmm-2.4.1:${PORTSDIR}/devel/glibmm \
-		gpg-error.0:${PORTSDIR}/security/libgpg-error \
-		sigc-2.0.0:${PORTSDIR}/devel/libsigc++20
-
 LICENSE=	GPLv3
 LICENSE_FILE=	${WRKSRC}/COPYING
 
+LIB_DEPENDS=	libgcrypt.so:${PORTSDIR}/security/libgcrypt \
+		libglibmm-2.4.so:${PORTSDIR}/devel/glibmm \
+		libgpg-error.so:${PORTSDIR}/security/libgpg-error \
+		libsigc-2.0.so:${PORTSDIR}/devel/libsigc++20
+
 USE_GNOME=	glib20
 GNU_CONFIGURE=	yes
 USES=		pkgconfig
@@ -26,25 +26,14 @@ CONFIGURE_ENV+=	AWK="${AWK}"
 CPPFLAGS+=	-I${LOCALBASE}/include
 LDFLAGS+=	-L${LOCALBASE}/lib
 
-# Documents to install
-DOC_FILES=	\
-		README
-
-.ifndef(NOPORTDOCS)
-PORTDOCS=	*
-.endif
-
+PORTDOCS=	README
 PLIST_FILES=	bin/${PORTNAME}
 
-NO_STAGE=	yes
+OPTIONS_DEFINE=	DOCS
+
 do-install:
-# docs
-.ifndef(NOPORTDOCS)
-	@${MKDIR} ${DOCSDIR}
-.for file in ${DOC_FILES}
-	@${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
-.endfor
-.endif
-	@${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
+	@${MKDIR} ${STAGEDIR}${DOCSDIR}
+	${INSTALL_DATA} ${WRKSRC}/${PORTDOCS} ${STAGEDIR}${DOCSDIR}
+	${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
 
 .include <bsd.port.mk>


More information about the svn-ports-head mailing list