aboutsummaryrefslogtreecommitdiffstats
path: root/x11-wm/e16/Makefile
blob: 656c7e11e47bbfa393ccd20777052928ca367f7f (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
56
57
58
59
60
61
62
63
# Created by: Yukihiro Nakai <Nakai@Mlab.t.u-tokyo.ac.jp>
# $FreeBSD$

PORTNAME=   e16
PORTVERSION=    1.0.11.002
CATEGORIES= x11-wm enlightenment
MASTER_SITES=   SF/enlightenment/${PORTNAME}/Snapshots/

MAINTAINER= gahr@FreeBSD.org
COMMENT=    A very artistic X window manager

OPTIONS_DEFINE= SOUND
SOUND_DESC= Sound support via pulseaudio/libsndfile

USE_XORG=   compositeproto damageproto xextproto x11 xbitmaps xcomposite xdamage \
        xext xfixes xft xinerama xrandr xrender xxf86vm
USE_ICONV=  yes
USE_GETTEXT=    yes
USE_GMAKE=  yes
USE_EFL=    imlib2
USE_AUTOTOOLS=  libtool
GNU_CONFIGURE=  yes
CONFIGURE_ARGS= --disable-dependency-tracking \
        --disable-rpath --enable-mans SHELL=/bin/sh
CFLAGS+=    -g -O0

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MSOUND}
LIB_DEPENDS+=   pulse:${PORTSDIR}/audio/pulseaudio \
        sndfile:${PORTSDIR}/audio/libsndfile
CONFIGURE_ARGS+=--enable-sound \
        --enable-sound-pulse \
        --with-sndldr=sndfile
.else
CONFIGURE_ARGS+=--disable-sound \
        --with-sndldr=none
.endif

.if ${PORT_OPTIONS:MNLS}
USE_GETTEXT=    yes
PLIST_SUB+= NLS=""
.else
CONFIGURE_ARGS+=--disable-nls
PLIST_SUB+= NLS="@comment "
.endif

.if ${PORT_OPTIONS:MDOCS}
MAN1=       e16.1
CONFIGURE_ARGS+=--enable-docs=yes
.else
CONFIGURE_ARGS+=--enable-docs=no
.endif

post-patch:
.if !${PORT_OPTIONS:MDOCS}
    ${REINPLACE_CMD} -e '/^SUBDIRS/s|docs ||' \
        ${WRKSRC}/Makefile.am ${WRKSRC}/Makefile.in
.endif
    ${REINPLACE_CMD} -e 's|$$(USER)|${SHAREOWN}:${SHAREGRP}|g' \
        ${WRKSRC}/themes/Makefile.am ${WRKSRC}/themes/Makefile.in

.include <bsd.port.mk>