6 PKGNAMESUFFIX= -${FLAVOR}
8 MAINTAINER= andrew@tao11.riddles.org.uk
9 COMMENT= Wrapper for using the Cairo graphics library from Guile
10 WWW= https://www.nongnu.org/guile-cairo/
14 USES= guile:2.2,3.0,flavors,alias \
15 autoreconf gettext-tools gmake gnome libtool pkgconfig
18 USE_CSTD= ${${FLAVOR}_CSTD}
22 CONFIGURE_ARGS+=--includedir='$${prefix}/include/guile/${GUILE_VER}' \
23 --libdir='$${prefix}/lib/guile/${GUILE_VER}/extensions'
27 INSTALL_TARGET= install-strip
29 # Upstream has done almost all of the de-conflicting work, but there is
30 # no release at this time. Include their work as a patch, which also
31 # covers the code needed by g-golf.
33 EXTRA_PATCHES= ${PATCHDIR}/extra-patch-upstream-fixes.patch
36 INFO_PATH= ${GUILE_INFO_PATH}
40 -e '/^objdir=/s:$$(libdir)/:$$(exec_prefix)/lib/:' \
41 ${WRKSRC}/Makefile.am ${WRKSRC}/cairo/Makefile.am
43 # DO NOT try and add rules here to strip .go files, no matter how loudly
44 # testport / stage-qa shouts at you about it, because .go files (which are
45 # compiled bytecode) are not intended to be stripped and doing so causes
46 # breakage at run time.
49 ${MKDIR} ${STAGEDIR}${PREFIX}/${GUILE_PKGCONFIG_DIR}
50 ${MV} ${STAGEDIR}${PREFIX}/lib/guile/${GUILE_VER}/extensions/pkgconfig/*.pc \
51 ${STAGEDIR}${PREFIX}/${GUILE_PKGCONFIG_DIR}/
52 ${RMDIR} ${STAGEDIR}${PREFIX}/lib/guile/${GUILE_VER}/extensions/pkgconfig
54 .include <bsd.port.mk>