pkgsrc/graphics/ogle/buildlink2.mk
jlam c37e7920b5 Create new variables BUILDLINK_CPPFLAGS.<pkg> and BUILDLINK_LDFLAGS.<pkg>
that hold the compiler and linker flags used to find the headers and
libraries because these packages install them into non-standard places.
These variables may be used in package Makefiles by doing:

	CPPFLAGS+=	${BUILDLINK_CPPFLAGS.<pkg>}
	LDFLAGS+=	${BUILDLINK_LDFLAGS.<pkg>}
2002-09-22 10:06:00 +00:00

23 lines
687 B
Makefile

# $NetBSD: buildlink2.mk,v 1.2 2002/09/22 10:06:00 jlam Exp $
.if !defined(OGLE_BUILDLINK2_MK)
OGLE_BUILDLINK2_MK= # defined
BUILDLINK_PACKAGES+= ogle
BUILDLINK_DEPENDS.ogle?= ogle>=0.8.5
BUILDLINK_PKGSRCDIR.ogle?= ../../graphics/ogle
EVAL_PREFIX+= BUILDLINK_PREFIX.ogle=ogle
BUILDLINK_PREFIX.ogle_DEFAULT= ${LOCALBASE}
BUILDLINK_FILES.ogle= include/ogle/*.h
BUILDLINK_FILES.ogle+= lib/ogle/libmsgevents.*
BUILDLINK_FILES.ogle+= lib/ogle/libdvdcontrol.*
BUILDLINK_LDFLAGS.ogle= -L${BUILDLINK_PREFIX.ogle}/lib/ogle
BUILDLINK_LDFLAGS.ogle+= -Wl,-R${BUILDLINK_PREFIX.ogle}/lib/ogle
BUILDLINK_TARGETS+= ogle-buildlink
ogle-buildlink: _BUILDLINK_USE
.endif # OGLE_BUILDLINK2_MK