aboutsummaryrefslogtreecommitdiffstats
path: root/devel/crossgo32-djgpp2-pdcurses/Makefile
blob: 28dab9b046f22fc5ea2c4bd94853243caa99cb7c (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
# New ports collection makefile for:    pdcurses
# Date created:     Sun Jun 22 16:57:39 EST 1997
# Whom:         Joel Sutton <sutton@aardvark.apana.org.au)
#
# $FreeBSD$
#

PORTNAME=   crossgo32-djgpp2-pdcurses
PORTVERSION=    2.2
CATEGORIES= devel
MASTER_SITES=   ftp://ftp.simtel.net/pub/simtelnet/gnu/djgpp/v2tk/ \
        ftp://ftp.cdrom.com/pub/simtelnet/gnu/djgpp/v2tk/
DISTNAME=   pdc22

MAINTAINER= ports@FreeBSD.org

PORTCOMMENT=    PD curses for crossgo32 crosscompiler with djgpp v2 libraries

RUN_DEPENDS=    i386-go32-stubify:${PORTSDIR}/devel/crossgo32-djgpp2

USE_ZIP=    yes
EXTRACT_BEFORE_ARGS=    -qLa

# Since were only taking the library and include files we don't
# actually need to build anything
#
WRKSRC=     ${WRKDIR}/contrib/pdcurs22
NO_BUILD=   yes

CROSSGOLIB= ${PREFIX}/i386-go32/lib
CROSSGOINCLUDE= ${PREFIX}/i386-go32/include
PDBASE=     ${WRKSRC}/contrib/pdcurs22
PDLIB=      ${WRKSRC}/lib
PDINCLUDE=  ${WRKSRC}/include
PDDOC=      ${WRKSRC}/docs
DOCDIR=     ${PREFIX}/share/doc/pdcurses

do-install:
    @${ECHO_MSG} "===>  Installing libraries"
    ${INSTALL_DATA} ${PDLIB}/libcurso.a ${CROSSGOLIB}
    ${INSTALL_DATA} ${PDLIB}/libcurso.a ${CROSSGOLIB}/libcurses.a
    ${INSTALL_DATA} ${PDLIB}/libpano.a ${CROSSGOLIB}

    @${ECHO_MSG} "===>  Installing include files"
    ${INSTALL_DATA} ${PDINCLUDE}/curses.h ${CROSSGOINCLUDE}
    ${INSTALL_DATA} ${PDINCLUDE}/cursos2.h ${CROSSGOINCLUDE}
    ${INSTALL_DATA} ${PDINCLUDE}/curspriv.h ${CROSSGOINCLUDE}
    ${INSTALL_DATA} ${PDINCLUDE}/panel.h ${CROSSGOINCLUDE}

.if !defined(NOPORTDOCS)
    @${ECHO_MSG} "===>  Installing documentation into ${DOCDIR}"
    -${MKDIR} ${DOCDIR}
    ${INSTALL_DATA} ${PDDOC}/readme.22 ${DOCDIR}/readme.txt
    ${INSTALL_DATA} ${PDDOC}/basics/intro.man ${DOCDIR}/intro.txt
    ${INSTALL_DATA} ${PDDOC}/basics/overview.man ${DOCDIR}/overview.txt
    ${INSTALL_DATA} ${PDDOC}/basics/xwindows.man ${DOCDIR}/xwindows.txt
    ${INSTALL_DATA} ${DESCR} ${DOCDIR}/README.FreeBSD
.endif

.include <bsd.port.mk>