Update www/rubygem-rails-settings-cached-rails50 to version 0.6.6
[dports.git] / x11-toolkits / open-motif / Makefile
1 # $FreeBSD$
2
3 PORTNAME=       open-motif
4 PORTVERSION=    2.3.7
5 CATEGORIES=     x11-toolkits
6 # MASTER_SITES= SF/${PORTNAME}/Motif%202.3.4%20Source%20Code/
7 MASTER_SITES=   SF/motif/Motif%202.3.7%20Source%20Code/
8 DISTNAME=       motif-${PORTVERSION}
9
10 MAINTAINER=     cy@FreeBSD.org
11 COMMENT=        Motif X11 Toolkit (industry standard GUI (IEEE 1295))
12
13 LICENSE=        LGPL21
14 LICENSE_FILE=   ${WRKSRC}/COPYING
15
16 MAKE_JOBS_UNSAFE=       yes
17 CONFLICTS=      lesstif-[0-9]*
18
19 USES=           autoreconf gmake iconv jpeg libtool:keepla pkgconfig
20 USE_XORG=       x11 xaw xbitmaps xext xft xt xmu xrender sm ice
21 LIB_DEPENDS=    libXp.so:x11/libXp \
22                 libfontconfig.so:x11-fonts/fontconfig \
23                 libfreetype.so:print/freetype2 \
24                 libpng16.so:graphics/png
25 GNU_CONFIGURE=  yes
26 USE_LDCONFIG=   yes
27 CPPFLAGS+=      -DCSRG_BASED -DXUSE_MTSAFE_API -DXNO_MTSAFE_PWDAPI -I${PREFIX}/include
28 USE_CSTD=       gnu89
29 INSTALL_TARGET= install-strip
30
31 OPTIONS_DEFINE= DOCS
32
33 post-patch:
34 # fix sections
35         @${FIND} ${WRKSRC}/doc/man/man1 -name '*.1' -maxdepth 1 | \
36                 ${XARGS} ${REINPLACE_CMD} -e 's|user cmd|1|'
37         @${FIND} ${WRKSRC}/doc/man/man3 -name '*.3' -maxdepth 1 | \
38                 ${XARGS} ${REINPLACE_CMD} -e 's|library call|3|'
39 # mwmrc is not a kernel interface!!
40         @cd ${WRKSRC}/doc/man && ${CP} -f man4/mwmrc.4 man5/mwmrc.5
41         @${FIND} ${WRKSRC}/doc/man/man5 -name '*.5' -maxdepth 1 | \
42                 ${XARGS} ${REINPLACE_CMD} -e 's|special file|5| ; \
43                  s|file formats|5|'
44         @${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|' ${WRKSRC}/configure.ac
45
46 post-install:
47         @${MKDIR} ${STAGEDIR}${DOCSDIR}
48 .for i in BUGREPORT README RELNOTES
49         ${INSTALL_DATA} ${WRKSRC}/${i} ${STAGEDIR}${DOCSDIR}
50 .endfor
51
52 .include <bsd.port.mk>