summaryrefslogtreecommitdiff
path: root/x11/afterstep-current/Makefile
blob: 692bd51d7cf90c6dfe6fecad440f2327aba6c8f0 (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
63
64
# $NetBSD: Makefile,v 1.16 2000/01/13 06:35:11 fredb Exp $

DISTNAME=	AfterStep-1.7.164
PKGNAME=	afterstep-1.7.165
CATEGORIES=	x11
MASTER_SITES=	ftp://ftp.afterstep.org/devel/snapshots/ \
		ftp://ftp.afterstep.org/devel/archives/1.7/ \
		ftp://ftp.digex.net/pub/X11/window-managers/afterstep/devel/snapshots/ \
		ftp://ftp.digex.net/pub/X11/window-managers/afterstep/devel/archives/1.7/
#MASTER_SITES=	ftp://ftp.afterstep.org/pub/stable/ \
#		ftp://ftp.digex.net/pub/X11/window-managers/afterstep/stable/
EXTRACT_SUFX=	.tar.bz2

PATCH_SITES=	ftp://ftp.afterstep.org/devel/patches/ \
		ftp://ftp.afterstep.org/devel/patches/contrib/ \
		ftp://ftp.afterstep.org/devel/patches/archive/ \
		ftp://ftp.digex.net/pub/X11/window-managers/afterstep/devel/patches/ \
		ftp://ftp.digex.net/pub/X11/window-managers/afterstep/devel/patches/contrib/ \
		ftp://ftp.digex.net/pub/X11/window-managers/afterstep/devel/patches/archive/
PATCHFILES=		1.7.164-01-sasha-shade_titleballoons.patch.gz
PATCH_DIST_STRIP=	-p1

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

BUILD_DEPENDS+=		autoconf:../../devel/autoconf
DEPENDS+=		asclock-1.0:../../x11/asclock
DEPENDS+=		jpeg-6b:../../graphics/jpeg
DEPENDS+=		png-1.0.3:../../graphics/png
DEPENDS+=		rplay-3.2.0b6:../../audio/rplay
DEPENDS+=		xli-1.16:../../graphics/xli
DEPENDS+=		xp-1.2b10:../../x11/xp
DEPENDS+=		xpm-3.4k:../../graphics/xpm

DIST_SUBDIR=		AfterStep
GNU_CONFIGURE=		yes
USE_GMAKE=		yes
USE_LIBTOOL=		yes
USE_X11BASE=		yes

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

MESSAGE_FILE=		${WRKDIR}/MESSAGE

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

post-configure:
	cd ${WRKSRC}; ${GMAKE} config
	${MAKE} do-configure

post-patch:
	cd ${WRKSRC}; \
	for i in `find . -name "*.man" -print` 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

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