summaryrefslogtreecommitdiff
path: root/emulators/twin/Makefile
blob: 0f70c0ae98ea3ffcaedcb73c9c22c6da2723797d (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:	Willows
# Date created:		5 June 1999
# Whom:			Pedro F. Giffuni
#
# $FreeBSD$
#

PORTNAME=	twin
PORTVERSION=	3.1.14
PORTEPOCH=	1
CATEGORIES=	emulators devel
MASTER_SITES=	${MASTER_SITE_NETBSD} \
		ftp://ftp.willows.com/pub/twin/
DISTNAME=	${PORTNAME}-src-${PORTVERSION}

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Willows Toolkit for migrating and developing Windows applications

ONLY_FOR_ARCHS= i386 alpha powerpc

WRKSRC=		${WRKDIR}/${PORTNAME}

USE_XLIB=	yes
USE_REINPLACE=	yes
USE_AUTOCONF=	yes
GNU_CONFIGURE=	yes
.if ${MACHINE_ARCH} == "alpha"
CONFIGURE_ARGS+= --disable-intp
.endif
USE_GMAKE=	yes

ALL_TARGET=	depend world

PLIST_SUB=	LIBVER="${LIBVER}"
INSTALLS_SHLIB=	yes

.include <bsd.port.pre.mk>

.if ${OSVERSION} >= 500113
USE_GCC=	3.2
.endif

FMT?=	/usr/bin/fmt

LIBRARIES=	libadvapi32.so libcomctl32.so libcomm.so \
	libcommdlg.so libddeml.so libkeyboard.so \
	liblzexpand.so libmmsystem.so libmsvcrt.so \
	libolecli.so libolesvr.so libpe32.so \
	libshell.so libsound.so libsystem.so \
	libtoolhelp.so libtwin32.so libversion.so \
	libw32sys.so libwin87em.so libwinsock.so \
	libwinspool.so
LIBVER=	0

post-configure:
	@${REINPLACE_CMD} 's|bison -y|yacc|' ${WRKSRC}/Make.rules # dirty

post-install:
.if !defined(NOPORTDOCS)
	@${MKDIR} ${DOCSDIR}
	@${INSTALL_DATA} ${WRKSRC}/documentation/* ${DOCSDIR}
.endif
# version these libraries to make ldconfig happy
.for lib in ${LIBRARIES}
	@${LN} -sf ${lib} ${PREFIX}/lib/${lib}.${LIBVER}
.endfor
	@${FMT} ${PKGMESSAGE}

.include <bsd.port.post.mk>