summaryrefslogtreecommitdiff
path: root/graphics/netpbm/buildlink.mk
blob: 27de7b8f59442a7e372c978e31b108e14a336d6e (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
34
35
36
37
38
39
40
41
42
# $NetBSD: buildlink.mk,v 1.2 2001/06/23 19:26:57 jlam Exp $
#
# This Makefile fragment is included by packages that use netpbm.
#
# To use this Makefile fragment, simply:
#
# (1) Optionally define BUILDLINK_DEPENDS.netpbm to the dependency pattern
#     for the version of netpbm desired.
# (2) Include this Makefile fragment in the package Makefile,
# (3) Add ${BUILDLINK_DIR}/include to the front of the C preprocessor's header
#     search path, and
# (4) Add ${BUILDLINK_DIR}/lib to the front of the linker's library search
#     path.

.if !defined(NETPBM_BUILDLINK_MK)
NETPBM_BUILDLINK_MK=	# defined

BUILDLINK_DEPENDS.netpbm?=	netpbm>=9.7
DEPENDS+=	${BUILDLINK_DEPENDS.netpbm}:../../graphics/netpbm

BUILDLINK_PREFIX.netpbm=	${LOCALBASE}
BUILDLINK_FILES.netpbm=		include/pbm.h
BUILDLINK_FILES.netpbm+=	include/pbmplus.h
BUILDLINK_FILES.netpbm+=	include/pgm.h
BUILDLINK_FILES.netpbm+=	include/pnm.h
BUILDLINK_FILES.netpbm+=	include/ppm.h
BUILDLINK_FILES.netpbm+=	include/ppmcmap.h
BUILDLINK_FILES.netpbm+=	include/shhopt.h
BUILDLINK_FILES.netpbm+=	lib/libpbm.*
BUILDLINK_FILES.netpbm+=	lib/libpgm.*
BUILDLINK_FILES.netpbm+=	lib/libpnm.*
BUILDLINK_FILES.netpbm+=	lib/libppm.*

BUILDLINK_TARGETS.netpbm=	netpbm-buildlink
BUILDLINK_TARGETS+=		${BUILDLINK_TARGETS.netpbm}

pre-configure: ${BUILDLINK_TARGETS.netpbm}
netpbm-buildlink: _BUILDLINK_USE

.include "../../mk/bsd.buildlink.mk"

.endif	# NETPBM_BUILDLINK_MK