summaryrefslogtreecommitdiff
path: root/x11/egtk/Makefile
blob: fdf526aa422e76a54048fc11fa0b757528d00941 (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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
# $NetBSD: Makefile,v 1.19 2004/10/03 00:18:29 tv Exp $
#

DISTNAME=	eGTK_0.3.4
PKGNAME=	egtk-0.3.4
PKGREVISION=	3
CATEGORIES=	x11
MASTER_SITES=	http://www.netlabs.net/hp/richieb/downloads/

MAINTAINER=	tech-pkg@NetBSD.org
HOMEPAGE=	http://www.netlabs.net/hp/richieb/gtk_eiffel.html
COMMENT=	Eiffel/GTK+ interface for SmallEiffel

DEPENDS+=	smalleiffel-[0-9]*:../../lang/smalleiffel

WRKSRC=		${WRKDIR}/eGTK
USE_BUILDLINK3=	yes

post-extract:
	${FIND} ${WRKSRC} -type d -name "CVS" -print | ${XARGS} ${RM} -rf
	${FIND} ${WRKSRC} -type d -name "ise" -print | ${XARGS} ${RM} -rf
	${FIND} ${WRKSRC} -type f -name "*.ace" -print | ${XARGS} ${RM} -f
	${RMDIR} ${WRKSRC}/examples/toolbar
	${RM} ${WRKSRC}/examples/Makefile
	cd ${WRKSRC}/C/se && ${MAKE_PROGRAM} ${MAKE_FLAGS} -f Makefile.se clean
	${MV} ${WRKSRC}/bin/egtkbuild ${WRKSRC}/bin/egtkbuild.in
	${MV} ${WRKSRC}/man/egtkbuild.1 ${WRKSRC}/man/egtkbuild.1.in

do-configure:
	${SED} -e "s,@PREFIX@,${PREFIX},g" \
		${WRKSRC}/bin/egtkbuild.in > ${WRKSRC}/bin/egtkbuild
	${SED} -e "s,@PREFIX@,${PREFIX},g" \
		${WRKSRC}/man/egtkbuild.1.in > ${WRKSRC}/man/egtkbuild.1
	${SED} -e "s,@PREFIX@,${PREFIX},g" \
		${FILESDIR}/loadpath.se.in > ${WRKDIR}/loadpath.se

do-build:
	cd ${WRKSRC}/C/se && ${MAKE_PROGRAM} ${MAKE_FLAGS} -f Makefile.se

do-install:
	${INSTALL_SCRIPT} ${WRKSRC}/bin/egtkbuild ${PREFIX}/bin
	${INSTALL_SCRIPT} ${WRKSRC}/man/egtkbuild.1 ${PREFIX}/man/man1
	${INSTALL_DATA} ${WRKSRC}/C/se/eif_gtk.a ${PREFIX}/lib/libegtk_se.a

	${INSTALL_DATA_DIR} ${PREFIX}/share/egtk
	cd ${WRKSRC}/lib && ${PAX} -rw * ${PREFIX}/share/egtk
	cd ${WRKSRC} && ${PAX} -rw pixmaps ${PREFIX}/share/egtk
	${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${PREFIX}/share/egtk
	${INSTALL_DATA_DIR} ${PREFIX}/share/egtk/se
	${INSTALL_DATA} ${WRKSRC}/C/se/cecil.se ${PREFIX}/share/egtk/se
	${INSTALL_DATA} ${WRKSRC}/C/se/eif_gtk_se.c ${PREFIX}/share/egtk/se

	${INSTALL_DATA_DIR} ${PREFIX}/share/examples/egtk
	cd ${WRKSRC}/examples && ${PAX} -rw * ${PREFIX}/share/examples/egtk
	${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${PREFIX}/share/examples/egtk

post-install:
	cd ${WRKSRC} && ${INSTALL_DATA} copyright forum.txt ${PREFIX}/share/egtk
	${INSTALL_DATA} ${WRKDIR}/loadpath.se ${PREFIX}/share/egtk/se

.include "../../x11/gtk/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"