1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-19 19:59:43 +00:00
freebsd-ports/emulators/rtc/Makefile
Jason Helfman 226cca70fb - re-order, include bsd.port.pre.mk so SRC_BASE is defined before referenced
PR: ports/165994
Submitted by: 4721@hushmail.com
Approved by: maintainer, emulation
2012-05-22 06:15:49 +00:00

58 lines
1.3 KiB
Makefile

# New ports collection makefile for: rtc
# Date created: 28 March 2000
# Whom: Akinori MUSHA aka knu <knu@idaemons.org>
#
# $FreeBSD$
#
PORTNAME= rtc
PORTVERSION= 2004.02.24.1
PORTREVISION= 8
CATEGORIES= emulators linux kld
MASTER_SITES= # none
DISTFILES= # none
MAINTAINER= emulation@FreeBSD.org
COMMENT= Kernel module which provides /dev/rtc device support
WRKSRC= ${WRKDIR}/files
NO_FETCH= yes
USE_LINUX= yes # because of ${DEVDIR}
KMODDIR= ${PREFIX}/modules
CDEV_MAJOR= 202
DEVDIR= ${LINUXBASE}/dev
STARTUP= rtc.sh
MAKE_ARGS= KMODDIR="${KMODDIR}" CDEV_MAJOR="${CDEV_MAJOR}"
PLIST_SUB= DEVDIR="${DEVDIR}" CDEV_MAJOR="${CDEV_MAJOR}" \
RTC_H_DIR="${RTC_H_DIR}"
.include <bsd.port.pre.mk>
SRC_BASE?= /usr/src
.if !exists(${SRC_BASE}/sys/Makefile)
IGNORE= needs kernel source files
.endif
do-extract:
@${MKDIR} ${WRKSRC}
@${SED} -e 's,@@PREFIX@@,${PREFIX},' \
${FILESDIR}/${STARTUP} > ${WRKDIR}/${STARTUP}
@cd ${FILESDIR} && ${CP} Makefile *.[ch] ${WRKSRC}/
pre-install:
${MKDIR} ${KMODDIR}
post-install:
${INSTALL_DATA} ${WRKSRC}/rtc.h ${PREFIX}/include/
${MKDIR} ${PREFIX}/share/examples/rtc
${INSTALL_DATA} ${WRKSRC}/test.c ${PREFIX}/share/examples/rtc/
@${ECHO} "Installing ${PREFIX}/etc/rc.d/${STARTUP} startup file.";
${INSTALL_SCRIPT} ${WRKDIR}/${STARTUP} ${PREFIX}/etc/rc.d/
.include <bsd.port.post.mk>