2012-01-09 11:28:25 -05:00
|
|
|
# $OpenBSD: Makefile,v 1.5 2012/01/09 16:28:25 ajacoutot Exp $
|
2011-11-02 12:40:22 -04:00
|
|
|
|
|
|
|
COMMENT= device color profile management daemon
|
|
|
|
|
2012-01-09 11:28:25 -05:00
|
|
|
DISTNAME= colord-0.1.15
|
2011-11-02 12:40:22 -04:00
|
|
|
EXTRACT_SUFX= .tar.xz
|
|
|
|
|
|
|
|
SHARED_LIBS += colord 0.0 # 1.4
|
|
|
|
|
|
|
|
CATEGORIES= graphics devel
|
|
|
|
|
|
|
|
HOMEPAGE= http://www.freedesktop.org/software/colord/
|
|
|
|
|
|
|
|
MAINTAINER= Antoine Jacoutot <ajacoutot@openbsd.org>
|
|
|
|
|
|
|
|
# GPLv2
|
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
|
|
|
|
WANTLIB += c ffi gio-2.0 glib-2.0 gmodule-2.0 gobject-2.0 gthread-2.0
|
|
|
|
WANTLIB += jpeg lcms2 m pcre polkit-gobject-1 pthread sane sqlite3
|
|
|
|
WANTLIB += tiff usb usb-1.0 z
|
|
|
|
|
|
|
|
MASTER_SITES= http://www.freedesktop.org/software/colord/releases/
|
|
|
|
|
2011-11-13 13:02:33 -05:00
|
|
|
MODULES= devel/gettext \
|
|
|
|
textproc/intltool
|
2011-11-02 12:40:22 -04:00
|
|
|
|
|
|
|
BUILD_DEPENDS= lang/vala \
|
2011-11-26 03:47:08 -05:00
|
|
|
devel/gobject-introspection \
|
|
|
|
textproc/docbook2x
|
2011-11-02 12:40:22 -04:00
|
|
|
|
|
|
|
LIB_DEPENDS= devel/libusb1 \
|
|
|
|
graphics/sane-backends \
|
|
|
|
sysutils/polkit \
|
|
|
|
graphics/lcms2
|
|
|
|
|
2011-11-02 13:55:33 -04:00
|
|
|
# technically not needed, however it is handy to have some profiles to
|
|
|
|
# start working with
|
|
|
|
RUN_DEPENDS= graphics/shared-color-profiles
|
|
|
|
|
2011-11-02 12:40:22 -04:00
|
|
|
USE_GMAKE= Yes
|
|
|
|
USE_LIBTOOL= Yes
|
|
|
|
|
|
|
|
CONFIGURE_STYLE=gnu
|
|
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
|
|
|
|
LDFLAGS="-L${LOCALBASE}/lib"
|
|
|
|
|
|
|
|
CONFIGURE_ARGS= ${CONFIGURE_SHARED} \
|
|
|
|
--enable-introspection \
|
|
|
|
--disable-gtk-doc \
|
|
|
|
--disable-reverse \
|
|
|
|
--disable-gudev
|
|
|
|
|
|
|
|
FAKE_FLAGS= sysconfdir="${PREFIX}/share/examples/colord"
|
|
|
|
|
|
|
|
pre-configure:
|
|
|
|
${SUBST_CMD} ${WRKSRC}/etc/colord.conf.in \
|
|
|
|
${WRKSRC}/src/{cd-profile-store.c,cd-profile.c}
|
|
|
|
perl -pi -e 's,-Wclobbered,,g;' \
|
|
|
|
-e 's,-Wempty-body,,g;' \
|
|
|
|
-e 's,-Wignored-qualifiers,,g;' \
|
|
|
|
-e 's,-Wtype-limits,,g;' \
|
|
|
|
-e 's,-Wmissing-parameter-type,,g' \
|
|
|
|
${WRKSRC}/configure
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
rm -rf ${WRKINST}/lib ${PREFIX}/var
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|