Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 8 Dec 2013 13:21:43 +0000 (UTC)
From:      Danilo Egea Gondolfo <danilo@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r335886 - head/misc/hotkeys
Message-ID:  <201312081321.rB8DLhmG078431@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: danilo
Date: Sun Dec  8 13:21:43 2013
New Revision: 335886
URL: http://svnweb.freebsd.org/changeset/ports/335886

Log:
  - Convert LIB_DEPENDS to new syntax
  - Convert USE_GMAKE to USES
  - Add stage support
  - Use options helpers

Modified:
  head/misc/hotkeys/Makefile

Modified: head/misc/hotkeys/Makefile
==============================================================================
--- head/misc/hotkeys/Makefile	Sun Dec  8 13:17:41 2013	(r335885)
+++ head/misc/hotkeys/Makefile	Sun Dec  8 13:21:43 2013	(r335886)
@@ -13,7 +13,7 @@ COMMENT=	Allows usage of special keys on
 
 LICENSE=	GPLv2
 
-LIB_DEPENDS=	xml2.5:${PORTSDIR}/textproc/libxml2
+LIB_DEPENDS=	libxml2.so:${PORTSDIR}/textproc/libxml2
 
 WRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION}
 CONFIGURE_ARGS=	--with-db3-inc=${BDB_INCLUDE_DIR} \
@@ -23,20 +23,13 @@ CONFIGURE_ARGS=	--with-db3-inc=${BDB_INC
 USE_XORG=	x11 xkbfile xmu
 GNU_CONFIGURE=	yes
 USE_BDB=	yes
-USE_GMAKE=	yes
-
-MAN1=		hotkeys.1
+USES=		gmake
 
 OPTIONS_DEFINE=	OSD
 OPTIONS_DEFAULT=	OSD
 
-NO_STAGE=	yes
-.include <bsd.port.options.mk>
-
-.if ${PORT_OPTIONS:MOSD}
-LIB_DEPENDS+=	xosd.4:${PORTSDIR}/misc/xosd
-CONFIGURE_ARGS+=	--with-xosd
-.endif
+OSD_LIB_DEPENDS=	libxosd.so:${PORTSDIR}/misc/xosd
+OSD_CONFIGURE_WITH=	xosd
 
 post-extract:
 	@${CP} ${PATCHDIR}/error.h ${WRKSRC}/src
@@ -48,10 +41,6 @@ post-patch:
 		${WRKSRC}/src/Makefile.in
 
 post-install:
-	@${INSTALL_DATA} ${WRKSRC}/src/hotkeys.conf ${PREFIX}/etc/hotkeys.conf.sample
-	@if [ ! -f ${PREFIX}/etc/hotkeys.conf ]; then \
-	  ${CP} -p ${PREFIX}/etc/hotkeys.conf.sample ${PREFIX}/etc/hotkeys.conf ; \
-	fi
-	@${CAT} ${PKGMESSAGE}
+	@${INSTALL_DATA} ${WRKSRC}/src/hotkeys.conf ${STAGEDIR}${PREFIX}/etc/hotkeys.conf.sample
 
 .include <bsd.port.mk>



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