summaryrefslogblamecommitdiff
path: root/lang/njs/Makefile
blob: e5f5083cc18d15a51aa913d2fbc6fa620c09257f (plain) (tree)
1
2
3
4
5
6
7
8
9








                                                    
                 









                                                 


                       

                               



                    
                                      
 







                                                                                              

                       
                                                                                 












                                                                    
# New ports collection makefile for:	njs
# Date created:		Fri Jan 11 20:45:26 GMT 2002
# Whom:			thierry@pompo.net
#
# $FreeBSD$
#

PORTNAME=	njs
PORTVERSION=	0.2.5
PORTREVISION=	1
CATEGORIES=	lang
MASTER_SITES=	ftp://ftp.bbassett.net/pub/njs/	\
		http://www.bbassett.net/njs/	\
		http://www.iki.fi/mtr/js/
DISTNAME=	js-${PORTVERSION}

MAINTAINER=	thierry@pompo.net

GNU_CONFIGURE=	yes
USE_LIBTOOL=	yes
.if defined(NOPORTDOCS)
USE_REINPLACE=	yes
.endif
INSTALLS_SHLIB=	yes
CONFIGURE_ARGS=	--enable-shared

MAN1=	js.1 jsdas.1

post-extract:
	@${RM} ${WRKSRC}/docs/js.info*

pre-configure:
	@if [ -f ${LOCALBASE}/include/js.h ]; then \
		${ECHO_MSG} "" ; \
		${ECHO_MSG} "Conflict: please deinstall the port converters/kdesupport11." ; \
		${ECHO_MSG} "" ; \
		${FALSE} ; \
	fi

pre-install:
.if defined(NOPORTDOCS)
	@${REINPLACE_CMD} -e "s:docs micros examples:micros:g" ${WRKSRC}/Makefile
.endif

post-install:
.if !defined(NOPORTDOCS)
.for info in js.info
	install-info ${PREFIX}/info/${info} ${PREFIX}/info/dir
.endfor
.endif
	@${ECHO_MSG}
	@${CAT} ${PKGMESSAGE} | ${SED} -e "s:%%PREFIX%%:${PREFIX}:g"
	@${ECHO_MSG}

.include <bsd.port.mk>