summaryrefslogtreecommitdiff
path: root/x11/afterstep/Makefile
blob: 4143255b0c519375d63e84a8c54a942c67c5a478 (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
# $NetBSD: Makefile,v 1.4 1998/09/24 16:53:19 garbled Exp $

DISTNAME=		AfterStep-1.4.5.0
PKGNAME=		afterstep-1.450
CATEGORIES=		x11
MASTER_SITES=		ftp://ftp.afterstep.org/pub/ \
			ftp://ftp.digex.net/pub/os/wm/AfterStep/
EXTRACT_SUFX=		.tgz

MAINTAINER=		root@garbled.net
HOMEPAGE=		http://www.afterstep.org/

DEPENDS+=		xpm-3.4k:../../graphics/xpm
RUN_DEPENDS+=		asclock:../../x11/asclock

WRKSRC=			${WRKDIR}/AfterStep
USE_X11=		yes
INSTALL_TARGET=		install install.man

post-patch:
	@${MV} ${WRKSRC}/configure.h ${WRKSRC}/foo
	${SED} -e 's@###x11###@${X11BASE}@g' < ${WRKSRC}/foo > ${WRKSRC}/configure.h
	@${MV} ${WRKSRC}/afterdoc/afterstepdoc ${WRKSRC}/foo
	${SED} -e 's@###x11###@${X11BASE}@g' < ${WRKSRC}/foo > ${WRKSRC}/afterdoc/afterstepdoc
	@${RM} -f ${WRKSRC}/foo
	${TOUCH} ${WRKSRC}/apps/asload/asload.man
	${TOUCH} ${WRKSRC}/apps/asprint/asprint.man
	${TOUCH} ${WRKSRC}/modules/ASSound/ASSound.man

do-configure:
	(cd ${WRKSRC}; ./configure ;xmkmf; make Makefiles)

post-install:
	${RM} ${PREFIX}/man/man1/asload.0
	${RM} ${PREFIX}/man/man1/asprint.0
	${RM} ${PREFIX}/man/man1/ASSound.0
	chmod 664 ${PREFIX}/share/afterstep/feels/feel.paul

.include "../../mk/bsd.pkg.mk"