ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/mports/trunk/x11-wm/icewm/Makefile
Revision: 9019
Committed: Sat Jan 2 00:41:25 2010 UTC (14 years, 4 months ago) by laffer1
File size: 3434 byte(s)
Log Message:
1.2.37

File Contents

# User Rev Content
1 laffer1 4424 # New ports collection makefile for: icewm
2     # Date created: 10 August 1997
3     # Whom: Yukihiro Nakai <Nakai@Mlab.t.u-tokyo.ac.jp>
4     #
5 laffer1 9019 # $MidnightBSD: mports/x11-wm/icewm/Makefile,v 1.3 2008/08/19 18:04:37 laffer1 Exp $
6 laffer1 4424 # $FreeBSD: ports/x11-wm/icewm/Makefile,v 1.134 2008/03/23 11:11:23 miwi Exp $
7     #
8    
9     PORTNAME= icewm
10 laffer1 9019 PORTVERSION= 1.2.37
11 laffer1 4424 CATEGORIES= x11-wm
12 laffer1 9019 MASTER_SITES= SF/${PORTNAME}/${PORTNAME}-stable/${PORTVERSION}
13 laffer1 4424
14     MAINTAINER= ports@MidnightBSD.org
15     COMMENT= Window Manager designed for speed, usability and consistency
16     LICENSE= lgpl
17    
18 laffer1 5909 USE_XORG= x11 ice xinerama xext xrandr
19 laffer1 4424 WANT_GNOME= yes
20     USE_GNOME= gnometarget
21     USE_GMAKE= yes
22     GNU_CONFIGURE= yes
23     CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" LDFLAGS="-L${LOCALBASE}/lib"
24     CONFIGURE_ARGS= --enable-shaped-decorations \
25     --enable-guievents \
26     --with-cfgdir=${DATADIR} \
27     --with-libdir=${DATADIR} \
28     --with-kdedatadir=${LOCALBASE}/share \
29     --with-docdir=${PREFIX}/share/doc \
30     --with-mkfontdir=${NONEXISTENT}
31    
32     OPTIONS= GNOMEDESKTOP "Enable GNOME desktop support" off \
33     IMLIB "Build with Imlib support" on \
34     ESOUND "Enable EsounD daemon support" off \
35     XFT "Enable Xft support for fonts" on \
36     XINERAMA "Enable Xinerama support" on \
37     X86_ASM "Use optimized x86 assembly code" on \
38     BEASTIE "Use Beastie'fied startup button" off \
39     NLS "Enable National Language Support" on
40    
41     # Restrict to stable (even) versions, indicated by the second component.
42     PORTSCOUT= limitw:1,even
43    
44     .include <bsd.port.pre.mk>
45    
46     .if defined(WITH_GNOMEDESKTOP)
47     USE_GNOME+= gnomedesktop
48     CONFIGURE_ARGS+=--enable-menus-gnome2
49     INSTALL_TARGET= install install-gnome
50     PLIST_SUB+= GNOMEDESKTOP=""
51     .else
52     PLIST_SUB+= GNOMEDESKTOP="@comment "
53     .endif
54    
55     .if !defined(WITHOUT_IMLIB)
56     USE_GNOME+= imlib
57     CONFIGURE_ARGS+=--with-imlib
58     .else
59     USE_XORG= xpm
60     CONFIGURE_ARGS+=--without-imlib
61     .endif
62    
63     .if defined(WITH_ESOUND)
64     USE_GNOME+= esound
65     CONFIGURE_ARGS+=--with-icesound=esound
66     .else
67     CONFIGURE_ARGS+=--with-icesound=oss
68     .endif
69    
70     .if !defined(WITHOUT_XFT)
71     LIB_DEPENDS+= Xft.2:${PORTSDIR}/x11-fonts/libXft
72     CONFIGURE_ARGS+=--enable-gradients
73     .else
74     CONFIGURE_ARGS+=--enable-corefonts --disable-xfreetype
75     .endif
76    
77     .if defined(WITHOUT_XINERAMA)
78     CONFIGURE_ARGS+=--disable-xinerama
79     .endif
80    
81     .if ${ARCH} != "i386" || defined(WITHOUT_X86_ASM)
82     CONFIGURE_ARGS+=--disable-x86-asm
83     .endif
84    
85     .if defined(WITH_BEASTIE)
86     STARTUP_PIXMAP= ${DATADIR}/taskbar/bsd-daemon.xpm
87     .else
88     STARTUP_PIXMAP= icewm-logo.xpm
89     .endif
90    
91     .if !defined(WITHOUT_NLS)
92     USE_GETTEXT= yes
93     PLIST_SUB+= NLS=""
94     .else
95     CONFIGURE_ARGS+=--disable-nls --disable-i18n
96     PLIST_SUB+= NLS="@comment "
97     .endif
98    
99     post-extract:
100     .for dir in taskbar themes/Infadel2/taskbar
101     @cd ${WRKSRC}/lib/${dir} && ${MV} start.xpm icewm-logo.xpm
102     .endfor
103     @${CP} -f ${FILESDIR}/bsd-daemon.xpm ${WRKSRC}/lib/taskbar
104    
105     post-patch:
106     @${REINPLACE_CMD} -e '/test/s|==|=|g' ${WRKSRC}/configure
107     @${REINPLACE_CMD} -e \
108     's|/usr/share/control|${LOCALBASE}/share/control|g ; \
109     s|/usr/share/app|${LOCALBASE}/share/app|g ; \
110     s|/usr/share/gnome|${LOCALBASE}/share/gnome|g' \
111     ${WRKSRC}/src/gnome2.cc
112    
113     post-install:
114     .for dir in taskbar themes/Infadel2/taskbar
115     @${LN} -sf ${STARTUP_PIXMAP} ${DATADIR}/${dir}/start.xpm
116     .endfor
117     .if !defined(NOPORTDOCS)
118     ${MKDIR} ${DOCSDIR}
119     . for f in CHANGES INSTALL README TODO
120     ${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}
121     . endfor
122     ${INSTALL_DATA} ${WRKSRC}/doc/*.html ${DOCSDIR}
123     .endif
124     @${ECHO_CMD}; ${CAT} ${PKGMESSAGE}; ${ECHO_CMD}
125    
126     .include <bsd.port.post.mk>

Properties

Name Value
cvs2svn:cvs-rev 1.4