2007-01-02 09:42:42 +01:00
|
|
|
# Ports collection makefile for: libmrss
|
|
|
|
# Date created: Jan 2, 2007
|
|
|
|
# Whom: Cheng-Lung Sung <clsung@FreeBSD.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= libmrss
|
2008-09-26 15:15:05 +02:00
|
|
|
PORTVERSION= 0.19.2
|
2009-01-23 16:43:14 +01:00
|
|
|
PORTREVISION= 1
|
2007-01-02 09:42:42 +01:00
|
|
|
CATEGORIES= textproc
|
2008-01-30 03:05:09 +01:00
|
|
|
MASTER_SITES= http://www.autistici.org/bakunin/libmrss/
|
2007-01-02 09:42:42 +01:00
|
|
|
|
|
|
|
MAINTAINER= clsung@FreeBSD.org
|
|
|
|
COMMENT= A C library for parsing, writing, and creating RSS
|
|
|
|
|
|
|
|
BUILD_DEPENDS= pkg-config:${PORTSDIR}/devel/pkg-config
|
2009-01-23 16:43:14 +01:00
|
|
|
LIB_DEPENDS= curl.5:${PORTSDIR}/ftp/curl \
|
2007-07-18 05:02:21 +02:00
|
|
|
nxml.18:${PORTSDIR}/textproc/libnxml
|
2007-01-02 09:42:42 +01:00
|
|
|
|
2007-07-31 09:34:16 +02:00
|
|
|
OPTIONS= PHPMRSS "support to PHP" on
|
|
|
|
|
2007-01-02 09:42:42 +01:00
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
CFLAGS+= -I${LOCALBASE}/include
|
|
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
|
|
|
CONFIGURE_ENV+= CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}"
|
|
|
|
|
|
|
|
USE_LDCONFIG= yes
|
|
|
|
WANT_GNOME= yes
|
|
|
|
|
|
|
|
pre-patch:
|
|
|
|
${gnomehack_PRE_PATCH}
|
|
|
|
|
2007-07-31 09:34:16 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if defined(WITH_PHPMRSS)
|
|
|
|
USE_PHP= yes
|
2008-08-20 02:57:32 +02:00
|
|
|
USE_AUTOTOOLS+= autoconf:262:env
|
2007-07-31 09:34:16 +02:00
|
|
|
BUILD_DEPENDS+= phpize:${PHP_PORT}
|
|
|
|
post-install:
|
|
|
|
@(cd ${WRKSRC}/phpmrss; ${SETENV} ${SCRIPTS_ENV} ${LOCALBASE}/bin/phpize)
|
|
|
|
@(cd ${WRKSRC}/phpmrss; ./configure; ${MAKE} install)
|
|
|
|
PLIST_SUB+= PHPMRSS=""
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= PHPMRSS="@comment "
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|