2013-03-18 17:36:41 +01:00
|
|
|
# Created by: Pietro Cerutti <gahr@gahr.ch>
|
2008-01-14 10:57:20 +01:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= scew
|
2014-03-13 14:38:24 +01:00
|
|
|
PORTVERSION= 1.1.7
|
2008-01-14 10:57:20 +01:00
|
|
|
CATEGORIES= textproc
|
|
|
|
MASTER_SITES= SAVANNAH/${PORTNAME}/
|
|
|
|
|
2008-02-21 22:20:01 +01:00
|
|
|
MAINTAINER= gahr@FreeBSD.org
|
2008-01-14 10:57:20 +01:00
|
|
|
COMMENT= Simple C Expat Wrapper
|
|
|
|
|
2014-01-17 10:10:58 +01:00
|
|
|
LICENSE= LGPL21
|
|
|
|
|
|
|
|
LIB_DEPENDS= libexpat.so:${PORTSDIR}/textproc/expat2
|
2008-01-14 10:57:20 +01:00
|
|
|
|
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
USE_LDCONFIG= yes
|
2014-03-13 14:38:24 +01:00
|
|
|
USES= gmake pathfix pkgconfig
|
2011-09-24 00:26:39 +02:00
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
|
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
2008-01-14 10:57:20 +01:00
|
|
|
|
|
|
|
SCEW_EXAMPLES= print stream write
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
.for ex in ${SCEW_EXAMPLES}
|
2014-01-17 10:10:58 +01:00
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/examples/${PORTNAME}_${ex}/${PORTNAME}_${ex} ${STAGEDIR}${PREFIX}/bin
|
2008-01-14 10:57:20 +01:00
|
|
|
.endfor
|
|
|
|
|
2014-03-13 14:38:24 +01:00
|
|
|
.ifdef MAINTAINER_MODE
|
|
|
|
LIB_DEPENDS+= libcheck.so:${PORTSDIR}/devel/libcheck
|
2014-01-17 10:10:58 +01:00
|
|
|
regression-test: build
|
|
|
|
cd ${WRKSRC}/tests && ${GMAKE} check
|
2014-03-13 14:38:24 +01:00
|
|
|
.endif
|
2014-01-17 10:10:58 +01:00
|
|
|
|
2010-04-01 08:44:48 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if ${ARCH} == "powerpc"
|
|
|
|
BROKEN= Does not compile on powerpc
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|