summaryrefslogtreecommitdiff
path: root/x11-wm/epplets/Makefile
blob: 6ac3f7f49e71ae9edacd7096efcd300d0474ed0f (plain) (blame)
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
# New ports collection makefile for:   epplets
# Date created:        18 October 1999
# Whom:                Yukihiro Nakai <nakai@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=	epplets
PORTVERSION=	0.7
PORTREVISION=	2
CATEGORIES=	x11-wm
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR=	enlightenment

MAINTAINER=	ports@FreeBSD.org
COMMENT=	A collection of Enlightenment dock applications

BUILD_DEPENDS=	enlightenment:${PORTSDIR}/x11-wm/enlightenment
LIB_DEPENDS=	cdaudio.1:${PORTSDIR}/audio/libcdaudio \
		epplet.1:${PORTSDIR}/x11-wm/libepplet
RUN_DEPENDS=	import:${PORTSDIR}/graphics/ImageMagick \
		enlightenment:${PORTSDIR}/x11-wm/enlightenment

USE_X_PREFIX=	yes
USE_GNOME=	esound lthack
USE_GL=		yes
USE_REINPLACE=	yes
USE_GMAKE=	yes
USE_LIBTOOL_VER=13
CONFIGURE_ENV=	EROOT="${X11BASE}/share/enlightenment" \
		EBIN="${X11BASE}/bin" \
		CPPFLAGS="-I${LOCALBASE}/include ${PTHREAD_CFLAGS}" \
		LDFLAGS="-L${LOCALBASE}/lib -lintl ${PTHREAD_LIBS}"
CONFIGURE_ARGS=	--enable-fsstd

.include <bsd.port.pre.mk>

.if ${ARCH} == "i386"
APM_PROGS=	E-Power.epplet
PLIST_SUB+=	APM_PROGS=""
.else
APM_PROGS=	# none
PLIST_SUB+=	APM_PROGS="@comment "
.endif

post-extract:
	@${RM} -f ${WRKSRC}/api/epplet.h*

post-patch:
	@${FIND} ${WRKSRC} -name "Makefile.in" | ${XARGS} ${REINPLACE_CMD} -e \
		's| ../api/epplet.h||g ; \
		 s|@APM_PROGS@|${APM_PROGS}|g'
	@${REINPLACE_CMD} -e 's| api/epplet.h||g' ${WRKSRC}/configure

.include <bsd.port.post.mk>