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}
10 MAINTAINER= cy@FreeBSD.org
11 COMMENT= Motif X11 Toolkit (industry standard GUI (IEEE 1295))
14 LICENSE_FILE= ${WRKSRC}/COPYING
17 CONFLICTS= lesstif-[0-9]*
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
27 CPPFLAGS+= -DCSRG_BASED -DXUSE_MTSAFE_API -DXNO_MTSAFE_PWDAPI -I${PREFIX}/include
29 INSTALL_TARGET= install-strip
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| ; \
44 @${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|' ${WRKSRC}/configure.ac
47 @${MKDIR} ${STAGEDIR}${DOCSDIR}
48 .for i in BUGREPORT README RELNOTES
49 ${INSTALL_DATA} ${WRKSRC}/${i} ${STAGEDIR}${DOCSDIR}
52 .include <bsd.port.mk>