blob: 3dc4809c86a1ad0e3582c8e9329e32edd6e11f9f (
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
|
# $NetBSD: buildlink3.mk,v 1.26 2011/01/24 08:08:37 adam Exp $
BUILDLINK_TREE+= png
.if !defined(PNG_BUILDLINK3_MK)
PNG_BUILDLINK3_MK:=
BUILDLINK_API_DEPENDS.png+= png>=1.2.4
BUILDLINK_ABI_DEPENDS.png+= png>=1.5.0
BUILDLINK_PKGSRCDIR.png?= ../../graphics/png
# keep this in sync with the same code in Makefile
.if ${MACHINE_ARCH} != "i386" && ${MACHINE_ARCH} != "x86_64"
CPPFLAGS+= -DPNG_NO_ASSEMBLER_CODE
.endif
# Some software directly tries to link against -lpng instead of
# using pkg-config or libpng-config to find the proper arguments
# instead of installing symlinks. Work around this with buildlink
# magic: packages outside pkgsrc will need to be converted to
# one of the proper methods or fail.
BUILDLINK_TRANSFORM+= l:png:png15
.include "../../devel/zlib/buildlink3.mk"
.endif # PNG_BUILDLINK3_MK
BUILDLINK_TREE+= -png
|