freebsd-ports/graphics/gtkdps/Makefile
Emanuel Haupt 5005b67362 According to the Porter's Handbook (5.12.2.3.) default options must be added to
OPTIONS_DEFINE. This policy has been implemented only recently that's why we
have many ports violating this policy.

This patch adds the default options specified in the Porter's Handbook to
OPTIONS_DEFINE where they are being used. Ports maintained by
gnome@FreeBSD.org, kde@FreeBSD.org and x11@FreeBSD.org have been excluded.

Approved by:    portmgr (bapt)
2014-02-10 13:54:26 +00:00

51 lines
1.1 KiB
Makefile

# Created by: Yukihiro Nakai <Nakai@technologist.com>
# $FreeBSD$
PORTNAME= gtkdps
PORTVERSION= 0.3.4
PORTREVISION= 7
CATEGORIES= graphics
# ftp://ftp.gyve.org/pub/gtkDPS/
MASTER_SITES= ${MASTER_SITE_LOCAL}
MASTER_SITE_SUBDIR= dinoex
DISTNAME= gtkDPS-${PORTVERSION}
MAINTAINER= ports@FreeBSD.org
COMMENT= Gtk bindings for the Display GhostScript System
LIB_DEPENDS+= dpstk:${PORTSDIR}/x11/dgs
USE_GNOME= gtk12
GNU_CONFIGURE= yes
USE_AUTOTOOLS= libtool
USE_LDCONFIG= yes
CONFIGURE_ARGS= --with-dps-includes=${LOCALBASE}/include \
--with-dps-libraries=${LOCALBASE}/lib
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
NO_STAGE= yes
OPTIONS_DEFINE= NLS
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MNLS}
USES+= gettext
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>