blob: 255c11dc7ddac6c5871eebebc1189f84f3c01d61 (
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
56
|
# Created by: Alexey Dokuchaev <danfe@FreeBSD.org>
# $FreeBSD$
PORTNAME= wmjsql
PORTVERSION= 0.5
PORTREVISION= 2
CATEGORIES= databases windowmaker
MASTER_SITES= http://freebsd.nsu.ru/distfiles/
MAINTAINER= ports@FreeBSD.org
COMMENT= MySQL server status displaying dockapp
LICENSE= GPLv2+
LICENSE_FILE= ${WRKSRC}/COPYING
USES= gmake
USE_MYSQL= yes
USE_XORG= xpm
ALL_TARGET= clean all
MAKE_JOBS_UNSAFE= yes
WRKSRC= ${WRKDIR}/${PORTNAME}
BUILD_WRKSRC= ${WRKSRC}/src
CPPFLAGS+= -I${LOCALBASE}/include/X11 -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib/mysql -L${LOCALBASE}/lib
PORTDOCS= README
PLIST_FILES= bin/${PORTNAME}
OPTIONS_DEFINE= DOCS
post-patch:
.for i in Makefile jDockApp/Makefile xutils/Makefile
@${REINPLACE_CMD} -e \
'/^INCDIR/s|=.*|= $${CPPFLAGS}| ; \
/^LIBDIR/s|=.*|= $${LDFLAGS}| ; \
/^CC/d ; \
/^CFLAGS/d ; \
s| make | $$(MAKE) | ; \
s|-D$$(shell echo `uname -s`)||' ${BUILD_WRKSRC}/${i}
.endfor
.for i in wmjsql.jet ../README
@${REINPLACE_CMD} -E 's|\.wmjsql([^r])|\.wmjsqlrc\1|' \
${BUILD_WRKSRC}/${i}
.endfor
do-install:
${INSTALL_PROGRAM} ${BUILD_WRKSRC}/${PORTNAME} \
${STAGEDIR}${PREFIX}/bin
do-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>
|