mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-19 03:52:17 +00:00
accc2a8267
who has time.
46 lines
1.2 KiB
Makefile
46 lines
1.2 KiB
Makefile
# Created by: Akinori MUSHA aka knu <knu@idaemons.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= rtc
|
|
PORTVERSION= 2004.02.24.1
|
|
PORTREVISION= 8
|
|
CATEGORIES= emulators linux
|
|
MASTER_SITES= # none
|
|
DISTFILES= # none
|
|
|
|
MAINTAINER= emulation@FreeBSD.org
|
|
COMMENT= Kernel module which provides /dev/rtc device support
|
|
|
|
BROKEN_FreeBSD_12= fails to compile: rtc.c:166:2: implicit declaration of function 'MALLOC' is invalid in C99
|
|
|
|
WRKSRC= ${WRKDIR}/files
|
|
|
|
NO_FETCH= yes
|
|
|
|
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}"
|
|
|
|
USES= kmod linux uidfix
|
|
|
|
do-extract:
|
|
@${MKDIR} ${WRKSRC}
|
|
@${SED} -e 's,@@PREFIX@@,${PREFIX},' \
|
|
${FILESDIR}/${STARTUP} > ${WRKDIR}/${STARTUP}
|
|
@cd ${FILESDIR} && ${CP} Makefile *.[ch] ${WRKSRC}/
|
|
|
|
post-install:
|
|
${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} ${STAGEDIR}${PREFIX}/etc/rc.d
|
|
|
|
.include <bsd.port.mk>
|