forked from Lainports/freebsd-ports
are no more self hosting so we are stuck with 0.25 version while pkgconf provide the same set of features as 0.27 and a compatible frontend. A symlink to pkg-config has been added for convenience and compatibility This also introduces a new macro to use pkgconf in your ports: USE_PKGCONFIG it can take the following arguments: - yes (meaning build only dep) - build (meaning build only dep) - run (meaning run only dep) - both (meaning run and build dep) From now USE_GNOME= pkgconfig is deprecated in favour of USE_PKGCONFIG The old gnome macro has been modified to use pkgconf but still the sameway: run and build dep to avoid large breakage. While here fix some ports relying on pkg-config but not specifying it, fix some ports broken because testing wrong .pc files, and fix ports using pkg-config --version to determine pkg-config version instead of pkg-config --modversion pkg-config like recommanded by pkg-config With Hat: portmgr Exp-runs by: bapt (pointhat-west), beat (pointyhat)
48 lines
1 KiB
Makefile
48 lines
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
|
|
|
|
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
|
|
USE_PKGCONFIG= yes
|
|
WANT_GNOME= yes
|
|
|
|
pre-patch:
|
|
${gnomehack_PRE_PATCH}
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if defined(WITH_PHPMRSS)
|
|
BROKEN= does not compile
|
|
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>
|