blob: 7cb36db1f7b22e355d6ec5c6cf0eeb5959b0c991 (
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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
|
# Created by: David G. Holm <harbour@netfang.net>
# $FreeBSD$
PORTNAME= harbour
PORTVERSION= 3.0.0
PORTREVISION= 2
CATEGORIES= lang
MASTER_SITES= SF/${PORTNAME}-project/source/${PORTVERSION}
MAINTAINER= m.tsatsenko@gmail.com
COMMENT= An open source Clipper-compatible compiler
LIB_DEPENDS= libslang.so:${PORTSDIR}/devel/libslang2\
libpcre.so:${PORTSDIR}/devel/pcre
BUILD_DEPENDS= bash:${PORTSDIR}/shells/bash
RUN_DEPENDS:= ${BUILD_DEPENDS}
OPTIONS_DEFINE= MYSQL SQLITE FIREBIRD PGSQL
NOT_FOR_ARCHS= sparc64
NOT_FOR_ARCHS_REASON= does not compile on sparc64: assertion failed
PORTDOCS= *.txt *.hbd NEWS INSTALL TODO COPYING ChangeLog
USES= bison gmake
USE_OPENSSL= yes
USE_LDCONFIG= ${LOCALBASE}/lib/harbour
HB_WITH_ALLEGRO= no
HB_WITH_CAIRO= no
HB_WITH_CUPS= no
HB_WITH_CURL= no
HB_WITH_EXPAT= local
HB_WITH_FREEIMAGE= no
HB_WITH_GD= no
HB_WITH_GS= no
HB_WITH_JPEG= no
HB_WITH_LIBMAGIC= no
HB_WITH_MXML= no
HB_WITH_ODBC= no
HB_WITH_PCRE= nolocal
HB_WITH_PNG= no
HB_WITH_QT= no
HB_WITH_SLANG= nolocal
HB_WITH_X11= no
HB_ARCH= bsd
HB_GT_LIB= gtsln
HB_INSTALL_PREFIX= ${STAGEDIR}/${LOCALBASE}
HB_INSTALL_BIN= ${STAGEDIR}${LOCALBASE}/bin
HB_INSTALL_LIB= ${STAGEDIR}${LOCALBASE}/lib/harbour
HB_INSTALL_INC= ${STAGEDIR}${LOCALBASE}/include/harbour
HB_INSTALL_DOC= ${STAGEDIR}${DOCSDIR}
HB_USER_CFLAGS= -fPIC
HB_USER_LDFLAGS= -L${LOCALBASE}/lib
MAKE_ENV= HB_ARCHITECTURE=${HB_ARCH} \
HB_COMPILER=${HB_COMPILER} \
HB_GT_LIB=${HB_GT_LIB} \
HB_INSTALL_PREFIX=${HB_INSTALL_PREFIX} \
HB_INSTALL_BIN=${HB_INSTALL_BIN} \
HB_INSTALL_LIB=${HB_INSTALL_LIB} \
HB_INSTALL_INC=${HB_INSTALL_INC} \
HB_WITH_ALLEGRO=${HB_WITH_ALLEGRO} \
HB_WITH_CAIRO=${HB_WITH_CAIRO} \
HB_WITH_CUPS=${HB_WITH_CUPS} \
HB_WITH_CURL=${HB_WITH_CURL} \
HB_WITH_EXPAT=${HB_WITH_EXPAT} \
HB_WITH_FREEIMAGE=${HB_WITH_FREEIMAGE} \
HB_WITH_GD=${HB_WITH_GD} \
HB_WITH_GS=${HB_WITH_GS} \
HB_WITH_JPEG=${HB_WITH_JPEG} \
HB_WITH_LIBMAGIC=${HB_WITH_LIBMAGIC} \
HB_WITH_MXML=${HB_WITH_MXML} \
HB_WITH_ODBC=${HB_WITH_ODBC} \
HB_WITH_PCRE=${HB_WITH_PCRE} \
HB_WITH_QT=${HB_WITH_QT} \
HB_WITH_SLANG=${HB_WITH_SLANG} \
HB_WITH_X11=${HB_WITH_X11} \
HB_USER_CFLAGS=${HB_USER_CFLAGS} \
HB_USER_LDFLAGS=${HB_USER_LDFLAGS}
.include <bsd.port.pre.mk>
.if ${OSVERSION} < 900033
HB_COMPILER= gcc
.else
HB_COMPILER= clang
.endif
.if ${PORT_OPTIONS:MDOCS}
MAKE_ENV+= HB_INSTALL_DOC=${HB_INSTALL_DOC}
.else
MAKE_ENV+= HB_INSTALL_DOC=no
.endif
.if ${PORT_OPTIONS:MFIREBIRD}
USE_FIREBIRD= yes
MAKE_ENV+= HB_WITH_FIREBIRD=nolocal
.else
MAKE_ENV+= HB_WITH_FIREBIRD=no
.endif
.if ${PORT_OPTIONS:MSQLITE}
LIB_DEPENDS+= libsqlite3.so:${PORTSDIR}/databases/sqlite3
MAKE_ENV+= HB_WITH_SQLITE3=nolocal
PLIST_SUB+= SQLITE=""
.else
MAKE_ENV+= HB_WITH_SQLITE3=no
PLIST_SUB+= SQLITE="@comment "
.endif
.if ${PORT_OPTIONS:MMYSQL}
USE_MYSQL= yes
MAKE_ENV+= HB_WITH_MYSQL=nolocal
.else
MAKE_ENV+= HB_WITH_MYSQL=no
.endif
.if ${PORT_OPTIONS:MPGSQL}
USE_PGSQL= yes
MAKE_ENV+= HB_WITH_PGSQL=nolocal
.else
MAKE_ENV+= HB_WITH_PGSQL=no
.endif
post-patch:
.if ${OSVERSION} > 900007
${REINPLACE_CMD} \
-e 's|utmp.h|utmpx.h|g' ${WRKSRC}/src/rtl/gtcrs/gtcrs.h
.endif
.include <bsd.port.post.mk>
|