Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 8 Nov 2013 19:52:00 +0000 (UTC)
From:      Rene Ladan <rene@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r333260 - head/emulators/rtc
Message-ID:  <201311081952.rA8Jq0mH026602@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: rene
Date: Fri Nov  8 19:52:00 2013
New Revision: 333260
URL: http://svnweb.freebsd.org/changeset/ports/333260

Log:
  - Add stage support
  - Only include bsd.port.mk once

Modified:
  head/emulators/rtc/Makefile

Modified: head/emulators/rtc/Makefile
==============================================================================
--- head/emulators/rtc/Makefile	Fri Nov  8 19:36:14 2013	(r333259)
+++ head/emulators/rtc/Makefile	Fri Nov  8 19:52:00 2013	(r333260)
@@ -26,10 +26,7 @@ MAKE_ARGS=	KMODDIR="${KMODDIR}" CDEV_MAJ
 PLIST_SUB=	DEVDIR="${DEVDIR}" CDEV_MAJOR="${CDEV_MAJOR}" \
 		RTC_H_DIR="${RTC_H_DIR}"
 
-NO_STAGE=	yes
-
 USES=		kmod
-.include <bsd.port.pre.mk>
 
 do-extract:
 	@${MKDIR} ${WRKSRC}
@@ -38,10 +35,10 @@ do-extract:
 	@cd ${FILESDIR} && ${CP} Makefile *.[ch] ${WRKSRC}/
 
 post-install:
-	${INSTALL_DATA} ${WRKSRC}/rtc.h ${PREFIX}/include/
-	${MKDIR} ${PREFIX}/share/examples/rtc
-	${INSTALL_DATA} ${WRKSRC}/test.c ${PREFIX}/share/examples/rtc/
+	${INSTALL_DATA} ${WRKSRC}/rtc.h ${STAGEDIR}${PREFIX}/include
+	${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
+	${INSTALL_DATA} ${WRKSRC}/test.c ${STAGEDIR}${EXAMPLESDIR}
 	@${ECHO} "Installing ${PREFIX}/etc/rc.d/${STARTUP} startup file.";
-	${INSTALL_SCRIPT} ${WRKDIR}/${STARTUP} ${PREFIX}/etc/rc.d/
+	${INSTALL_SCRIPT} ${WRKDIR}/${STARTUP} ${STAGEDIR}${PREFIX}/etc/rc.d
 
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>



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