freebsd-ports/devel/styx/Makefile

41 lines
1,017 B
Makefile
Raw Normal View History

2001-04-16 21:40:59 +02:00
# ex:ts=8
# New ports collection makefile for: styx
# Date created: Apr 17, 2001
# Whom: Ying-Chieh Liao <ijliao@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= styx
2002-03-12 16:56:43 +01:00
PORTVERSION= 1.5
2001-04-16 21:40:59 +02:00
CATEGORIES= devel
MASTER_SITES= http://www.speculate.de/styx/
EXTRACT_SUFX= .tgz
2002-03-12 16:56:43 +01:00
MAINTAINER= ports@FreeBSD.org
2001-04-16 21:40:59 +02:00
LIB_DEPENDS= iconv.3:${PORTSDIR}/converters/libiconv
2001-04-16 21:40:59 +02:00
USE_LIBTOOL= yes
2002-03-12 16:56:43 +01:00
CONFIGURE_ENV= CPPFLAGS="${CXXFLAGS} -I${PREFIX}/include ${PTHREAD_FLAGS}" \
LIBS="-L${PREFIX}/lib -lgiconv ${PTHREAD_LIBS}"
2001-04-16 21:40:59 +02:00
CONFIGURE_ARGS= --includedir=${PREFIX}/include/styx \
--datadir=${PREFIX}/share/doc/styx
USE_GMAKE= yes
2002-03-12 16:56:43 +01:00
INSTALLS_SHLIB= yes
2001-04-16 21:40:59 +02:00
post-patch:
.for file in config.h.in configure libbase/styconf0.h
@${PERL} -pi -e "s,iconv.h,giconv.h,g" ${WRKSRC}/${file}
.endfor
.for file in config.h.in libbase/styconf0.h libbase/gstream.c
@${PERL} -pi -e "s,ICONV_H,GICONV_H,g" ${WRKSRC}/${file}
.endfor
2002-03-12 16:56:43 +01:00
@${PERL} -pi -e "s,-lrt,${PTHREAD_LIBS},g" ${WRKSRC}/configure
2001-04-16 21:40:59 +02:00
pre-configure:
@${RM} -f ${WRKSRC}/config.cache
.include <bsd.port.mk>