blob: 6234841ecd5172c8bef2d28e4647ac2282f4ade0 (
plain)
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
|
# $NetBSD: buildlink2.mk,v 1.4 2004/02/09 12:03:27 seb Exp $
.if !defined(LCMS_BUILDLINK2_MK)
LCMS_BUILDLINK2_MK= # defined
BUILDLINK_PACKAGES+= lcms
BUILDLINK_DEPENDS.lcms?= lcms>=1.06
BUILDLINK_PKGSRCDIR.lcms?= ../../graphics/lcms
EVAL_PREFIX+= BUILDLINK_PREFIX.lcms=lcms
BUILDLINK_PREFIX.lcms_DEFAULT= ${LOCALBASE}
BUILDLINK_FILES.lcms= include/icc34.h
BUILDLINK_FILES.lcms+= include/lcms.h
BUILDLINK_FILES.lcms+= lib/liblcms.*
BUILDLINK_CPPFLAGS.lcms= -I${BUILDLINK_PREFIX.lcms}/include
BUILDLINK_TARGETS+= lcms-buildlink
BUILDLINK_TARGETS+= buildlink-include-lcms
lcms-buildlink: _BUILDLINK_USE
buildlink-include-lcms: .PHONY
.for _h_ in lcms.h icc34.h
${_PKG_SILENT}${_PKG_DEBUG} \
if [ ! -f ${BUILDLINK_DIR}/include/lcms/${_h_} ]; then \
${INSTALL_DATA_DIR} ${BUILDLINK_DIR}/include/lcms; \
${ECHO_BUILDLINK_MSG} "Linking lcms/${_h_} to ${_h_} in ${BUILDLINK_DIR}/include"; \
${LN} -s ${BUILDLINK_PREFIX.lcms}/include/${_h_} ${BUILDLINK_DIR}/include/lcms/${_h_}; \
fi
.endfor
.endif # LCMS_BUILDLINK2_MK
|