aboutsummaryrefslogtreecommitdiffstats
path: root/databases/mysql-navigator/Makefile
blob: d6cef54754ad13f458cb2fb83a7b02aeb1ac19d7 (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
# New ports collection makefile for:    mysql-navigator
# Date created:             2 June 2000
# Whom:                 Maxim Sobolev <sobomax@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=   mysql-navigator
PORTVERSION=    1.4.2
PORTREVISION=   4
CATEGORIES= databases kde
MASTER_SITES=   ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME:S/-//}
DISTNAME=   ${PORTNAME:S/-//}-${PORTVERSION}

MAINTAINER= demon@FreeBSD.org
COMMENT=    MySQL database server administration package for KDE

PLIST_FILES=    bin/mysqlnavigator
USE_MYSQL=  yes

USE_KDELIBS_VER=3
USE_GMAKE=  yes
GNU_CONFIGURE=  yes
USE_REINPLACE=  yes
CONFIGURE_ARGS+=--with-mysql-includes=${LOCALBASE}/include/mysql \
        --with-mysql-libraries=${LOCALBASE}/lib/mysql
CONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV+= MOC="${MOC}" QTDIR="${X11BASE}"
MAKE_ENV+=  MOC="${MOC}" QTDIR="${X11BASE}"

post-patch:
    @${REINPLACE_CMD} 's#-O2#${CXXFLAGS}#g' ${WRKSRC}/configure
    @${FIND} ${WRKSRC} -name "*_moc.cpp" -exec ${RM} -f {} \;

pre-configure:
    @${REINPLACE_CMD} "s#-lqt#-lqt-mt ${PTHREAD_LIBS}#g" \
        ${WRKSRC}/src/main/Makefile.in

.include <bsd.port.mk>