aboutsummaryrefslogtreecommitdiffstats
path: root/devel/devhelp/Makefile
blob: 5c6353bc4a77f94ac13099637ee515db9d3b46d1 (plain) (blame)
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
61
# New ports collection makefile for:    devhelp
# Date created:             29 May 2003
# Whom:                 Adam Weinberger <adamw@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=   devhelp
PORTVERSION=    0.10
PORTREVISION=   5
CATEGORIES?=    devel gnome
MASTER_SITES=   ${MASTER_SITE_GNOME}
MASTER_SITE_SUBDIR= sources/${PORTNAME}/${PORTVERSION:C,^([[:digit:]]+\.[[:digit:]]+).*,\1,}
DIST_SUBDIR=    gnome2

MAINTAINER= ports@FreeBSD.org
COMMENT=    Developer help browser for GNOME 2

BUILD_DEPENDS=  ${LOCALBASE}/lib/${MOZILLA}/components/libwidget_gtk2.so:${PORTSDIR}/www/${MOZILLA}
RUN_DEPENDS=    ${LOCALBASE}/lib/${MOZILLA}/components/libwidget_gtk2.so:${PORTSDIR}/www/${MOZILLA}

MOZILLA=    mozilla

.if !defined(WITH_MOZILLA)
MOZILLA=    mozilla
.else
.if ${WITH_MOZILLA} == "firefox"
MOZILLA=    firefox
.elif ${WITH_MOZILLA} == "seamonkey"
MOZILLA=    seamonkey
.endif
.endif

USE_AUTOTOOLS=  libtool:15
USE_BZIP2=  yes
USE_XLIB=   yes
USE_GETTEXT=    yes
USE_GMAKE=  yes
USE_GNOME=  gnomehack intlhack gnomeprefix libgnomeui
GNU_CONFIGURE=  yes
USE_LDCONFIG=   ${LOCALBASE}/lib/${MOZILLA}
GCONF_SCHEMAS=  devhelp.schemas
CONFIGURE_ENV=  CPPFLAGS="${PTHREAD_CFLAGS} -I${LOCALBASE}/include" \
        LDFLAGS="${PTHREAD_LIBS} -L${LOCALBASE}/lib"
CONFIGURE_ARGS= --with-mozilla=${MOZILLA}

# This target is only meant to be used by the port maintainer.
x-generate-plist:
    (${PORTSDIR}/Tools/scripts/plist -d -m ${MTREE_FILE} ${PREFIX}|${SED} -E 's,.*share/nls/.+$$,,g;s,^@dirrm share/((gnome/[^d]|pixmaps|application|locale).*|gnome$$),,;s,^@dirrm etc/gconf.*,,;s,^etc/gconf/gconf.*,,'|${TR} -s '\n') > temp-pkg-plist

.include <bsd.port.pre.mk>

pre-everything::
    @${ECHO_MSG} ""
    @${ECHO_MSG} " By default the port uses www/mozilla for html rendering, but you can"
    @${ECHO_MSG} " change this by defining WITH_MOZILLA to one of the following values:"
    @${ECHO_MSG}
    @${ECHO_MSG} "  firefox seamonkey      "
    @${ECHO_MSG} ""

.include <bsd.port.post.mk>