openbsd-ports/x11/lesstif/Makefile
form 725c5adf33 Installation errors fixed:
- symlinks to Lesstif libraries never created in ${PREFIX}/lib
	  if NO_SHARED_LIBS is defined;
	- bogus "/lib" in symlinks;
	- ${LDCONFIG} -m called for each library installed.
1999-06-24 11:03:07 +00:00

61 lines
1.8 KiB
Makefile

# $OpenBSD: Makefile,v 1.26 1999/06/24 11:03:07 form Exp $
# $FreeBSD: Makefile,v 1.17 1998/03/28 14:12:55 steve Exp $
DISTNAME= lesstif-0.88.1
CATEGORIES= x11
MASTER_SITES= ftp://ftp.lesstif.org/pub/hungry/lesstif/srcdist/ \
ftp://ftp.hungry.com/pub/hungry/lesstif/srcdist/ \
ftp://linux.mathematik.tu-darmstadt.de/pub/linux/mirrors/misc/lesstif/srcdist/
NEED_VERSION= 1.73
MAINTAINER= brad@openbsd.org
STATIC_LIBS= libMrm.a libXm.a
SHARED_LIBS= libMrm.so.1.2 libXm.so.1.2
USE_X11= yes
SEPARATE_BUILD= concurrent
GNU_CONFIGURE= yes
CONFIGURE_ARGS+= ${CONFIGURE_SHARED}
CONFIGURE_ARGS+= --enable-static --disable-debug --enable-build-12 \
--disable-build-20 --with-editres
.if defined(HAVE_MOTIF)
IS_INTERACTIVE= yes
pre-install:
@${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
# 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
#
post-install:
.for lib in ${STATIC_LIBS}
${LN} -sf ${PREFIX}/LessTif/Motif1.2/lib/${lib} ${PREFIX}/lib
.endfor
.if !defined(NO_SHARED_LIBS)
.for lib in ${SHARED_LIBS}
${LN} -sf ${PREFIX}/LessTif/Motif1.2/lib/${lib} ${PREFIX}/lib
.endfor
${LDCONFIG} -m ${PREFIX}/lib
.endif
.include <bsd.port.mk>