summaryrefslogtreecommitdiff
path: root/devel/appstream-glib/Makefile
blob: 0e6da925c7478d060db1300aa44a1f3f78702644 (plain)
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
49
50
51
52
53
54
55
# Created by: FreeBSD GNOME Team <gnome@freebsd.org>
# $FreeBSD$

PORTNAME=	appstream-glib
PORTVERSION=	0.5.7
CATEGORIES=	devel
#MASTER_SITES=	http://people.freedesktop.org/~hughsient/appstream-glib/releases/
MASTER_SITES=	http://rainbow-runner.nl/freebsd/
DIST_SUBDIR=	gnome3

MAINTAINER=	gnome@FreeBSD.org
COMMENT=	Library to help with AppStream metadata

LICENSE=	LGPL21+
LICENSE_FILE=	${WRKSRC}/COPYING

BUILD_DEPENDS=	gtkdoc-check:${PORTSDIR}/textproc/gtk-doc \
		gcab:${PORTSDIR}/archivers/gcab
LIB_DEPENDS=	libsoup-2.4.so:${PORTSDIR}/devel/libsoup \
		libyaml.so:${PORTSDIR}/textproc/libyaml \
		libuuid.so:${PORTSDIR}/misc/e2fsprogs-libuuid \
		libfontconfig.so:${PORTSDIR}/x11-fonts/fontconfig \
		libfreetype.so:${PORTSDIR}/print/freetype2
RUN_DEPENDS=	gcab:${PORTSDIR}/archivers/gcab

USES=		gettext gperf gmake gnome libarchive libtool pathfix \
		pkgconfig sqlite tar:xz
USE_GNOME=	gdkpixbuf2 glib20 gtk30 intlhack introspection:build \
		libxml2:build pango
USE_LDCONFIG=	yes
GNU_CONFIGURE=	yes
CPPFLAGS+=	-I${LOCALBASE}/include
LDFLAGS+=	-L${LOCALBASE}/lib
CONFIGURE_ARGS=	--with-xml-catalog=${LOCALBASE}/share/xml/catalog \
		--disable-rpm \
		--disable-ostree
INSTALL_TARGET=	install-strip

OPTIONS_DEFINE=	MANPAGES
OPTIONS_DEFAULT=MANPAGES
OPTIONS_SUB=	yes
MANPAGES_CONFIGURE_ENABLE=	man
MANPAGE_BUILD_DEPENDS=	docbook-xml>=0:${PORTSDIR}/textproc/docbook-xml \
		docbook-xsl>=0:${PORTSDIR}/textproc/docbook-xsl
MANPAGES_USE=	GNOME=libxslt:build

.include <bsd.port.options.mk>

.if ${OSVERSION} < 1000000 && ${OPSYS} == FreeBSD
post-patch:
	${REINPLACE_CMD} -e 's|-Wtype-limits||g' \
		${WRKSRC}/configure
.endif

.include <bsd.port.mk>