summaryrefslogtreecommitdiff
path: root/databases/tora/Makefile
blob: 52fcf9a8c1314c984cfd951aa4040e4327c0fdc9 (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
# New ports collection makefile for:	tora
# Date created:				03 January 2002
# Whom:					anders
#
# $FreeBSD$
#

PORTNAME=	tora
PORTVERSION=	1.2.4
PORTREVISION=	1
CATEGORIES=	databases
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR=	${PORTNAME}

MAINTAINER=	anders@FreeBSD.org
COMMENT=	Toolkit for Oracle, a GUI db admin kit supporting MySQL only (for now)

LIB_DEPENDS=	mysqlclient.10:${PORTSDIR}/databases/mysql323-client

USE_GMAKE=	yes
HAS_CONFIGURE=	yes
USE_QT_VER=	2
USE_REINPLACE=	yes

QT_NONSTANDARD=	yes
CONFIGURE_ARGS+=	--with-gcc=${CC} \
			--with-qt-moc=${MOC} \
			--with-qt-uic=${X11BASE}/bin/uic \
			--with-qt-libs=${X11BASE}/lib \
			--with-qt-include=${X11BASE}/include/qt2 \
			--without-oracle \
			--with-mysql-include=${LOCALBASE}/include/mysql \
			--with-mysql-libs=${LOCALBASE}/lib/mysql

DOCS=	BUGS LICENSE NEWS README TODO

post-patch:
	${REINPLACE_CMD} -E -e \
		"s@^(my $$Libs.*)-lpthread -ldl\";\$$@\1 ${PTHREAD_LIBS}\";@; \
		s@^(CFLAGS_GLOB.*)@\1 ${CFLAGS} ${PTHREAD_CFLAGS}@" \
	${WRKSRC}/configure.pl

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/tora-mono ${PREFIX}/bin/tora
.if !defined(NOPORTDOCS)
	${INSTALL} -d -o root -g wheel -m 0755 ${DOCSDIR}
	${CP} -R ${WRKSRC}/help ${DOCSDIR}/
	${FIND} ${DOCSDIR} -type d -exec ${CHMOD} 755 {} \;
	${FIND} ${DOCSDIR} -type f -exec ${CHMOD} 644 {} \;
.for f in ${DOCS}
	${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}/
.endfor
.endif

.include <bsd.port.mk>