2018-03-07 12:57:28 +01:00
|
|
|
# $NetBSD: Makefile,v 1.7 2018/03/07 11:57:40 wiz Exp $
|
2011-10-30 20:56:56 +01:00
|
|
|
|
|
|
|
DISTNAME= xcalib-source-0.8
|
2018-03-07 12:57:28 +01:00
|
|
|
PKGREVISION= 3
|
2011-10-30 20:56:56 +01:00
|
|
|
PKGNAME= ${DISTNAME:C/-source//}
|
|
|
|
CATEGORIES= x11
|
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=xcalib/}
|
|
|
|
|
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
|
|
|
HOMEPAGE= http://xcalib.sourceforge.net/
|
2012-03-18 22:23:13 +01:00
|
|
|
COMMENT= Loads VCGT tag of monitor ICC profile into X server LUT
|
2011-10-30 20:56:56 +01:00
|
|
|
LICENSE= gnu-gpl-v2
|
|
|
|
|
|
|
|
WRKSRC= ${WRKDIR}/${DISTNAME:C/-source//}
|
|
|
|
|
|
|
|
USE_LIBTOOL= yes
|
|
|
|
INSTALLATION_DIRS= bin
|
|
|
|
|
2014-02-08 13:59:31 +01:00
|
|
|
CFLAGS.SunOS+= -Du_int16_t=uint16_t
|
|
|
|
|
2011-10-30 20:56:56 +01:00
|
|
|
do-build:
|
2014-02-08 13:59:31 +01:00
|
|
|
cd ${WRKSRC} && ${LIBTOOL} --mode=compile ${CC} ${CFLAGS} -c xcalib.c
|
2018-03-06 16:31:13 +01:00
|
|
|
cd ${WRKSRC} && ${LIBTOOL} --mode=link ${CC} ${LDFLAGS} \
|
2014-12-11 00:27:31 +01:00
|
|
|
${COMPILER_RPATH_FLAG}${BUILDLINK_PREFIX.libX11}/lib \
|
|
|
|
-L${BUILDLINK_PREFIX.libX11}/lib \
|
|
|
|
${COMPILER_RPATH_FLAG}${BUILDLINK_PREFIX.libXxf86vm}/lib \
|
|
|
|
-L${BUILDLINK_PREFIX.libXxf86vm}/lib \
|
2011-10-30 20:56:56 +01:00
|
|
|
-lm -lX11 -lXxf86vm \
|
|
|
|
-o xcalib xcalib.lo
|
|
|
|
|
|
|
|
do-install:
|
|
|
|
${SETENV} ${MAKE_ENV} ${LIBTOOL} --tag=CC --mode=install ${INSTALL_PROGRAM} ${WRKSRC}/xcalib ${DESTDIR}${PREFIX}/bin/
|
|
|
|
|
2018-03-07 12:57:28 +01:00
|
|
|
.include "../../x11/xorgproto/buildlink3.mk"
|
2011-10-30 20:56:56 +01:00
|
|
|
.include "../../x11/libX11/buildlink3.mk"
|
|
|
|
.include "../../x11/libXxf86vm/buildlink3.mk"
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|