1999-11-12 08:51:21 -05:00
|
|
|
# $OpenBSD: Makefile,v 1.31 1999/11/12 13:51:21 brad Exp $
|
1999-03-20 23:04:24 -05:00
|
|
|
# $FreeBSD: Makefile,v 1.17 1998/03/28 14:12:55 steve Exp $
|
1997-12-02 23:05:23 -05:00
|
|
|
|
1999-09-13 17:28:37 -04:00
|
|
|
DISTNAME= lesstif-0.89.0
|
1997-12-02 23:05:23 -05:00
|
|
|
CATEGORIES= x11
|
1999-11-12 08:51:21 -05:00
|
|
|
MASTER_SITES= ftp://ftp.lesstif.org/pub/hungry/lesstif/srcdist/obsolete/ \
|
|
|
|
ftp://ftp.hungry.com/pub/hungry/lesstif/srcdist/obsolete/ \
|
|
|
|
ftp://linux.mathematik.tu-darmstadt.de/pub/linux/mirrors/misc/lesstif/srcdist/obsolete/
|
1997-12-02 23:05:23 -05:00
|
|
|
|
1999-03-01 23:41:00 -05:00
|
|
|
NEED_VERSION= 1.73
|
1999-02-20 23:26:09 -05:00
|
|
|
|
1999-03-20 23:04:24 -05:00
|
|
|
MAINTAINER= brad@openbsd.org
|
1997-12-02 23:05:23 -05:00
|
|
|
|
|
|
|
USE_X11= yes
|
1999-06-14 02:23:23 -04:00
|
|
|
SEPARATE_BUILD= concurrent
|
1999-03-20 23:04:24 -05:00
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
CONFIGURE_ARGS+= ${CONFIGURE_SHARED}
|
1999-07-17 00:42:21 -04:00
|
|
|
CONFIGURE_ARGS+= --enable-static --enable-production --enable-build-12 \
|
|
|
|
--disable-build-20 --disable-debug --with-editres
|
1998-06-23 19:11:10 -04:00
|
|
|
|
1999-09-13 17:28:37 -04:00
|
|
|
STATIC_LIBS= libMrm.a libXm.a
|
|
|
|
SHARED_LIBS= libMrm.so.1.2 libXm.so.1.2
|
|
|
|
|
1997-12-02 23:05:23 -05:00
|
|
|
.if defined(HAVE_MOTIF)
|
|
|
|
IS_INTERACTIVE= yes
|
1998-06-02 16:51:48 -04:00
|
|
|
pre-install:
|
1998-05-06 02:05:05 -04:00
|
|
|
@${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) ==> "
|
1997-12-02 23:05:23 -05:00
|
|
|
@(read ans; \
|
|
|
|
case x"$$ans" in \
|
|
|
|
xy*|xY*) \
|
|
|
|
return 0; \
|
|
|
|
;; \
|
|
|
|
*) \
|
1998-05-06 02:05:05 -04:00
|
|
|
${ECHO} "Okay, I won't install it then...."; \
|
|
|
|
${ECHO} "(Don't worry about the following \"*** Error code 1\"s)"; \
|
1997-12-02 23:05:23 -05:00
|
|
|
return 1; \
|
|
|
|
;; \
|
|
|
|
esac)
|
|
|
|
.endif
|
|
|
|
|
1999-06-22 20:09:23 -04:00
|
|
|
# link the 1.2 motif libraries from $(prefix)/LessTif/Motif1.2/lib
|
|
|
|
# to $(prefix)/lib (where OpenBSD looks for them) and then run
|
|
|
|
# ldconfig to update the library cache
|
1999-09-13 17:28:37 -04:00
|
|
|
|
1999-06-22 20:09:23 -04:00
|
|
|
post-install:
|
1999-07-01 18:06:31 -04:00
|
|
|
@${RM} -f ${PREFIX}/lib/libMrm.so
|
|
|
|
@${RM} -f ${PREFIX}/lib/libXm.so
|
1999-06-24 07:03:07 -04:00
|
|
|
.for lib in ${STATIC_LIBS}
|
1999-07-01 18:06:31 -04:00
|
|
|
@${LN} -sf ${PREFIX}/LessTif/Motif1.2/lib/${lib} ${PREFIX}/lib
|
1999-06-24 07:03:07 -04:00
|
|
|
.endfor
|
|
|
|
.for lib in ${SHARED_LIBS}
|
1999-06-24 14:14:03 -04:00
|
|
|
@if [ "x${NO_SHARED_LIBS}" = "x" ]; then \
|
|
|
|
${LN} -sf ${PREFIX}/LessTif/Motif1.2/lib/${lib} ${PREFIX}/lib; \
|
|
|
|
fi
|
1999-06-22 20:09:23 -04:00
|
|
|
.endfor
|
1999-07-01 18:06:31 -04:00
|
|
|
@${LDCONFIG} -m ${PREFIX}/lib
|
1999-06-22 20:09:23 -04:00
|
|
|
|
1997-12-02 23:05:23 -05:00
|
|
|
.include <bsd.port.mk>
|