summaryrefslogtreecommitdiff
path: root/x11/afterstep-current/Makefile
blob: d57bfa78d970a37193ddb5b5cd9865e94e597f21 (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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
# $NetBSD: Makefile,v 1.15 1999/11/14 20:19:03 fredb Exp $

DISTNAME=		AfterStep-1.7.142
PKGNAME=		afterstep-1.7.157
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.142-01-sasha-png_jpg_warnings.patch.gz \
		1.7.142-02-tildouf-wharf_transient_and_Audio_fix.patch.gz \
		1.7.142-03-allanon-icons_and_wharf.patch.gz \
		1.7.142-04-allanon-desk_and_shaped_icons_and_wharf_reswallow.patch.gz \
		1.7.142-05-allanon-desks_and_wharf.patch.gz \
		1.7.142-06-sasha-menus_and_more.patch.gz \
		1.7.142-07-sasha-winfunctions_scroll.patch.gz \
		1.7.142-08-sasha-functions-gamma-etc.patch.gz \
		1.7.142-09-sasha-borders_myframes_more.patch.gz \
		1.7.142-10-allanon-avoidcover.patch.gz \
		1.7.142-11-sasha-icons_shade_gamma.patch.gz \
		1.7.142-12-allanon-window_position_and_shaping.patch.gz \
		1.7.142-13-sasha-titlebuttons_mapping.patch.gz \
		1.7.142-14-allanon-randomplacement_and_texturedhandle_and_shaped_windows.patch.gz \
		1.7.142-15-allanon-disappearing_windows.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"