freebsd-ports/textproc/libmrss/Makefile
Dmitry Marakasov 6f6fbe4bdf - Add LDFLAGS to CONFIGURE_ENV and MAKE_ENV (as it was done with LDFLAGS)
- Fix all ports that add {CPP,LD}FLAGS to *_ENV to modify flags instead

PR:		157936
Submitted by:	myself
Exp-runs by:	pav
Approved by:	pav
2011-09-23 22:26:39 +00:00

47 lines
1.1 KiB
Makefile

# Ports collection makefile for: libmrss
# Date created: Jan 2, 2007
# Whom: Cheng-Lung Sung <clsung@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= libmrss
PORTVERSION= 0.19.2
PORTREVISION= 3
CATEGORIES= textproc
MASTER_SITES= http://www.autistici.org/bakunin/libmrss/
MAINTAINER= clsung@FreeBSD.org
COMMENT= A C library for parsing, writing, and creating RSS
BUILD_DEPENDS= pkg-config:${PORTSDIR}/devel/pkg-config
LIB_DEPENDS= curl.6:${PORTSDIR}/ftp/curl \
nxml.18:${PORTSDIR}/textproc/libnxml
OPTIONS= PHPMRSS "support to PHP" on
GNU_CONFIGURE= yes
CFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
USE_LDCONFIG= yes
WANT_GNOME= yes
pre-patch:
${gnomehack_PRE_PATCH}
.include <bsd.port.pre.mk>
.if defined(WITH_PHPMRSS)
USE_PHP= yes
USE_PHP_BUILD= yes
USE_AUTOTOOLS+= autoconf:env
post-install:
@(cd ${WRKSRC}/phpmrss; ${SETENV} ${SCRIPTS_ENV} ${LOCALBASE}/bin/phpize)
@(cd ${WRKSRC}/phpmrss; ${SETENV} ${SCRIPTS_ENV} CC=${CC} ./configure; ${MAKE} install)
PLIST_SUB+= PHPMRSS=""
.else
PLIST_SUB+= PHPMRSS="@comment "
.endif
.include <bsd.port.post.mk>