aboutsummaryrefslogtreecommitdiffstats
path: root/lang/harbour/Makefile
blob: 6451928ff7498cbb464edbc02b8fe01d5f8e5c51 (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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
# New ports collection makefile for:   harbour
# Date created:        9 May 2003
# Whom:                David G. Holm <harbour@netfang.net>
#
# $FreeBSD$
#

PORTNAME=      harbour
PORTVERSION=   0.43.2
PORTREVISION=  1
CATEGORIES=    lang
MASTER_SITES=  ftp://ftp.jsd0.com/public/harbour/dgh/

MAINTAINER=    harbour@netfang.net
COMMENT=       An open source Clipper-compatible compiler

WRKSRC=${WRKDIR}

USE_BISON=yes
USE_FLEX=yes
USE_GMAKE=yes
NO_INSTALL_MANPAGES=yes

LIB_DEPENDS=    slang.1:${PORTSDIR}/devel/libslang

HB_DIR=${WRKDIR}/${PORTNAME}

.include <bsd.port.pre.mk>

.if ${ARCH} != "i386"
IGNORE=     Hangs during build on !i386
.endif

.if defined(NOPORTDOCS)
post-install:
    ${INSTALL_PROGRAM} ${HB_DIR}/bin/harbour ${PREFIX}/bin
    ${INSTALL_PROGRAM} ${HB_DIR}/bin/hbdoc ${PREFIX}/bin
    ${INSTALL_PROGRAM} ${HB_DIR}/bin/hbmake ${PREFIX}/bin
    ${INSTALL_PROGRAM} ${HB_DIR}/bin/hbpp ${PREFIX}/bin
    ${INSTALL_PROGRAM} ${HB_DIR}/bin/hbrun ${PREFIX}/bin
    ${INSTALL_PROGRAM} ${HB_DIR}/bin/hbtest ${PREFIX}/bin
    ${INSTALL_DATA} ${HB_DIR}/include/hb* ${PREFIX}/include
    ${INSTALL_DATA} ${HB_DIR}/lib/*.a ${PREFIX}/lib
    .endif
    -@echo
    -@echo @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
    -@echo @
    -@echo @ Executable files are installed in ${PREFIX}/bin.
    -@echo @
    -@echo @ Header files are installed in ${PREFIX}/include.
    -@echo @
    -@echo @ Library files are installed in ${PREFIX}/lib.
    -@echo @
    -@echo @ See pkg-plist for a list of all installed files.
    -@echo @
    -@echo @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
    -@echo
.else
post-install:
    ${INSTALL_PROGRAM} ${HB_DIR}/bin/harbour ${PREFIX}/bin
    ${INSTALL_PROGRAM} ${HB_DIR}/bin/hbdoc ${PREFIX}/bin
    ${INSTALL_PROGRAM} ${HB_DIR}/bin/hbmake ${PREFIX}/bin
    ${INSTALL_PROGRAM} ${HB_DIR}/bin/hbpp ${PREFIX}/bin
    ${INSTALL_PROGRAM} ${HB_DIR}/bin/hbrun ${PREFIX}/bin
    ${INSTALL_PROGRAM} ${HB_DIR}/bin/hbtest ${PREFIX}/bin
    ${INSTALL_PROGRAM} ${HB_DIR}/bin/hbverfix ${PREFIX}/bin
    ${INSTALL_DATA} ${HB_DIR}/include/hb* ${PREFIX}/include
    ${INSTALL_DATA} ${HB_DIR}/lib/*.a ${PREFIX}/lib
    ${MKDIR} ${PREFIX}/share/doc/harbour
    ${INSTALL_MAN} ${HB_DIR}/doc/*.txt ${PREFIX}/share/doc/harbour
    ${MKDIR} ${PREFIX}/share/doc/harbour/en
    ${INSTALL_MAN} ${HB_DIR}/doc/en/*.txt ${PREFIX}/share/doc/harbour/en
    ${MKDIR} ${PREFIX}/share/doc/harbour/es
    ${INSTALL_MAN} ${HB_DIR}/doc/es/*.txt ${PREFIX}/share/doc/harbour/es
    -@echo
    -@echo @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
    -@echo @
    -@echo @ Executable files are installed in ${PREFIX}/bin.
    -@echo @
    -@echo @ Header files are installed in ${PREFIX}/include.
    -@echo @
    -@echo @ Library files are installed in ${PREFIX}/lib.
    -@echo @
    -@echo @ Documentation files are installed in ${PREFIX}/share/doc/harbour,
    -@echo @ ${PREFIX}/share/doc/harbour/en, and ${PREFIX}/share/doc/harbour/es.
    -@echo @
    -@echo @ See pkg-plist for a list of all installed files.
    -@echo @
    -@echo @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
    -@echo
.endif

.include <bsd.port.post.mk>