blob: 18e79381ae4815b7930240feb221fa92dff9d467 (
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
|
# New ports collection makefile for: mysqlcc
# Date created: 03 April 2002
# Whom: ferruccio.vitale@tin.it
#
# $FreeBSD$
#
PORTNAME= mysqlcc
PORTVERSION= 0.9.4
CATEGORIES= databases
MASTER_SITES= ftp://sunsite.dk/pub/databases/mysql/Downloads/MySQLCC/ \
http://mysql.mirrors.pair.com/Downloads/MySQLCC/ \
http://mirrors.sunsite.dk/mysql/Downloads/MySQLCC/
DISTNAME= ${PORTNAME}-${PORTVERSION}-src
MAINTAINER= ferruccio.vitale@tin.it
COMMENT= A platform-independent GUI administration client for the MySQL server
BUILD_DEPENDS= qmake:${PORTSDIR}/devel/qmake
USE_MYSQL= yes
BROKEN_WITH_MYSQL=323
USE_REINPLACE= yes
GNU_CONFIGURE= yes
USE_QT_VER= 3
CONFIGURE_ARGS+= --with-qt=${X11BASE}
DOCS= Changelog.txt README.txt TODO.txt
SHARE_DATA= error.wav warning.wav syntax.txt
post-patch:
${REINPLACE_CMD} -E -e 's@^(QMAKESPEC=)\$$QTDIR.*@\1${LOCALBASE}/share/qt/mkspecs/freebsd-g++@;s@\$$QTDIR/bin/qmake@${LOCALBASE}/bin/qmake@' ${WRKSRC}/configure
${REINPLACE_CMD} -E -e "s@(QString mydir =) QDir.*@\1 \"${DATADIR}/\";@" ${WRKSRC}/src/CApplication.cpp
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/mysqlcc ${PREFIX}/bin/
${MKDIR} -m 0755 -p ${DATADIR}/translations
.for f in ${SHARE_DATA}
${INSTALL_DATA} ${WRKSRC}/${f} ${DATADIR}/
.endfor
${INSTALL_DATA} ${WRKSRC}/translations/*.qm ${DATADIR}/translations/
${INSTALL_DATA} ${WRKSRC}/translations/*.ts ${DATADIR}/translations/
.if !defined(NOPORTDOCS)
${MKDIR} -m 0755 -p ${DOCSDIR}/plugins
.for f in ${DOCS}
${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}/
.endfor
(umask 022; ${TAR} -C ${WRKSRC}/plugins -cpf - . | ${TAR} -C ${DOCSDIR}/plugins -xpf -)
.endif
.include <bsd.port.mk>
|