2005-05-11 15:08:53 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.23 2005/05/11 19:08:53 alek Exp $
|
2000-07-08 10:21:58 -04:00
|
|
|
|
2001-05-05 17:29:21 -04:00
|
|
|
COMMENT= "Motif toolkit"
|
|
|
|
COMMENT-debuglibs="Motif toolkit debug libraries"
|
|
|
|
COMMENT-demos= "Motif toolkit demos"
|
2001-01-02 19:02:55 -05:00
|
|
|
VERSION= 2.1.30
|
2001-01-21 13:36:56 -05:00
|
|
|
DISTNAME= motif
|
2001-01-02 19:02:55 -05:00
|
|
|
PATCHLEVEL= 5
|
2005-05-11 15:08:53 -04:00
|
|
|
PKGNAME= openmotif-${VERSION}.${PATCHLEVEL}p0
|
2001-05-05 17:29:21 -04:00
|
|
|
PKGNAME-demos= openmotif-demos-${VERSION}.${PATCHLEVEL}
|
|
|
|
PKGNAME-debuglibs=openmotif-debuglibs-${VERSION}.${PATCHLEVEL}
|
|
|
|
|
2000-07-08 10:21:58 -04:00
|
|
|
CATEGORIES= x11
|
2002-10-29 14:48:57 -05:00
|
|
|
|
2001-01-21 13:36:56 -05:00
|
|
|
MASTER_SITES= ftp://ftp.opengroup.org/pub/openmotif/R${VERSION}/tars/ \
|
|
|
|
ftp://openmotif.opengroup.org/pub/openmotif/R${VERSION}/tars/ \
|
|
|
|
ftp://ftp.kddlabs.co.jp/X11/openmotif/R${VERSION}/tars/
|
|
|
|
MASTER_SITES0= ftp://ftp.opengroup.org/pub/openmotif/R${VERSION}/fixes/ \
|
|
|
|
ftp://openmotif.opengroup.org/pub/openmotif/R${VERSION}/fixes/ \
|
|
|
|
ftp://ftp.kddlabs.co.jp/X11/openmotif/R${VERSION}/fixes/
|
2001-04-10 16:01:29 -04:00
|
|
|
MASTER_SITES1= http://www.opengroup.org/openmotif/license/
|
|
|
|
DISTFILES= openmotif${VERSION}.tar.gz index.html:1
|
2001-01-21 13:36:56 -05:00
|
|
|
DIST_SUBDIR= openmotif
|
2001-04-10 16:01:29 -04:00
|
|
|
EXTRACT_ONLY= openmotif${VERSION}.tar.gz
|
2001-01-21 13:36:56 -05:00
|
|
|
|
|
|
|
PATCHFILES= patch1:0 patch2:0 patch3:0 patch4:0 patch5:0
|
|
|
|
PATCH_DIST_STRIP= -p1
|
2000-07-08 10:21:58 -04:00
|
|
|
|
2000-07-08 14:19:49 -04:00
|
|
|
HOMEPAGE= http://www.opengroup.org/openmotif/
|
|
|
|
|
2000-10-23 12:08:12 -04:00
|
|
|
MAINTAINER= Sungman Cho <smcho@tsp.korea.ac.kr>
|
2000-07-08 10:21:58 -04:00
|
|
|
|
2003-10-08 13:13:14 -04:00
|
|
|
# license only available on webpage
|
|
|
|
# http://www.opengroup.org/openmotif/license
|
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
|
|
|
|
|
2001-01-02 19:02:55 -05:00
|
|
|
MULTI_PACKAGES= -demos -debuglibs
|
2001-01-21 13:36:56 -05:00
|
|
|
SUBPACKAGE?=
|
2001-01-02 19:02:55 -05:00
|
|
|
|
2001-01-21 15:06:29 -05:00
|
|
|
USE_X11= Yes
|
2001-01-21 13:36:56 -05:00
|
|
|
|
2000-07-08 10:21:58 -04:00
|
|
|
ALL_TARGET= World
|
2001-01-02 19:02:55 -05:00
|
|
|
INSTALL_TARGET= install install.man
|
2000-07-08 10:21:58 -04:00
|
|
|
|
2001-03-12 23:19:08 -05:00
|
|
|
# This dialog has been copied from the lesstif port.
|
2001-01-21 13:36:56 -05:00
|
|
|
.if defined(HAVE_MOTIF) && ${HAVE_MOTIF:L} == "yes"
|
|
|
|
IS_INTERACTIVE= Yes
|
|
|
|
|
2000-07-08 10:21:58 -04:00
|
|
|
pre-extract:
|
|
|
|
@echo "***********************************************************"
|
|
|
|
@echo "* W a r n i n g *"
|
|
|
|
@echo "* This port will overwrite your Motif installation. *"
|
|
|
|
@echo "***********************************************************"
|
|
|
|
@echo -n "Is this ok? (y/n) ==> "
|
|
|
|
@(read ans; \
|
|
|
|
case x"$$ans" in \
|
|
|
|
xy*|xY*) \
|
|
|
|
return 0; \
|
|
|
|
;; \
|
|
|
|
*) \
|
|
|
|
echo "Okay, I won't install it then...."; \
|
|
|
|
echo "(Don't worry about the following \"*** Error code 1's)"; \
|
|
|
|
return 1; \
|
|
|
|
;; \
|
|
|
|
esac)
|
|
|
|
.endif
|
|
|
|
|
|
|
|
post-patch:
|
|
|
|
# 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-08-09 21:40:40 -04:00
|
|
|
# Import from our current X installation.
|
2003-06-29 15:42:23 -04:00
|
|
|
@cp -f `ls ${X11BASE}/lib/X11/config/* | egrep -v '(Motif|bsdLib.tmpl|cde|\/site.def|host.def)'` ${WRKDIR}/motif/config/cf
|
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
|
2001-04-15 09:27:41 -04:00
|
|
|
# respect PREFIX
|
|
|
|
@cd ${WRKSRC}/config/cf && \
|
|
|
|
perl -pi -e "s|%%PREFIX%%|${PREFIX}|g" host.def Motif.tmpl config.cf
|
2000-07-08 10:21:58 -04:00
|
|
|
|
2001-04-10 16:01:29 -04:00
|
|
|
DOCS=BUGREPORT CLOSEDBUGS COPYRIGHT.MOTIF OPENBUGS README RELEASE RELNOTES
|
|
|
|
DOCDIR=${PREFIX}/share/doc/openmotif
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
@${INSTALL_DATA_DIR} ${DOCDIR}
|
|
|
|
@${INSTALL_DATA} ${FULLDISTDIR}/index.html ${DOCDIR}/LICENSE.html
|
|
|
|
@for i in ${DOCS}; do ${INSTALL_DATA} ${WRKSRC}/$$i ${DOCDIR}; done
|
|
|
|
@${INSTALL_DATA} ${FILESDIR}/README.OpenBSD ${DOCDIR}
|
|
|
|
|
2004-12-19 10:06:23 -05:00
|
|
|
.if ${SUBPACKAGE} == "-demos"
|
|
|
|
LIB_DEPENDS+= Xm.2.1,Uil.2.1,Mrm.2.1::x11/openmotif
|
|
|
|
.endif
|
|
|
|
.if ${SUBPACKAGE} == "-debuglibs"
|
|
|
|
RUN_DEPENDS+= ::x11/openmotif
|
|
|
|
.else
|
|
|
|
WANTLIB= ICE SM X11 Xext Xp Xt c m
|
2001-03-12 23:19:08 -05:00
|
|
|
.endif
|
2001-05-05 17:29:21 -04:00
|
|
|
|
2002-10-29 14:48:57 -05:00
|
|
|
# XXX Large, complicated, only partially automated test suite available
|
|
|
|
NO_REGRESS= Yes
|
|
|
|
|
2001-05-05 17:29:21 -04:00
|
|
|
.include <bsd.port.mk>
|