Merge branch 'staged'
[dports.git] / graphics / guile-cairo / Makefile
1 PORTNAME=       guile-cairo
2 DISTVERSION=    1.11.2
3 PORTREVISION=   2
4 CATEGORIES=     graphics
5 MASTER_SITES=   SAVANNAH
6 PKGNAMESUFFIX=  -${FLAVOR}
7
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/
11
12 LICENSE=        LGPL3+
13
14 USES=           guile:2.2,3.0,flavors,alias \
15                 autoreconf gettext-tools gmake gnome libtool pkgconfig
16 guile30_CSTD=   c11
17 guile22_CSTD=   c99
18 USE_CSTD=       ${${FLAVOR}_CSTD}
19 USE_GNOME=      cairo
20
21 GNU_CONFIGURE=  yes
22 CONFIGURE_ARGS+=--includedir='$${prefix}/include/guile/${GUILE_VER}' \
23                 --libdir='$${prefix}/lib/guile/${GUILE_VER}/extensions'
24
25 MAKE_JOBS_UNSAFE=yes
26
27 INSTALL_TARGET= install-strip
28
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.
32
33 EXTRA_PATCHES=  ${PATCHDIR}/extra-patch-upstream-fixes.patch
34
35 INFO=           guile-cairo
36 INFO_PATH=      ${GUILE_INFO_PATH}
37
38 post-patch:
39         ${REINPLACE_CMD} \
40                 -e '/^objdir=/s:$$(libdir)/:$$(exec_prefix)/lib/:' \
41                 ${WRKSRC}/Makefile.am ${WRKSRC}/cairo/Makefile.am
42
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.
47
48 post-install:
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
53
54 .include <bsd.port.mk>