2000-05-19 22:16:31 +02:00
|
|
|
# New ports collection makefile for: VJE-Delta 3.0 + update
|
2000-02-02 17:55:56 +01:00
|
|
|
# Date created: 29 January 2000
|
|
|
|
# Whom: Akinori MUSHA aka knu <knu@idaemons.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
2000-04-13 10:34:11 +02:00
|
|
|
PORTNAME= vje
|
|
|
|
PORTVERSION= 3.0
|
2001-01-11 13:52:12 +01:00
|
|
|
PORTREVISION= 1
|
2000-02-02 17:55:56 +01:00
|
|
|
CATEGORIES= japanese
|
2000-05-19 22:16:31 +02:00
|
|
|
MASTER_SITES= file:${MOUNT_PT}/freebsd/ \
|
2001-01-11 13:52:12 +01:00
|
|
|
file:${MOUNT_PT}/source/delta/ \
|
|
|
|
${MASTER_SITE_LOCAL}
|
|
|
|
MASTER_SITE_SUBDIR= knu
|
2000-05-19 22:16:31 +02:00
|
|
|
DISTFILES= ${MAINDIST} \
|
2001-01-11 13:52:12 +01:00
|
|
|
vje-delta-3.0-${DISTOBJFORMAT}-update.tgz \
|
|
|
|
delta.tgz \
|
|
|
|
vje-delta-3.0-source-update.tgz
|
|
|
|
DIST_SUBDIR= vje30
|
2000-02-02 17:55:56 +01:00
|
|
|
|
2000-04-24 17:51:20 +02:00
|
|
|
MAINTAINER= knu@FreeBSD.org
|
2000-02-02 17:55:56 +01:00
|
|
|
|
2001-08-13 17:54:08 +02:00
|
|
|
LIB_DEPENDS= c.3:${PORTSDIR}/misc/compat3x
|
2000-02-02 17:55:56 +01:00
|
|
|
#RUN_DEPENDS= ${LOCALBASE}/share/java/classes/jfc-1.1.1/swing.jar:${PORTSDIR}/java/jfc
|
|
|
|
|
|
|
|
RESTRICTED= "You must purchase a licensed copy from VACS Corporation."
|
|
|
|
NO_CDROM= "You must purchase a licensed copy from VACS Corporation."
|
|
|
|
NO_PACKAGE= "You must purchase a licensed copy from VACS Corporation."
|
|
|
|
|
2001-01-11 13:52:12 +01:00
|
|
|
# Specify this!
|
|
|
|
MOUNT_PT?= /cdrom
|
|
|
|
|
2000-02-02 17:55:56 +01:00
|
|
|
ONLY_FOR_ARCHS= i386
|
|
|
|
|
2001-01-11 13:52:12 +01:00
|
|
|
USE_XLIB= yes
|
|
|
|
|
2000-02-12 17:31:49 +01:00
|
|
|
PLIST_SUB= BINSTUFF="${BINSTUFF}"
|
2000-02-02 17:55:56 +01:00
|
|
|
|
|
|
|
WRKSRC= ${WRKDIR}/usr/local
|
2001-01-11 13:52:12 +01:00
|
|
|
PATCH_WRKSRC= ${WRKDIR}
|
|
|
|
BUILD_WRKSRC= ${WRKDIR}/delta/newFrontend
|
|
|
|
MAKEFILE= Makefile.FreeBSD
|
2000-02-02 17:55:56 +01:00
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if ${PORTOBJFORMAT} == "aout"
|
|
|
|
DISTOBJFORMAT= AOUT
|
|
|
|
.else
|
|
|
|
DISTOBJFORMAT= ELF
|
|
|
|
.endif
|
|
|
|
|
2001-01-11 13:52:12 +01:00
|
|
|
MAINDIST= ${PORTNAME}-delta-${PORTVERSION}-${DISTOBJFORMAT}.tgz
|
2000-05-19 22:16:31 +02:00
|
|
|
|
2000-02-02 17:55:56 +01:00
|
|
|
BINSTUFF= vje \
|
|
|
|
vjed \
|
|
|
|
vadd \
|
|
|
|
vdel \
|
|
|
|
vdispd \
|
|
|
|
vmaked \
|
|
|
|
vpen \
|
|
|
|
vpu \
|
|
|
|
vjekill \
|
|
|
|
vpr \
|
|
|
|
vprc \
|
|
|
|
vjeacc
|
|
|
|
|
|
|
|
pre-fetch:
|
|
|
|
@[ -d ${MOUNT_PT}/freebsd ] || ( \
|
|
|
|
${ECHO} "*****************************************************************"; \
|
|
|
|
${ECHO} "To install VJE-Delta 3.0, make sure your purchased CD-ROM is"; \
|
|
|
|
${ECHO} "mounted on at ${MOUNT_PT} or an arbitrary mountpoint that can be"; \
|
|
|
|
${ECHO} "specified by setting MOUNT_PT variable in a make command line."; \
|
|
|
|
${ECHO} ""; \
|
|
|
|
${ECHO} "e.g."; \
|
|
|
|
${ECHO} " mount /dev/cd0c /mnt/cdrom"; \
|
|
|
|
${ECHO} " make MOUNT_PT=/mnt/cdrom install"; \
|
|
|
|
${ECHO} "*****************************************************************"; \
|
|
|
|
${FALSE} \
|
|
|
|
)
|
|
|
|
|
|
|
|
post-extract:
|
2001-01-11 13:52:12 +01:00
|
|
|
@${RM} ${_DISTDIR}/${MAINDIST} ${WRKDIR}/vje
|
2000-02-02 17:55:56 +01:00
|
|
|
|
|
|
|
post-patch:
|
2000-02-12 17:31:49 +01:00
|
|
|
@cd ${WRKSRC}/vje30/bin && ${RM} swingall.jar
|
|
|
|
@find ${WRKSRC} -name '*.orig' -delete
|
2000-07-05 19:09:23 +02:00
|
|
|
@${CP} ${FILESDIR}/vje.sh ${WRKSRC}/etc/rc.d/
|
2001-01-11 13:52:12 +01:00
|
|
|
@${PERL} -i -pe 's,/usr/X11R6,${X11BASE},g' ${BUILD_WRKSRC}/${MAKEFILE}
|
2001-02-10 14:19:57 +01:00
|
|
|
.if defined(NOPORTDOCS)
|
|
|
|
@cd ${WRKSRC}/vje30 && ${RM} -rf doc README FAQ REQUEST
|
|
|
|
.endif
|
2001-01-11 13:52:12 +01:00
|
|
|
|
|
|
|
post-build:
|
|
|
|
@${CP} ${BUILD_WRKSRC}/vje ${WRKSRC}/vje30/bin/
|
2000-02-02 17:55:56 +01:00
|
|
|
|
|
|
|
do-install:
|
|
|
|
@cd ${WRKSRC} && tar cf - . | tar xf - -C ${PREFIX}
|
|
|
|
.for f in ${BINSTUFF}
|
2000-02-12 17:31:49 +01:00
|
|
|
@${LN} -fs ${PREFIX}/vje30/bin/$f ${PREFIX}/bin/$f
|
2000-02-02 17:55:56 +01:00
|
|
|
.endfor
|
|
|
|
@${CHMOD} a+x ${PREFIX}/etc/rc.d/vje.sh
|
|
|
|
@${CHMOD} a+w ${PREFIX}/vje30/dic/vjed95m.dic
|
|
|
|
@[ X${PREFIX} = X"/usr/local" ] || (${LN} -s ${PREFIX}/vje30 /usr/local/; ${LN} -s ${PREFIX}/etc/vje30 /usr/local/etc/)
|
2000-05-19 22:16:31 +02:00
|
|
|
@${CP} ${WRKDIR}/vjed.bin /tmp/
|
|
|
|
@${ECHO} '' | ${WRKDIR}/vjesetup
|
|
|
|
@${RM} /tmp/vjed.bin
|
2000-02-02 17:55:56 +01:00
|
|
|
@${CP} -Pp /etc/services /etc/services.bak
|
|
|
|
@${GREP} -qw '^vjed' /etc/services || ${ECHO} "vjed 11493/tcp # VJE-Delta Server" >> /etc/services
|
|
|
|
|
|
|
|
post-install:
|
2000-10-08 12:23:48 +02:00
|
|
|
@${CAT} ${PKGMESSAGE}
|
2000-02-02 17:55:56 +01:00
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|