1997-09-19 09:30:11 +00:00
|
|
|
# New ports collection makefile for: Wnn6
|
1997-09-10 07:55:46 +00:00
|
|
|
# Version required: 97.6.6
|
|
|
|
# Date created: 15 July 1997
|
1997-09-10 06:52:02 +00:00
|
|
|
# Whom: Satoshi Taoka <taoka@infonets.hiroshima-u.ac.jp>
|
1994-11-22 23:37:45 +00:00
|
|
|
#
|
1997-09-19 09:30:11 +00:00
|
|
|
# $Id: Makefile,v 1.18 1997/09/10 07:55:31 asami Exp $
|
1994-11-22 23:37:45 +00:00
|
|
|
#
|
|
|
|
|
1997-09-10 07:55:46 +00:00
|
|
|
DISTNAME= OMRONWnn6
|
1997-09-19 09:30:11 +00:00
|
|
|
PKGNAME= ja-Wnn6-97.6.6
|
1997-09-10 07:55:46 +00:00
|
|
|
CATEGORIES= japanese
|
|
|
|
EXTRACT_SUFX= .tgz
|
1995-04-07 05:48:11 +00:00
|
|
|
|
1997-09-10 06:52:02 +00:00
|
|
|
MAINTAINER= taoka@infonets.hiroshima-u.ac.jp
|
1995-04-07 05:48:11 +00:00
|
|
|
|
1997-09-10 07:55:46 +00:00
|
|
|
IGNOREFILES= ${DISTFILES}
|
|
|
|
WRKSRC= ${WRKDIR}
|
|
|
|
LIBDIR= ${PREFIX}/OMRONWnn6
|
|
|
|
DISTDIR= ${MOUNT_PT}/fbsd
|
|
|
|
MOUNT_PT?= /cdrom
|
|
|
|
MOUNT_DEV?= /dev/wcd0c
|
1994-11-22 23:37:45 +00:00
|
|
|
|
1997-09-19 09:30:11 +00:00
|
|
|
RESTRICTED= "You should buy from Omron Software Co., Ltd."
|
|
|
|
NO_CDROM= "You should buy from Omron Software Co., Ltd."
|
|
|
|
NO_PACKAGE= "You should buy from Omron Software Co., Ltd."
|
|
|
|
NO_BUILD= yes
|
1997-09-10 07:55:46 +00:00
|
|
|
NO_CONFIGURE= yes
|
|
|
|
NO_PATCH= yes
|
|
|
|
IS_INTERACTIVE= yes
|
1997-06-19 11:26:08 +00:00
|
|
|
|
1997-09-19 09:30:11 +00:00
|
|
|
# If ${.CURDIR}/work/.build_done (which will be ${BUILD_COOKIE}) exists,
|
|
|
|
# we do nothing in a 'do-fetch' stage.
|
|
|
|
.if exists(${.CURDIR}/work/.build_done)
|
|
|
|
do-fetch:
|
|
|
|
.else
|
1997-09-10 07:55:46 +00:00
|
|
|
do-fetch:
|
1997-09-19 09:30:11 +00:00
|
|
|
@${ECHO} -n "Please set the CD-ROM of 'Wnn6' into your cdrom-drive. (Press Return)"; \
|
1997-09-10 07:55:46 +00:00
|
|
|
read dummy; \
|
1997-09-19 09:30:11 +00:00
|
|
|
${ECHO} "By default, a mount point and a device file"; \
|
|
|
|
${ECHO} " are '${MOUNT_PT}' and '${MOUNT_DEV}' respectively."; \
|
|
|
|
${ECHO} -n "Are these correct? (y/n) [y]"; \
|
1997-09-10 07:55:46 +00:00
|
|
|
(read ans; \
|
|
|
|
case x$${ans} in \
|
|
|
|
xn*|xN*) \
|
1997-09-19 09:30:11 +00:00
|
|
|
${ECHO} "###########################################################"; \
|
|
|
|
${ECHO} "Please rerun 'make' in specifying MOUNT_PT and MOUNT_DEV"; \
|
|
|
|
${ECHO} "For example:"; \
|
|
|
|
${ECHO} " make MOUNT_PT=/mnt MOUNT_DEV=/dev/cd0c"; \
|
|
|
|
${ECHO} "###########################################################"; \
|
1997-09-10 07:55:46 +00:00
|
|
|
/usr/bin/false; \
|
|
|
|
;; \
|
|
|
|
*) \
|
1997-09-19 09:30:11 +00:00
|
|
|
${ECHO} "Now mounting the CD-ROM ..."; \
|
1997-09-10 07:55:46 +00:00
|
|
|
;; \
|
|
|
|
esac)
|
1997-09-19 09:30:11 +00:00
|
|
|
@for t in `mount | ${GREP} ${MOUNT_PT}`; do \
|
1997-09-10 07:55:46 +00:00
|
|
|
if [ x"$$t" = x"${MOUNT_PT}" ]; then \
|
1997-09-19 09:30:11 +00:00
|
|
|
${ECHO} "##################################################"; \
|
|
|
|
${ECHO} "${MOUNT_PT} is busy"; \
|
|
|
|
${ECHO} "Please 'umount ${MOUNT_PT}'"; \
|
|
|
|
${ECHO} "##################################################"; \
|
1997-09-10 07:55:46 +00:00
|
|
|
/usr/bin/false; \
|
|
|
|
fi; \
|
1997-09-10 06:52:02 +00:00
|
|
|
done
|
1997-09-10 07:55:46 +00:00
|
|
|
@/sbin/mount_cd9660 ${MOUNT_DEV} ${MOUNT_PT}
|
1997-09-19 09:30:11 +00:00
|
|
|
.endif
|
1997-09-10 07:55:46 +00:00
|
|
|
|
|
|
|
pre-extract:
|
|
|
|
@if [ ! -e ${DISTDIR}/${DISTNAME}${EXTRACT_SUFX} ]; then \
|
1997-09-19 09:30:11 +00:00
|
|
|
${ECHO} "${DISTDIR}/${DISTNAME}${EXTRACT_SUFX}: No such file"; \
|
|
|
|
${ECHO} "Perhaps the CD-ROM is not one of Wnn6"; \
|
1997-09-10 07:55:46 +00:00
|
|
|
/sbin/umount ${MOUNT_PT}; \
|
1997-09-19 09:30:11 +00:00
|
|
|
${ECHO} "Umounting is done ..."; \
|
1997-09-10 07:55:46 +00:00
|
|
|
/usr/bin/false; \
|
|
|
|
fi
|
1997-09-10 06:52:02 +00:00
|
|
|
|
1997-09-19 09:30:11 +00:00
|
|
|
post-extract:
|
1997-09-10 07:55:46 +00:00
|
|
|
@/sbin/umount ${MOUNT_PT}
|
1997-09-10 06:52:02 +00:00
|
|
|
|
1997-09-19 09:30:11 +00:00
|
|
|
pre-install:
|
|
|
|
@${SETENV} PKG_PREFIX=${PREFIX} ${SH} ${PKGDIR}/INSTALL ${PKGNAME} PRE-INSTALL
|
|
|
|
|
1997-09-10 07:55:46 +00:00
|
|
|
do-install:
|
|
|
|
@cd ${WRKSRC}/usr; tar cf - OMRONWnn6 | (cd ${PREFIX}; tar xvpf -)
|
1994-11-22 23:37:45 +00:00
|
|
|
|
1995-04-20 18:05:40 +00:00
|
|
|
post-install:
|
1997-09-10 06:52:02 +00:00
|
|
|
@${SETENV} PKG_PREFIX=${PREFIX} ${SH} ${PKGDIR}/INSTALL ${PKGNAME} POST-INSTALL
|
1994-11-22 23:37:45 +00:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|