freebsd-ports/devel/libosinfo/Makefile
Piotr Kubaj c2dc7bdad1 devel/libosinfo: fix build with GCC-based architectures
C11 is now required:
../osinfo/osinfo_tree.h:63: error: redefinition of typedef 'OsinfoTree'
../osinfo/osinfo_install_script.h:44: error: previous declaration of 'OsinfoTree' was here

Approved by:	mentors (implicit approval)
2019-08-07 16:37:22 +00:00

41 lines
1.2 KiB
Makefile

# Created by: Roman Bogorodskiy <novel@FreeBSD.org>
# $FreeBSD$
PORTNAME= libosinfo
PORTVERSION= 1.6.0
CATEGORIES= devel
MASTER_SITES= https://releases.pagure.org/libosinfo/
MAINTAINER= novel@FreeBSD.org
COMMENT= Library for managing OS information for virtualization
LIB_DEPENDS= libsoup-gnome-2.4.so:devel/libsoup-gnome \
libsoup-2.4.so:devel/libsoup
BUILD_DEPENDS= ${LOCALBASE}/share/pciids/pci.ids:misc/pciids \
${LOCALBASE}/share/usbids/usb.ids:misc/usbids
RUN_DEPENDS:= ${BUILD_DEPENDS} \
osinfo-db-import:sysutils/osinfo-db-tools \
${LOCALBASE}/share/osinfo/VERSION:misc/osinfo-db
USES= compiler:c11 gettext-tools 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
SHLIB_VER= ${PORTVERSION:C/(^[0-9])\./0.\100/}
PLIST_SUB= SHLIB_VER=${SHLIB_VER}
.include <bsd.port.mk>