1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-23 04:23:08 +00:00

- Add stage support

- Only include bsd.port.mk once
This commit is contained in:
Rene Ladan 2013-11-08 19:52:00 +00:00
parent 1be4e3cbd5
commit 224821f431
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=333260

View File

@ -26,10 +26,7 @@ MAKE_ARGS= KMODDIR="${KMODDIR}" CDEV_MAJOR="${CDEV_MAJOR}"
PLIST_SUB= DEVDIR="${DEVDIR}" CDEV_MAJOR="${CDEV_MAJOR}" \ PLIST_SUB= DEVDIR="${DEVDIR}" CDEV_MAJOR="${CDEV_MAJOR}" \
RTC_H_DIR="${RTC_H_DIR}" RTC_H_DIR="${RTC_H_DIR}"
NO_STAGE= yes
USES= kmod USES= kmod
.include <bsd.port.pre.mk>
do-extract: do-extract:
@${MKDIR} ${WRKSRC} @${MKDIR} ${WRKSRC}
@ -38,10 +35,10 @@ do-extract:
@cd ${FILESDIR} && ${CP} Makefile *.[ch] ${WRKSRC}/ @cd ${FILESDIR} && ${CP} Makefile *.[ch] ${WRKSRC}/
post-install: post-install:
${INSTALL_DATA} ${WRKSRC}/rtc.h ${PREFIX}/include/ ${INSTALL_DATA} ${WRKSRC}/rtc.h ${STAGEDIR}${PREFIX}/include
${MKDIR} ${PREFIX}/share/examples/rtc ${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/test.c ${PREFIX}/share/examples/rtc/ ${INSTALL_DATA} ${WRKSRC}/test.c ${STAGEDIR}${EXAMPLESDIR}
@${ECHO} "Installing ${PREFIX}/etc/rc.d/${STARTUP} startup file."; @${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>