aboutsummaryrefslogtreecommitdiffstats
path: root/textproc/libmrss/Makefile
blob: f285ee4bcfffbec940aaf8eade46d24274f2d126 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# Ports collection makefile for:    libmrss
# Date created:         Jan 2, 2007
# Whom:             Cheng-Lung Sung <clsung@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=   libmrss
PORTVERSION=    0.19.0
PORTREVISION=   0
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.4:${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
CONFIGURE_ENV+= CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}"

USE_LDCONFIG=   yes
WANT_GNOME= yes

pre-patch:
        ${gnomehack_PRE_PATCH}

.include <bsd.port.pre.mk>

.if defined(WITH_PHPMRSS)
USE_PHP=    yes
USE_AUTOTOOLS+= autoconf:261:env
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>