aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/gtkdps/Makefile
blob: 663e9e79969d2eca511b07ea0432c4c9d85f8978 (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
# New ports collection makefile for:   gtkdps
# Date created:        21 April 1998
# Whom:                Yukihiro Nakai <Nakai@technologist.com>
#
# $FreeBSD$
#

PORTNAME=   gtkdps
PORTVERSION=    0.3.4
PORTREVISION=   1
CATEGORIES= graphics
MASTER_SITES=   ftp://ftp.gyve.org/pub/gtkDPS/  \
        ${MASTER_SITE_GENTOO}
MASTER_SITE_SUBDIR= distfiles
DISTNAME=   gtkDPS-${PORTVERSION}

MAINTAINER= dinoex@FreeBSD.org
COMMENT=    Gtk bindings for the Display GhostScript System

LIB_DEPENDS+=   dpstk.0:${PORTSDIR}/x11/dgs

USE_GNOME=  gtk12
GNU_CONFIGURE=  yes
USE_AUTOTOOLS=  libtool:15
USE_LDCONFIG=   yes
CONFIGURE_ARGS= --with-dps-includes=${LOCALBASE}/include \
        --with-dps-libraries=${LOCALBASE}/lib
CONFIGURE_ENV=  CPPFLAGS="-I${LOCALBASE}/include"   \
        LDFLAGS="${LDFLAGS} -L${LOCALBASE}/lib"

.if !defined(WITHOUT_NLS)
USE_GETTEXT=    yes
PLIST_SUB+= NLS=""
.else
CONFIGURE_ARGS+=    --disable-nls
PLIST_SUB+= NLS="@comment "
.endif

.include <bsd.port.pre.mk>

.if ${ARCH} == "alpha"
BROKEN=     Does not compile on alpha
.endif

post-patch:
    @${REINPLACE_CMD} -e 's|$${CONFIG_SHELL-/bin/sh} $$ac_aux_dir|$$ac_aux_dir|' \
        ${WRKSRC}/configure

.include <bsd.port.post.mk>