CXX_STD = CXX11

PKG_CPPFLAGS = \
	-DHAVE_PNG_H -DHAVE_FREETYPE -Iext -Iext/ftgl \
	-I$(LOCAL_SOFT)/include/freetype2 \
	-DRGL_W32

PKG_LIBS = \
	-lfreetype -lharfbuzz -lfreetype -lpng -lbz2 -lz -lgdi32 -lopengl32 -lglu32

all: winlibs $(SHLIB)

$(SHLIB): winlibs

winlibs:
	sed -e "s^@RGL_NO_OPENGL@^FALSE^" ../R/noOpenGL.R.in > ../R/noOpenGL.R

clean:
	rm -f $(OBJECTS) $(SHLIB)
