summaryrefslogtreecommitdiff
path: root/databases/mysqlcc/Makefile
blob: 9b642db99bae84e6038148705b015ae3c83ad479 (plain)
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
# $NetBSD: Makefile,v 1.43 2013/09/17 11:35:47 obache Exp $
#

DISTNAME=		mysqlcc-1.0.2-src
PKGNAME=		${DISTNAME:S/-src//}
CATEGORIES=		databases
MASTER_SITES=		${MASTER_SITE_SOURCEFORGE:=mysqlcc/}

MAINTAINER=		pkgsrc-users@NetBSD.org
HOMEPAGE=		http://mysqlcc.sourceforge.net/
COMMENT=		MySQL Control Center
LICENSE=		gnu-gpl-v2

USE_LANGUAGES=		c c++
GNU_CONFIGURE=		YES
CONFIGURE_ARGS+=	\
	--with-mysql-lib=${BUILDLINK_PREFIX.mysql-client}/${BUILDLINK_LIBDIRS.mysql-client}
CONFIGURE_ARGS+=	\
	--with-mysql-include=${BUILDLINK_PREFIX.mysql-client}/${BUILDLINK_INCDIRS.mysql-client}

SUBST_CLASSES+=		paths
SUBST_STAGE.paths=	pre-configure
SUBST_FILES.paths=	src/CApplication.cpp
SUBST_SED.paths=	-e "s|@PREFIX@|${PREFIX}|"
SUBST_MESSAGE.paths=	Fixing paths.

INSTALLATION_DIRS=	bin share/mysqlcc/translations
SUPPORT_FILES=		error.wav information.wav syntax.txt warning.wav

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/mysqlcc ${DESTDIR}${PREFIX}/bin
.for f in ${SUPPORT_FILES}
	${INSTALL_DATA} ${WRKSRC}/${f} ${DESTDIR}${PREFIX}/share/mysqlcc
.endfor
	${INSTALL_DATA} ${WRKSRC}/translations/*.qm \
		${DESTDIR}${PREFIX}/share/mysqlcc/translations
	${INSTALL_DATA} ${WRKSRC}/translations/*.ts \
		${DESTDIR}${PREFIX}/share/mysqlcc/translations

.include "../../x11/qt3-tools/buildlink3.mk"
.include "../../mk/mysql.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"