summaryrefslogtreecommitdiff
path: root/x11/afterstep/Makefile
blob: c2d255ed640af7c651675bb81d6db0441cf10b64 (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
# $NetBSD: Makefile,v 1.21 2000/06/01 11:23:43 rh Exp $

DISTNAME=	AfterStep-1.8.0
PKGNAME=	afterstep-1.8.0
CATEGORIES=	x11
MASTER_SITES=	ftp://ftp.afterstep.org/stable/ \
		ftp://ftp.digex.net/pub/X11/window-managers/afterstep/AfterStep/stable/
EXTRACT_SUFX=	.tar.bz2

MAINTAINER=		fb@enteract.com
HOMEPAGE=		http://www.afterstep.org/

BUILD_DEPENDS+=		autoconf:../../devel/autoconf
DEPENDS+=		jpeg>=6b:../../graphics/jpeg
DEPENDS+=		png>=1.0.6:../../graphics/png
DEPENDS+=		rplay>=3.2.0b6:../../audio/rplay
DEPENDS+=		xpm-3.4k:../../graphics/xpm
DEPENDS+=		asclock-*:../../x11/asclock
DEPENDS+=		xp-*:../../x11/xp

GNU_CONFIGURE=		yes
USE_PKGLIBTOOL=		yes
USE_PERL=		yes
USE_X11=		yes

CONFIGURE_ARGS+=	--disable-staticlibs
CONFIGURE_ARGS+=	--with-helpcommand="xpman"
CONFIGURE_ARGS+=	--with-jpeg-includes=${LOCALBASE}/include
CONFIGURE_ARGS+=	--with-jpeg-lib=${LOCALBASE}/lib
CONFIGURE_ARGS+=	--with-png-includes=${LOCALBASE}/include
CONFIGURE_ARGS+=	--with-png-lib=${LOCALBASE}/lib
CONFIGURE_ENV+=		LOCALBASE=${LOCALBASE}

MESSAGE_FILE=		${WRKDIR}/MESSAGE

post-patch:
	for i in `${FIND} ${WRKSRC} -name "*.man" -print` \
		${WRKSRC}/autoconf/Makefile.common.in; do \
	  ${MV} $$i $$i.orig ;\
	  ${SED} -e 's|/usr/local/|${PREFIX}/|g' -e 's|1x|1|g' < $$i.orig > $$i ; \
	done

pre-configure:
	cd ${WRKSRC} && \
	  autoconf --localdir=autoconf autoconf/configure.in > configure; \
	  ${CHMOD} 755 configure; \
	  autoheader --localdir=autoconf autoconf/configure.in > autoconf/config.h.in;

post-build:
	${SED} 's|@PREFIX@|${PREFIX}|g' < ${PKGDIR}/MESSAGE > ${MESSAGE_FILE}

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