summaryrefslogtreecommitdiff
path: root/devel/libosinfo/Makefile
blob: 5535372d4187625afb47e22ac9103b0c7dbe9ef1 (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
# Created by: Roman Bogorodskiy <novel@FreeBSD.org>
# $FreeBSD$

PORTNAME=	libosinfo
PORTVERSION=	0.3.0
CATEGORIES=	devel
MASTER_SITES=	https://fedorahosted.org/releases/l/i/libosinfo/

MAINTAINER=	novel@FreeBSD.org
COMMENT=	Library for managing OS information for virtualization

LIB_DEPENDS=	libsoup-gnome-2.4.so:devel/libsoup-gnome
BUILD_DEPENDS=	${LOCALBASE}/share/pciids/pci.ids:misc/pciids \
		${LOCALBASE}/share/usbids/usb.ids:misc/usbids
RUN_DEPENDS:=	${BUILD_DEPENDS}

USES=		gmake libtool pathfix pkgconfig
USE_GNOME=	glib20 libxml2 libxslt introspection:build intlhack
USE_LDCONFIG=	yes
GNU_CONFIGURE=	yes
INSTALL_TARGET=	install-strip

CONFIGURE_ARGS=	--disable-tests --disable-vala \
		--with-usb-ids-path=${LOCALBASE}/share/usbids/usb.ids \
		--with-pci-ids-path=${LOCALBASE}/share/pciids/pci.ids
CPPFLAGS+=	-I${LOCALBASE}/include
LIBS+=		-L${LOCALBASE}/lib

OPTIONS_DEFINE=	NLS
OPTIONS_SUB=yes

NLS_USES=	gettext
NLS_CONFIGURE_ENABLE=	nls

.include <bsd.port.mk>