freebsd-ports/devel/styx/Makefile
2002-03-18 11:50:38 +00:00

38 lines
913 B
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
PORTREVISION= 1
CATEGORIES= devel
MASTER_SITES= http://www.speculate.de/styx/
EXTRACT_SUFX= .tgz
MAINTAINER= ports@FreeBSD.org
LIB_DEPENDS= iconv.3:${PORTSDIR}/converters/libiconv
USE_LIBTOOL= yes
CONFIGURE_ENV= CPPFLAGS="${CXXFLAGS} -I${PREFIX}/include ${PTHREAD_FLAGS}" \
LIBS="-L${PREFIX}/lib -lgiconv ${PTHREAD_LIBS}"
CONFIGURE_ARGS= --includedir=${PREFIX}/include/styx \
--datadir=${PREFIX}/share/doc/styx
USE_GMAKE= yes
INSTALLS_SHLIB= yes
post-patch:
.for file in config.h.in libbase/styconf0.h libbase/gstream.c
@${PERL} -pi -e "s,ICONV_H,GICONV_H,g" ${WRKSRC}/${file}
.endfor
@${PERL} -pi -e "s,-lrt,${PTHREAD_LIBS},g" ${WRKSRC}/configure
pre-configure:
@${RM} -f ${WRKSRC}/config.cache
.include <bsd.port.mk>