freebsd-ports/x11/xcalib/Makefile
Emanuel Haupt 4f14e81a93 - respect PREFIX [1]
- respect CFLAGS [2]
- nuke files/patch-icclib-Makefile.UNIX [1]
- bump PORTREVISION [1]
- cleanup [2]

PR:		87834
Reported by:	pointyhat via kris
Submitted by:	Petr Holub <hopet@ics.muni.cz> (maintainer) [1]
Reworked by:	ehaupt [2]
2005-10-22 19:58:25 +00:00

45 lines
1.2 KiB
Makefile

# New ports collection makefile for: xcalib
# Date created: 5 April 2005
# Whom: Petr Holub <hopet@ics.muni.cz>
#
# $FreeBSD$
#
PORTNAME= xcalib
PORTVERSION= 0.6
PORTREVISION= 1
CATEGORIES= x11 graphics
MASTER_SITES= http://www.etg.e-technik.uni-erlangen.de/web/doe/xcalib/
DISTNAME= ${PORTNAME}-source-${PORTVERSION}
MAINTAINER= hopet@ics.muni.cz
COMMENT= A program for display calibration of X11-Servers with ICC profiles
USE_X_PREFIX= yes
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
PORTDOCS= README README.profilers
DEFINES= -DXCALIB_VERSION=\"${PORTVERSION}\" -DUNIX
LDFLAGS+= -L${LOCALBASE}/lib -L${X11BASE}/lib -lm -lX11 -lXxf86vm -lXext
CFLAGS+= -I./icclib -I${LOCALBASE}/include -I${X11BASE}/include
do-build:
${CC} ${CFLAGS} ${DEFINES} -c ${WRKSRC}/${PORTNAME}.c -o ${WRKSRC}/${PORTNAME}.o
${CC} ${CFLAGS} ${DEFINES} -c ${WRKSRC}/icclib/icc.c -o ${WRKSRC}/icclib/icc.o
${CC} ${LDFLAGS} ${WRKSRC}/${PORTNAME}.o -o ${WRKSRC}/${PORTNAME}
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>