2010-02-17 13:15:09 -05:00
|
|
|
# $OpenBSD: Makefile,v 1.40 2010/02/17 18:15:09 jasper Exp $
|
2007-07-18 17:41:05 -04:00
|
|
|
|
|
|
|
COMMENT-main= Motif toolkit
|
|
|
|
COMMENT-demos= Motif toolkit demos
|
|
|
|
|
2009-12-14 13:03:36 -05:00
|
|
|
VERSION= 2.3.2
|
2007-07-18 17:41:05 -04:00
|
|
|
DISTNAME= openmotif-${VERSION}
|
2010-02-17 13:15:09 -05:00
|
|
|
PKGNAME-main= openmotif-${VERSION}p1
|
2009-12-14 16:51:52 -05:00
|
|
|
PKGNAME-demos= openmotif-demos-${VERSION}p0
|
2007-07-18 17:41:05 -04:00
|
|
|
|
2009-12-14 13:03:36 -05:00
|
|
|
SHARED_LIBS= Mrm 4.1 \
|
|
|
|
Uil 4.1 \
|
|
|
|
Xm 5.0
|
2007-07-18 17:41:05 -04:00
|
|
|
|
|
|
|
CATEGORIES= x11
|
2009-12-14 13:03:36 -05:00
|
|
|
#MASTER_SITES= ftp://ftp.ics.com/openmotif/2.3/${VERSION}/
|
|
|
|
MASTER_SITES= http://www.phil.uu.nl/~lievisse/distfiles/ \
|
|
|
|
ftp://ftp.openbsd.org/pub/OpenBSD/distfiles/openmotif/
|
2007-07-18 17:41:05 -04:00
|
|
|
DIST_SUBDIR= openmotif
|
|
|
|
|
|
|
|
HOMEPAGE= http://www.opengroup.org/openmotif/
|
|
|
|
|
2001-04-10 16:01:29 -04:00
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
2000-07-08 10:21:58 -04:00
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
|
2007-07-18 17:41:05 -04:00
|
|
|
MULTI_PACKAGES= -demos -main
|
|
|
|
|
|
|
|
USE_X11= Yes
|
|
|
|
CONFIGURE_STYLE= gnu
|
|
|
|
CONFIGURE_ARGS= --enable-themes \
|
2009-12-14 16:51:52 -05:00
|
|
|
--enable-xft \
|
|
|
|
--enable-jpg \
|
|
|
|
--enable-png
|
|
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include -I${LOCALBASE}/include/libpng" \
|
|
|
|
LDFLAGS="-L${LOCALBASE}/lib -lm"
|
2007-07-18 17:41:05 -04:00
|
|
|
|
|
|
|
USE_LIBTOOL= Yes
|
|
|
|
|
|
|
|
MAKE_FLAGS= SOMRMREV=${LIBMrm_VERSION} \
|
|
|
|
SOUILREV=${LIBUil_VERSION} \
|
|
|
|
SOXMREV=${LIBXm_VERSION}
|
2009-12-14 13:03:36 -05:00
|
|
|
FAKE_FLAGS+= bindir=${PREFIX}/bin/
|
|
|
|
|
|
|
|
MODULES= converters/libiconv
|
|
|
|
|
2009-12-14 16:51:52 -05:00
|
|
|
LIB_DEPENDS= jpeg::graphics/jpeg \
|
|
|
|
png::graphics/png
|
2009-12-14 13:03:36 -05:00
|
|
|
LIB_DEPENDS-demos= Xm.>=4.0,Mrm.>=4.0::x11/openmotif \
|
2009-12-14 16:51:52 -05:00
|
|
|
${MODLIBICONV_LIB_DEPENDS} \
|
|
|
|
${LIB_DEPENDS}
|
2009-12-14 13:03:36 -05:00
|
|
|
WANTLIB= ICE SM X11 Xext Xp Xt c Xau Xdmcp Xft Xrender \
|
2009-12-14 16:51:52 -05:00
|
|
|
expat fontconfig freetype m z pthread-stubs xcb
|
|
|
|
WANTLIB-demos= ${WANTLIB}
|
2009-12-14 13:03:36 -05:00
|
|
|
|
|
|
|
# XXX Large, complicated, only partially automated test suite available
|
|
|
|
NO_REGRESS= Yes
|
2000-07-08 10:21:58 -04:00
|
|
|
|
2006-02-07 23:54:48 -05:00
|
|
|
pre-configure:
|
2000-07-08 10:21:58 -04:00
|
|
|
# fix sections
|
2000-07-08 14:11:23 -04:00
|
|
|
@cd ${WRKSRC}/doc/man/man1 && perl -pi -e "s|user cmd|1|" *.1
|
|
|
|
@cd ${WRKSRC}/doc/man/man3 && perl -pi -e "s|library call|3|" *.3
|
2000-07-08 10:21:58 -04:00
|
|
|
# mwmrc is not a kernel interface!!
|
2001-01-02 19:02:55 -05:00
|
|
|
@cd ${WRKSRC}/doc/man/man4 && perl -pi -e "s|special file|5|" *.4
|
2000-07-08 14:11:23 -04:00
|
|
|
@cd ${WRKSRC}/doc/man/man5 && perl -pi -e "s|file formats|5|" *.5
|
2000-07-08 10:21:58 -04:00
|
|
|
@mkdir -p ${WRKSRC}/imports/x11
|
2000-07-08 14:11:23 -04:00
|
|
|
@cd ${WRKSRC}/imports/x11 && for i in bin include lib ; do \
|
2000-07-08 10:21:58 -04:00
|
|
|
if [ -f $$i ] ; then rm $$i; fi; \
|
|
|
|
ln -s ${X11BASE}/$$i $$i; \
|
2000-07-08 14:11:23 -04:00
|
|
|
done
|
2009-12-14 13:03:36 -05:00
|
|
|
|
|
|
|
${SUBST_CMD} ${WRKSRC}/config/cf/host.def \
|
|
|
|
${WRKSRC}/config/cf/Motif.tmpl \
|
|
|
|
${WRKSRC}/lib/Xm/Makefile.in
|
2000-07-08 10:21:58 -04:00
|
|
|
|
2007-07-18 17:41:05 -04:00
|
|
|
DOCS=BUGREPORT COPYRIGHT.MOTIF LICENSE README RELEASE RELNOTES TODO
|
2001-04-10 16:01:29 -04:00
|
|
|
DOCDIR=${PREFIX}/share/doc/openmotif
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
@${INSTALL_DATA_DIR} ${DOCDIR}
|
|
|
|
@for i in ${DOCS}; do ${INSTALL_DATA} ${WRKSRC}/$$i ${DOCDIR}; done
|
|
|
|
@${INSTALL_DATA} ${FILESDIR}/README.OpenBSD ${DOCDIR}
|
2007-07-18 17:41:05 -04:00
|
|
|
@${INSTALL_DATA_DIR} ${PREFIX}/lib/X11/config
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/config/cf/Motif.rules \
|
|
|
|
${PREFIX}/lib/X11/config/Motif.rules
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/config/cf/Motif.tmpl \
|
|
|
|
${PREFIX}/lib/X11/config/Motif.tmpl
|
|
|
|
|
2001-05-05 17:29:21 -04:00
|
|
|
.include <bsd.port.mk>
|