blob: 8538f282b09f02e2ecd1a5698e6984016ca57352 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
# $NetBSD: Makefile,v 1.14 2001/06/16 19:53:08 jlam Exp $
#
.include "Makefile.common"
PKGNAME= ${DISTNAME}
COMMENT= the GNOME image loading library
post-patch:
${SED} -e 's/BUILD_CANVAS=yes/BUILD_CANVAS=no/g' \
${WRKSRC}/configure.in >${WRKSRC}/.tmp && \
${MV} ${WRKSRC}/.tmp ${WRKSRC}/configure.in
post-configure:
${SED} -e 's/ doc$$//' ${WRKSRC}/Makefile >${WRKSRC}/.tmp && \
${MV} ${WRKSRC}/.tmp ${WRKSRC}/Makefile
# Fix config scripts by removing buildlink directory references.
post-build:
@cd ${WRKSRC}; \
for file in gdk_pixbufConf.sh gdk_pixbuf_xlibConf.sh; do \
${MV} -f $${file} $${file}.fixme; \
${SED} -e "s|-I${BUILDLINK_DIR}/|-I${LOCALBASE}/|g" \
-e "s|-L${BUILDLINK_DIR}/|-L${LOCALBASE}/|g" \
$${file}.fixme > $${file}; \
${RM} -f $${file}.fixme; \
${CHMOD} +x $${file}; \
done
post-install:
${TEST} ${PREFIX} = ${LOCALBASE} || \
${LN} -fs ${PREFIX}/share/aclocal/gdk-pixbuf.m4 \
${LOCALBASE}/share/aclocal/gdk-pixbuf.m4
${RM} ${PREFIX}/lib/gnomecanvaspixbufConf.sh
.include "../../mk/bsd.pkg.mk"
|