summaryrefslogtreecommitdiff
path: root/x11-toolkits/viewkit/Makefile
blob: 368f8ac4199625121a2d2e3a200242d80063f31c (plain)
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
# New ports collection makefile for:	Viewkit from Hungry Programming
# Date created:				Aug 2000
# Whom:					peterho@ned.dem.csiro.au
#
# $FreeBSD$
#

PORTNAME=	viewkit
PORTVERSION=	0.00
PORTREVISION=	3
CATEGORIES=	x11-toolkits
MASTER_SITES=	ftp://ftp.hungry.com/pub/hungry/viewkit/ \
		${MASTER_SITE_LOCAL}
MASTER_SITE_SUBDIR=	fenner
DISTNAME=	libvk-Apr19-2243

MAINTAINER=	ports@FreeBSD.org
COMMENT=	ViewKit workalike from Hungry Programmers

USE_AUTOTOOLS=	autoconf:261:env
MOTIFPACKAGE?=	open-motif
USE_MOTIF=	yes
GNU_CONFIGURE=	yes
CONFIGURE_ARGS=	--with-${MOTIFPACKAGE}

post-patch:
	@${REINPLACE_CMD} -e 's/^friend/friend class/' ${WRKSRC}/Vk/VkAction.h \
		${WRKSRC}/Vk/VkApp.h ${WRKSRC}/Vk/VkMenu.h
	@${REINPLACE_CMD} -E 's/\((VkPipe::handleInput)\)/\1/' ${WRKSRC}/VkPipe.C

pre-configure:
	@cd ${WRKSRC}; ${CHMOD} +w configure; ${AUTOCONF}

.include <bsd.port.mk>