aboutsummaryrefslogtreecommitdiffstats
path: root/devel/crossgo32/Makefile
blob: fa237a9cf1a829f41477ff542e16b5fd75d4dea4 (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
# New ports collection makefile for:    crossgo32
# Date created:     6 Mar 97
# Whom:         Pedro Giffuni <giffunip@asme.org>
# Date updated:     Sun Jun 22 16:11:40 EST 1997
# Whom:         Joel Sutton <sutton@aardvark.apana.org.au>
#
# $FreeBSD$
#

PORTNAME=   crossgo32
PORTVERSION=    1.3
CATEGORIES= devel
MASTER_SITES=   ${MASTER_SITE_LOCAL} \
        ftp://sources.redhat.com/pub/crossgcc/
MASTER_SITE_SUBDIR= asami/LOCAL_PORTS
DISTNAME=   crosstree-${PORTVERSION}
DISTFILES=  ${DISTNAME}${EXTRACT_SUFX} dosrel-1.0${EXTRACT_SUFX}

MAINTAINER= ports@FreeBSD.org
COMMENT=    Cross Development Environment for 32-bit DOS

GNU_CONFIGURE=  yes
CONFIGURE_ARGS= --target=${TARGET}
USE_GMAKE=  yes
TARGET= i386-go32

MAN1=   i386-go32-ar.1 i386-go32-nm.1 i386-go32-objdump.1\
    i386-go32-ranlib.1 i386-go32-size.1 i386-go32-strings.1\
    i386-go32-strip.1 i386-go32-objcopy.1 i386-go32-nlmconv.1\
    i386-go32-g++.1 i386-go32-gcc.1 cccp.1\
    i386-go32-c++filt.1 configure.1 i386-go32-as.1 i386-go32-ld.1

DOCDIR=     ${PREFIX}/share/doc/crossgo32
GO32DIR=    ${PREFIX}/share/crossgo32

.include <bsd.port.pre.mk>

.if ${OSVERSION} >= 500113
BROKEN=         "Does not compile"
.endif

post-extract:
    ${MV} ${WRKDIR}/dosrel-1.0/ ${WRKSRC}

post-patch:
    ${CP} ${FILESDIR}/Makefile ${WRKSRC}/dosrel-1.0/

post-build:
    @cd ${WRKSRC}/dosrel-1.0 ;\
     ${MAKE} coff2exe

post-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/dosrel-1.0/coff2exe \
        ${PREFIX}/bin/i386-go32-coff2exe
.if !defined(NOPORTDOCS)
    @${ECHO_MSG} "===>  Installing documentation into ${DOCDIR}"
    ${MKDIR} ${DOCDIR}
    ${INSTALL_DATA} ${WRKSRC}/FAQ-0.8 ${DOCDIR}
    ${INSTALL_DATA} ${FILESDIR}/README.FreeBSD ${DOCDIR}
.endif
    @${ECHO_MSG} "===>  Installing DJGPP exe files into ${GO32DIR}"
    ${MKDIR} ${GO32DIR}
    ${INSTALL_DATA} ${WRKSRC}/dosrel-1.0/go32.exe ${GO32DIR}
    ${INSTALL_DATA} ${WRKSRC}/dosrel-1.0/emu387 ${GO32DIR}

.include <bsd.port.post.mk>