44 lines
1.2 KiB
Makefile
44 lines
1.2 KiB
Makefile
# ex:ts=8
|
|
# New ports collection makefile for: styx
|
|
# Date created: Apr 17, 2001
|
|
# Whom: Ying-Chieh Liao <ijliao@FreeBSD.org>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= styx
|
|
PORTVERSION= 1.5.1
|
|
CATEGORIES= devel
|
|
MASTER_SITES= http://www.speculate.de/styx/
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= A scanner/parser generator
|
|
|
|
LIB_DEPENDS= iconv.3:${PORTSDIR}/converters/libiconv
|
|
|
|
USE_GMAKE= yes
|
|
USE_LIBTOOL= yes
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include ${PTHREAD_CFLAGS}" \
|
|
LDFLAGS="-L${LOCALBASE}/lib -liconv ${PTHREAD_LIBS}"
|
|
CONFIGURE_ARGS= --includedir=${PREFIX}/include/${PORTNAME}
|
|
INSTALLS_SHLIB= yes
|
|
|
|
post-install:
|
|
.if !defined(NOPORTDOCS)
|
|
@${MKDIR} ${DOCSDIR}
|
|
${TAR} -C ${WRKSRC}/doc \
|
|
--exclude "*.in" --exclude "*Makefile*" -cf - . | \
|
|
${TAR} -C ${DOCSDIR} --unlink -xf -
|
|
@${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${DOCSDIR}
|
|
@${MKDIR} ${EXAMPLESDIR}
|
|
${TAR} -C ${WRKSRC} \
|
|
--exclude "*.in" --exclude "*Makefile*" -cf - spe pat | \
|
|
${TAR} -C ${EXAMPLESDIR} --unlink -xf -
|
|
${TAR} -C ${WRKSRC}/tutorial \
|
|
--exclude "*.in" --exclude "*Makefile*" -cf - . | \
|
|
${TAR} -C ${EXAMPLESDIR} --unlink -xf -
|
|
@${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${DOCSDIR}
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|