summaryrefslogtreecommitdiff
path: root/japanese/vje30-trial/Makefile
blob: 8ab44c1bb98ef2602574effe81e6b88624ff5bb6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
# New ports collection makefile for:	VJE-Delta 3.0 Trial
# Date created:		14 January 2000
# Whom:			Akinori MUSHA aka knu <knu@idaemons.org>
#
# $FreeBSD$
#

PORTNAME=	vje
PORTVERSION=	3.0
PKGNAMESUFFIX=	-trial
CATEGORIES=	japanese
MASTER_SITES=	ftp://ftp.vacs.co.jp/pub/unix/vje30/FreeBSD/	\
		http://www.green.machida.ne.jp/vacs/unix/FreeBSD/
EXTRACT_SUFX=	.tgz
DISTNAME=	${PORTNAME}-delta-${PORTVERSION}t-${DISTOBJFORMAT}

MAINTAINER=	knu@FreeBSD.org

#RUN_DEPENDS=	${LOCALBASE}/share/java/classes/jfc-1.1.1/swing.jar:${PORTSDIR}/java/jfc

NO_BUILD=	yes

ONLY_FOR_ARCHS=	i386

PLIST_SUB=	BINSTUFF="${BINSTUFF}"

WRKSRC=		${WRKDIR}/usr/local

.include <bsd.port.pre.mk>

.if ${PORTOBJFORMAT} == "aout"
DISTOBJFORMAT=	AOUT
.else
DISTOBJFORMAT=	ELF
.endif

BINSTUFF=	vje	\
		vjed	\
		vadd	\
		vdel	\
		vdispd	\
		vmaked	\
		vpen	\
		vpu	\
		vjekill	\
		vpr	\
		vprc	\
		vjeacc

post-patch:
	@cd ${WRKSRC}/vje30/bin && ${RM} swingall.jar
	@find ${WRKSRC} -name '*.orig' -delete
	@${CP} ${FILESDIR}/vje.sh ${WRKSRC}/etc/rc.d/

do-install:
	@cd ${WRKSRC} && tar cf - . | tar xf - -C ${PREFIX}
.for f in ${BINSTUFF}
	@${LN} -fs ${PREFIX}/vje30/bin/$f ${PREFIX}/bin/$f
.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/)
	@${CP} -Pp /etc/services /etc/services.bak
	@${GREP} -qw '^vjed' /etc/services || ${ECHO} "vjed		11493/tcp		# VJE-Delta Server" >> /etc/services

post-install:
	@${CAT} ${PKGMESSAGE}

.include <bsd.port.post.mk>