freebsd-ports/x11-toolkits/xmhtml/Makefile
Lars Koeller 77cb89de33 o) Fix problem setting GNU_CONFIGURE when USE_LIBTOOL us used.
The build is aborted due to the missing configure script.

Submitted by: AMAKAWA Shuhei <sa264@cam.ac.uk>
2001-07-02 07:19:02 +00:00

54 lines
1.6 KiB
Makefile

# New ports collection makefile for: xmhtml
# Date created: 18 Feb 1999
# Whom: Peter Hawkins <thepish@freebsd.org>
#
# $FreeBSD$
#
PORTNAME= XmHTML
PORTVERSION= 1.1.7
PORTREVISION= 1
CATEGORIES= x11-toolkits www
MASTER_SITES= http://www.xs4all.nl/~ripley/XmHTML/dist/
MAINTAINER= Lars.Koeller@Uni-Bielefeld.de
# BUILD_DEPENDS is used instead of USE_LIBTOOL in order to avoid
# GNU_CONFIGURE being set.
BUILD_DEPENDS= libtool:${PORTSDIR}/devel/libtool
LIB_DEPENDS= png.4:${PORTSDIR}/graphics/png \
jpeg.9:${PORTSDIR}/graphics/jpeg
#USE_LIBTOOL= yes
USE_MOTIF= yes
USE_X_PREFIX= yes
USE_GMAKE= yes
MAKE_ENV= CC="${LIBTOOL} ${CC}"
INSTALLS_SHLIB= yes
EXMP_DIR= ${PREFIX}/share/examples/${PORTNAME}
DOCS_DIR= ${PREFIX}/share/doc/${PORTNAME}
post-build:
${RM} -rf ${WRKSRC}/examples/.libs ${WRKSRC}/examples/*.lo ${WRKSRC}/examples/*.o
${RM} -rf ${WRKSRC}/book/.libs ${WRKSRC}/book/*.lo ${WRKSRC}/book/*.o
${RM} -rf ${WRKSRC}/contrib/.libs ${WRKSRC}/contrib/*.lo ${WRKSRC}/contrib/*.o
do-install:
${LIBTOOL} --mode=install ${INSTALL_DATA} \
${WRKSRC}/lib/libXmHTML.la ${PREFIX}/lib
${RM} -f ${PREFIX}/lib/libXmHTML.la
@${MKDIR} ${PREFIX}/include/XmHTML
${INSTALL_DATA} ${WRKSRC}/include/XmHTML/*.h ${PREFIX}/include/XmHTML
.if !defined(NOPORTDOCS)
@${ECHO_MSG} "===> Installing examples into ${EXMP_DIR}"
@${MKDIR} ${EXMP_DIR}
${TAR} -C ${WRKSRC} -cpf- book contrib examples | \
${TAR} -C ${EXMP_DIR} -xpf-
@${ECHO_MSG} "===> Installing docs into ${DOCS_DIR}"
@${MKDIR} ${DOCS_DIR}
${TAR} -C ${WRKSRC}/html -cpf- . | ${TAR} -C ${DOCS_DIR} -xpf-
.endif
.include <bsd.port.mk>