Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 9 Apr 2014 20:03:31 +0000 (UTC)
From:      Pawel Pekala <pawel@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r350738 - head/emulators/lib765
Message-ID:  <201404092003.s39K3Vo4013034@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: pawel
Date: Wed Apr  9 20:03:30 2014
New Revision: 350738
URL: http://svnweb.freebsd.org/changeset/ports/350738
QAT: https://qat.redports.org/buildarchive/r350738/

Log:
  - Add staging support
  - Use options helpers

Modified:
  head/emulators/lib765/Makefile

Modified: head/emulators/lib765/Makefile
==============================================================================
--- head/emulators/lib765/Makefile	Wed Apr  9 19:34:17 2014	(r350737)
+++ head/emulators/lib765/Makefile	Wed Apr  9 20:03:30 2014	(r350738)
@@ -15,25 +15,15 @@ USE_AUTOTOOLS=	libtool
 USE_LDCONFIG=	yes
 
 OPTIONS_DEFINE=	DOCS LIBDSK
-
-LIBDSK_DESC=	Include LibDSK support (recommended)
-
 OPTIONS_DEFAULT=	LIBDSK
 
-NO_STAGE=	yes
-.include <bsd.port.options.mk>
-
-.if ${PORT_OPTIONS:MLIBDSK}
-CONFIGURE_ARGS+=	--with-libdsk --with-libdsk-path=${LOCALBASE}
-LIB_DEPENDS+=		dsk:${PORTSDIR}/emulators/libdsk
-.else
-CONFIGURE_ARGS+=	--without-libdsk
-.endif
+LIBDSK_DESC=	Include LibDSK support (recommended)
+LIBDSK_CONFIGURE_ON=	--with-libdsk --with-libdsk-path=${LOCALBASE}
+LIBDSK_CONFIGURE_OFF=	--without-libdsk
+LIBDSK_LIB_DEPENDS=	libdsk.so:${PORTSDIR}/emulators/libdsk
 
 post-install:
-.if ${PORT_OPTIONS:MDOCS}
-	@${MKDIR} ${DOCSDIR}
-	cd ${WRKSRC} && ${INSTALL_DATA} ChangeLog doc/765.txt ${DOCSDIR}
-.endif
+	@${MKDIR} ${STAGEDIR}${DOCSDIR}
+	cd ${WRKSRC} && ${INSTALL_DATA} ChangeLog doc/765.txt ${STAGEDIR}${DOCSDIR}
 
 .include <bsd.port.mk>



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