aboutsummaryrefslogtreecommitdiffstats
path: root/x11/xcalib/Makefile
blob: 164dfcd50b39fa17497d58f03074feb6fa6a0d31 (plain) (blame)
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
# New ports collection makefile for:    xcalib
# Date created:             5 April 2005
# Whom:                 Petr Holub <hopet@ics.muni.cz>
#
# $FreeBSD$
#

PORTNAME=   xcalib
PORTVERSION=    0.8
CATEGORIES= x11 graphics
MASTER_SITES=   SF
DISTNAME=   ${PORTNAME}-source-${PORTVERSION}

MAINTAINER= hopet@ics.muni.cz
COMMENT=    A program for display calibration of X11-Servers with ICC profiles

WRKSRC=     ${WRKDIR}/${PORTNAME}-${PORTVERSION}
PORTDOCS=   README README.profilers
USE_XORG=   x11 xext sm xxf86vm
USE_GMAKE=  yes

DEFINES=    -DXCALIB_VERSION=\"${PORTVERSION}\" -DUNIX
LDFLAGS+=   -L${LOCALBASE}/lib -L${LOCALBASE}/lib -lm -lX11 -lXxf86vm -lXext
CFLAGS+=    -I./icclib -I${LOCALBASE}/include -I${LOCALBASE}/include

post-patch:
    @${REINPLACE_CMD} -e 's|/usr/X11R6|${LOCALBASE}|g' \
        ${WRKSRC}/Makefile

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
    ${MKDIR} ${EXAMPLESDIR}
    ${INSTALL_DATA} ${WRKSRC}/*.icc ${EXAMPLESDIR}

.if !defined(NOPORTDOCS)
    ${MKDIR} ${DOCSDIR}
.for f in ${PORTDOCS}
    ${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}
.endfor
.endif

.include <bsd.port.mk>