aboutsummaryrefslogtreecommitdiff
path: root/databases/wmjsql/Makefile
blob: d1fa68bbc4def9376f3cd7ebea55b99cfa54ceb7 (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
# New ports collection makefile for:	wmjSQL
# Date created:				04 Mar 2005
# Whom:					Alexey Dokuchaev <danfe@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=	wmjsql
PORTVERSION=	0.5
PORTREVISION=	2
CATEGORIES=	databases windowmaker
MASTER_SITES=	http://www.dockapps.org/files/42/73/ \
		http://freebsd.nsu.ru/distfiles/

MAINTAINER=	ports@FreeBSD.org
COMMENT=	MySQL server status displaying dockapp

USE_MYSQL=	yes
USE_GMAKE=	yes
USE_XORG=	xpm

ALL_TARGET=	clean all
MAKE_JOBS_UNSAFE=	yes

WRKSRC=		${WRKDIR}/${PORTNAME}/src

post-patch:
	@${REINPLACE_CMD} -e 's,^INCDIR.*$$,INCDIR = -I${PREFIX}/include/X11 \
		-I${PREFIX}/include -I${LOCALBASE}/include,' \
		-e 's,^LIBDIR.*$$,LIBDIR = -L${PREFIX}/lib \
		-L${LOCALBASE}/lib/mysql,' -e '/^CC/d; /^CFLAGS/d' \
		-e 's,-D$$(shell echo `uname -s`),,' ${WRKSRC}/Makefile \
		${WRKSRC}/jDockApp/Makefile ${WRKSRC}/xutils/Makefile
	@${REINPLACE_CMD} -E 's,\.wmjsql([^r]),\.wmjsqlrc\1,' \
		${WRKSRC}/wmjsql.jet ${WRKSRC}/../README

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin

.if !defined(NOPORTDOCS)
	@${MKDIR} ${DOCSDIR}
	${INSTALL_DATA} ${WRKSRC}/../README ${DOCSDIR}
.endif

.include <bsd.port.mk>