diff options
Diffstat (limited to 'mk/giflib.buildlink3.mk')
-rw-r--r-- | mk/giflib.buildlink3.mk | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/mk/giflib.buildlink3.mk b/mk/giflib.buildlink3.mk new file mode 100644 index 00000000000..7929155d800 --- /dev/null +++ b/mk/giflib.buildlink3.mk @@ -0,0 +1,23 @@ +# $NetBSD: giflib.buildlink3.mk,v 1.1 2011/03/09 16:22:01 drochner Exp $ + +# choose a GIF library implemtation: +# "libungif" was used to avoid patent problems. The patents are +# expired, so "giflib" should be safe to use. + +.if !defined(MK_GIFLIB_BUILDLINK3_MK) +MK_GIFLIB_BUILDLINK3_MK= #defined + +.include "../../mk/bsd.prefs.mk" +GIFLIB_IMPLEMENTATION?= giflib +BUILD_DEFS+= GIFLIB_IMPLEMENTATION + +.if ${GIFLIB_IMPLEMENTATION} == "giflib" +. include "../../graphics/giflib/buildlink3.mk" +.elif ${GIFLIB_IMPLEMENTATION} == "libungif" +. include "../../graphics/libungif/buildlink3.mk" +.else +PKG_FAIL_REASON= \ + "\"${GIFLIB_IMPLEMENTATION}\" is invalid giflib in ${PKGNAME}." +.endif + +.endif #MK_GIFLIB_BUILDLINK3_MK |