blob: 06db44bd5ce640cc28e5cbb84285e0d3a59d5a20 (
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
|
# $NetBSD: Makefile,v 1.7 2000/07/14 16:04:22 agc Exp $
DISTNAME= gimp-1.1.24
PKGNAME= ${DISTNAME:S/-/-helpbrowser-/}
CATEGORIES= graphics
MASTER_SITES= ftp://ftp.gimp.org/pub/gimp/unstable/v1.1.24/ \
ftp://ftp.ameth.org/pub/mirrors/ftp.gimp.org/gimp/unstable/v1.1.24/ \
ftp://ftp.fu-berlin.de/unix/X11/graphics/gimp/unstable/v1.1.24/
EXTRACT_SUFX= .tar.bz2
MAINTAINER= tron@netbsd.org
HOMEPAGE= http://www.gimp.org/
DEPENDS+= ${DISTNAME}:../gimp-current
DEPENDS+= gnome-libs>=1.0.56:../../x11/gnome-libs
USE_X11BASE= yes
USE_GMAKE= yes
USE_PKGLIBTOOL= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS+= --with-gtk-prefix="`${SHOW_PREFIX1} gtk+ ${SHOW_PREFIX2}`" \
--disable-perl \
--disable-python
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" INTLLIBS="-lintl" \
GNOME_CONFIG=${GNOME_CONFIG}
GIMPDIR= ${PKGSRCDIR}/graphics/gimp-current
FILESDIR= ${GIMPDIR}/files
PATCHDIR= ${GIMPDIR}/patches
CPPFLAGS= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
GNOME_CONFIG= ${X11BASE}/bin/gnome-config
GIMP_CONFIG= ${X11BASE}/bin/gimp-config
PLIST_SUBST+= LOCALBASE=${LOCALBASE}
.include "../../mk/bsd.prefs.mk"
.if (${OBJECT_FMT} == ELF)
LDFLAGS+= -Wl,-E
.endif
SRCS= helpbrowser.c queue.c
do-build:
.for SRC in ${SRCS}
cd ${WRKSRC}/plug-ins/helpbrowser && \
${CC} ${CFLAGS} ${CPPFLAGS} `${GNOME_CONFIG} --cflags gtkxmhtml gtk glib` \
`${GIMP_CONFIG} --cflags` -I../.. -c ${SRC}
.endfor
cd ${WRKSRC}/plug-ins/helpbrowser && \
${CC} ${SRCS:S/.c/.o/} ${LDFLAGS} \
`${GNOME_CONFIG} --libs gtkxmhtml gtk glib` `${GIMP_CONFIG} --libs` \
-o helpbrowser
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/plug-ins/helpbrowser/helpbrowser \
${PREFIX}/lib/gimp/1.1/plug-ins
.include "../../mk/bsd.pkg.mk"
|