aboutsummaryrefslogtreecommitdiffstats
path: root/databases/firebird-client/Makefile
blob: ea2bd5277fb1a5cdd6700ed666b6f0838b6f21d2 (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:    Firebird
# Date created:     20 December 2000
# Whom:         Geoffrey C. Speicher <geoff@sea-incorporated.com>
#
# $FreeBSD$
#

PORTNAME=   firebird
PORTVERSION=    1.5.r7
CATEGORIES= databases
MASTER_SITES=   http://www.aims.net.au/chris/firebird/
MASTER_SITE_SUBDIR=firebird
DISTNAME=   firebird15-rc7

MAINTAINER= chris@e-easy.com.au
COMMENT=    The open-source InterBase(tm) 6.0 spin-off (Classic version)

USE_BZIP2=  yes
USE_GMAKE=  yes
USE_LIBTOOL=    yes
GNU_CONFIGURE=  yes
WANT_AUTOCONF_VER=  253
USE_GCC=    3.3

# Don't use ld for linking, use gcc
LD= gcc

CONFLICTS=  firebird-devel-*
NOPACKAGE=  pkg-install not finished

WRKSRC=     ${WRKDIR}/firebird15
INSTALLS_SHLIB= yes
LDCONFIG_DIRS=  %%PREFIX%%/firebird/lib
MSG_FILE=   ${PKGDIR}/pkg-message
PKGMESSAGE= ${WRKDIR}/pkg-message
USE_REINPLACE=  yes

ONLY_FOR_ARCHS= i386

.include <bsd.port.pre.mk>

pre-everything::
    @${ECHO_MSG} "NOTE: If the work directory is on an NFS mount, you will"
    @${ECHO_MSG} "require NFS client locking support for the build to"
    @${ECHO_MSG} "succeed. Currently this is only available on FreeBSD 5.0"
    @${ECHO_MSG} "or greater."
    @${ECHO_MSG}
    @${ECHO_MSG} "WARNING: The on-disk structure of the databases has"
    @${ECHO_MSG} "changed since version 1.0.x."
    @${ECHO_MSG} "Cancel this installation now and backup your databases"
    @${ECHO_MSG} "if you have not already done so."
.if !defined(BATCH)
    @sleep 10
.endif

patch-libtool:
    @${DO_NADA}

do-configure:
    @(cd ${WRKSRC} && ${ENV} CC=${CC} CXX=${CXX} MAKE=${GMAKE} ./autogen.sh --prefix=${PREFIX}/firebird --with-lock-manager --with-editline)

do-build:
    @(                              \
    ${SED} 's|%%PREFIX%%|${PREFIX}|g' ${MSG_FILE} > ${PKGMESSAGE};  \
    cd ${WRKSRC};                           \
    ${ENV} CC=${CC} CXX=${CXX} ${GMAKE} all;            \
    )

.include <bsd.port.post.mk>