openbsd-ports/x11/lesstif/Makefile

67 lines
2.0 KiB
Makefile
Raw Normal View History

2000-06-19 21:24:44 -04:00
# $OpenBSD: Makefile,v 1.39 2000/06/20 01:24:44 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
2000-06-19 21:24:44 -04:00
DISTNAME= lesstif-0.91.0
1997-12-02 23:05:23 -05:00
CATEGORIES= x11
NEED_VERSION= 1.301
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/
1999-03-20 23:04:24 -05:00
MAINTAINER= brad@openbsd.org
1997-12-02 23:05:23 -05:00
2000-03-11 20:11:48 -05:00
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
2000-02-12 03:02:07 -05:00
1999-06-14 02:23:23 -04:00
SEPARATE_BUILD= concurrent
CONFIGURE_STYLE= gnu
1999-03-20 23:04:24 -05:00
CONFIGURE_ARGS+= ${CONFIGURE_SHARED}
1999-12-18 14:41:39 -05:00
CONFIGURE_ARGS+=--enable-static --enable-production --enable-build-12 \
--disable-build-20 --disable-build-Xbae --disable-build-Xlt \
--disable-debug --with-editres
1999-09-13 17:28:37 -04:00
1997-12-02 23:05:23 -05:00
.if defined(HAVE_MOTIF)
2000-03-11 20:11:48 -05:00
IS_INTERACTIVE= Yes
1999-12-18 14:41:39 -05:00
pre-install:
1999-12-18 14:41:39 -05: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; \
;; \
*) \
1999-12-18 14:41:39 -05: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-12-18 14:41:39 -05:00
STATIC_LIBS= libMrm.a libXm.a
SHARED_LIBS= libMrm.so.1.2 libXm.so.1.2
# 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
post-install:
1999-12-18 14:41:39 -05:00
@rm -f ${PREFIX}/lib/libMrm.so
@rm -f ${PREFIX}/lib/libXm.so
.for lib in ${STATIC_LIBS}
2000-03-11 20:11:48 -05:00
@ln -sf ${TRUEPREFIX}/LessTif/Motif1.2/lib/${lib} ${PREFIX}/lib
.endfor
.for lib in ${SHARED_LIBS}
1999-06-24 14:14:03 -04:00
@if [ "x${NO_SHARED_LIBS}" = "x" ]; then \
2000-03-11 20:11:48 -05:00
ln -sf ${TRUEPREFIX}/LessTif/Motif1.2/lib/${lib} ${PREFIX}/lib; \
1999-06-24 14:14:03 -04:00
fi
.endfor
1997-12-02 23:05:23 -05:00
.include <bsd.port.mk>